1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 #include <uapi/linux/unistd.h> 2 #include <uapi/linux/unistd.h> 3 #include <linux/kbuild.h> 3 #include <linux/kbuild.h> 4 4 5 #define SYSNR(_NR) DEFINE(SYS ## _NR, _NR) 5 #define SYSNR(_NR) DEFINE(SYS ## _NR, _NR) 6 6 7 void syscall_defines(void) 7 void syscall_defines(void) 8 { 8 { 9 COMMENT("Linux system call numbers."); 9 COMMENT("Linux system call numbers."); 10 SYSNR(__NR_write); 10 SYSNR(__NR_write); 11 SYSNR(__NR_read); 11 SYSNR(__NR_read); 12 #ifdef __NR_mmap2 << 13 SYSNR(__NR_mmap2); << 14 #endif << 15 #ifdef __NR_mmap << 16 SYSNR(__NR_mmap); 12 SYSNR(__NR_mmap); 17 #endif << 18 << 19 } 13 } 20 14
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.