syscalls.list changes: List arguments
Greg McGary
greg@kayak.mcgary.org
Tue Jun 27 11:26:00 GMT 2000
Jes Sorensen <jes@linuxcare.com> writes:
> Ok one thing that confuses me on this one, I see that
> sysdeps/unix/sysv/linux/syscalls.list has mmap as the following:
>
> mmap - mmap p:piiiii __mmap mmap
>
> But the kernel implementation doesn't use pointers but rather unsigned
> long to specify the address, ie.
>
> arch/i386/kernel/sys_i386.c:asmlinkage long sys_mmap2(unsigned long addr, unsigned long len,
>
> So shouldn't the signature here be i:iiiiii rather than p:piiiii ? or
> did I get something wrong?
The signatures are determined by the user API as defined in
sys/mman.h, which defines the addr as void*.
More information about the Libc-hacker
mailing list