Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
David Daney | 4b7190e | 2017-06-13 16:49:38 -0700 | [diff] [blame] | 2 | #include <uapi/linux/unistd.h> |
3 | #include <linux/kbuild.h> | ||||
4 | |||||
5 | #define SYSNR(_NR) DEFINE(SYS ## _NR, _NR) | ||||
6 | |||||
7 | void syscall_defines(void) | ||||
8 | { | ||||
9 | COMMENT("Linux system call numbers."); | ||||
10 | SYSNR(__NR_write); | ||||
11 | SYSNR(__NR_read); | ||||
12 | SYSNR(__NR_mmap); | ||||
13 | } |