summaryrefslogtreecommitdiff
path: root/lib/libc/mman/mmap.c
blob: b3ebdbbd886ef162b0047ec952d4f9ffc191d3c7 (plain)
1
2
3
4
5
6
7
8
9
#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);
}