On Fri, Apr 25, 2008 at 7:39 AM, Peter Teoh <[EMAIL PROTECTED]> wrote:
> I did not tried the glibc approach.
>
> But to answer how the specific transition from fork() to sys_fork()
> (in  kernel) is made:
>
> In /lib/libc.so.6:
>
> objdump -t libc.so.6 | grep fork
>
> show that fork() API is implemented inside this file.
>
> Then objdump -d to disassemble the file, and search  for fork:
>
> 44153710 <__fork>:
> 44153710:       55                      push   %ebp
> 44153711:       89 e5                   mov    %esp,%ebp
> 44153713:       57                      push   %edi
> 44153714:       56                      push   %esi
> 44153715:       53                      push   %ebx
>
> 44153937:       b8 f0 00 00 00          mov    $0xf0,%eax ========> for 
> sys_fork().

$0xf0 is not the syscall number for fork()?

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to