blob: 38b557ba894148b1991f1fabb79f27b6a809cb50 [file] [log] [blame]
/*
* mmap.c
*
* This is really just a syscall stub, but calls sys_mmap2 on
* i386.
*/
#include <sys/syscall.h>
#include <sys/mman.h>
#ifdef __NR_mmap2
#undef __NR_mmap
#define __NR_mmap __NR_mmap2
#endif
_syscall6(void *,mmap,void *,start,size_t,length,int,prot,int,flags,int,fd,off_t,offset);