summaryrefslogtreecommitdiff
path: root/src/sys/mman/mmap.c
blob: e0e2998ad99f9020aa5ad61c77de865fd91a0798 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "sys/types.h"
#include <sys/mman.h>
#include "_syscall.h"

#ifndef MAP_FAILED
#include "MAP_FAILED.c"
#endif

void *mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off)
{
	SYSCALL(mmap, void*, MAP_FAILED, addr, len, prot, flags, fildes, off);
}

/*
XOPEN(400)
POSIX(199309)
*/