summaryrefslogtreecommitdiff
path: root/src/sys/mman/mmap.c
blob: e76e24393ff30c9e590b5c011f83edbd1862e7aa (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)
*/