blob: c2a3fa72b2d815517067d29dd5b23b514557154b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#include "asm/unistd_64.h" // for __NR_mmap
#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);
}
|