blob: 88f9400524509d85122967d694e142257abab315 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
David Daney4b7190e2017-06-13 16:49:38 -07002#include <uapi/linux/unistd.h>
3#include <linux/kbuild.h>
4
5#define SYSNR(_NR) DEFINE(SYS ## _NR, _NR)
6
7void syscall_defines(void)
8{
9 COMMENT("Linux system call numbers.");
10 SYSNR(__NR_write);
11 SYSNR(__NR_read);
Ivan Khoronzhukbb4b5c02019-08-15 15:13:56 +030012#ifdef __NR_mmap2
13 SYSNR(__NR_mmap2);
14#endif
15#ifdef __NR_mmap
David Daney4b7190e2017-06-13 16:49:38 -070016 SYSNR(__NR_mmap);
Ivan Khoronzhukbb4b5c02019-08-15 15:13:56 +030017#endif
18
David Daney4b7190e2017-06-13 16:49:38 -070019}