summaryrefslogtreecommitdiff
path: root/lib/libc/mman/mmap.c
blob: f5e092655e3ba026a0ef66411763212378e4f3bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12



#include <stddef.h>  // for size_t
#include <syscall.h> // for __syscall_6, syscall

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);
}