summaryrefslogtreecommitdiff
path: root/lib/libc/mman/mmap.c
blob: d791844740f8e45bf9062e9f70031e86847d94ea (plain)
1
2
3
4
5
6
7
8
9
10
#include <stddef.h>
#include <linux/mman.h>
#include <syscall.h>

typedef __INT64_TYPE__ off_t;

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