Back to index

glibc  2.9
mmap.c File Reference
#include <sys/types.h>
#include <sys/mman.h>
#include <errno.h>
#include <sysdep.h>

Go to the source code of this file.


__ptr_t __mmap (__ptr_t addr, size_t len, int prot, int flags, int fd, off_t offset)

Function Documentation

__ptr_t __mmap ( __ptr_t  addr,
size_t  len,
int  prot,
int  flags,
int  fd,
off_t  offset 

Definition at line 35 of file mmap.c.

       __ptr_t ret;

       ret = INLINE_SYSCALL(mmap, 6, addr, len, prot, flags, fd, offset);

       /* check if it's really a negative number */
       if(((unsigned long)ret & 0xfffff000) == 0xfffff000)
              return MAP_FAILED;

       return ret;


Here is the call graph for this function: