Back to index

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

Go to the source code of this file.


__ptr_t __mmap64 (__ptr_t addr, size_t len, int prot, int flags, int fd, __off64_t offset)

Function Documentation

__ptr_t __mmap64 ( __ptr_t  addr,
size_t  len,
int  prot,
int  flags,
int  fd,
__off64_t  offset 

Definition at line 33 of file mmap64.c.

  off_t small_offset = (off_t) offset;

  if (small_offset != offset)
      /* We cannot do this since the offset is too large.  */
      __set_errno (EOVERFLOW);
      return MAP_FAILED;

  return __mmap (addr, len, prot, flags, fd, small_offset);

Here is the call graph for this function: