반응형
void *
mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset)
#include <sys/types.h> #include <sys/mman.h> #include <sys/syscall.h> register_t __syscall(quad_t, ...); /* * This function provides 64-bit offset padding that * is not supplied by GCC 1.X but is supplied by GCC 2.X. */ void * mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset) { return((void *)__syscall((quad_t)SYS_mmap, addr, len, prot, flags, fd, 0, offset)); }
반응형