This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
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*.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |