mmap.c
来自「Axis 221 camera embedded programing inte」· C语言 代码 · 共 19 行
C
19 行
/* Use new style mmap for mips */#include <unistd.h>#include <errno.h>#include <sys/mman.h>#include <sys/syscall.h>#if 0/* For now, leave mmap using mmap1 since mmap2 seems * to have issues (i.e. it doesn't work 100% properly). */#ifdef __NR_mmap2# undef __NR_mmap# define __NR_mmap __NR_mmap2#endif#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 + -
显示快捷键?