_mmap.c

来自「它通过提供glibc兼容使得应用程序移植到较小的c 库时相当得容易. 它能够应用」· C语言 代码 · 共 14 行

C
14
字号
/* Use new style mmap for mips */#include <unistd.h>#include <errno.h>#include <sys/mman.h>#include <sys/syscall.h>#ifdef __NR_mmap2# undef __NR_mmap# define __NR_mmap __NR_mmap2#endif_syscall6 (__ptr_t, mmap, __ptr_t, addr, size_t, len, int, prot,	   int, flags, int, fd, __off_t, offset);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?