[pso] log_syscall

Alexandru Tudose alexandru.tudose at gmail.com
Thu Mar 29 01:12:56 EEST 2007


O intrebare scurta:

Acesta este modul in care trebuie folosit log_syscall?

pid_t pid;
int syscall_nr;
long syscall_result;
...
log_syscall(pid, syscall_nr, regs.eax, regs.ebx, regs.ecx, regs.edx,
regs.esi, regs.edi, syscall_result);

Unde syscall_nr este obtinut tot din regs.eax...



Intreb, pentru ca la compilare primesc warning la argumentul nr 3:

/root/pso/tema1/sci.c: In function âinterceptorâ:
/root/pso/tema1/sci.c:89: warning: format â%lxâ expects type âlong unsigned
intâ, but argument 3 has type âintâ

Multumesc mult,
Alexandru Tudose.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20070329/aebf5e0d/attachment.htm


More information about the pso mailing list