2 * Calls getpid() by hand (linux-only probably)
4 * 1- Store the system call number in %eax
6 * 3- Store the return code in 'ret'
8 * Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
19 num
= 20; /* gerpid()'s number */
21 asm("movl %1, %%eax\n\t"
28 printf("PID: %d\n", ret
);