xref: /OK3568_Linux_fs/kernel/arch/nios2/include/uapi/asm/unistd.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Copyright (C) 2013 Altera Corporation
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * This program is free software; you can redistribute it and/or modify it
6*4882a593Smuzhiyun  * under the terms and conditions of the GNU General Public License,
7*4882a593Smuzhiyun  * version 2, as published by the Free Software Foundation.
8*4882a593Smuzhiyun  *
9*4882a593Smuzhiyun  * This program is distributed in the hope it will be useful, but WITHOUT
10*4882a593Smuzhiyun  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11*4882a593Smuzhiyun  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12*4882a593Smuzhiyun  * more details.
13*4882a593Smuzhiyun  *
14*4882a593Smuzhiyun  * You should have received a copy of the GNU General Public License along with
15*4882a593Smuzhiyun  * this program.  If not, see <http://www.gnu.org/licenses/>.
16*4882a593Smuzhiyun  *
17*4882a593Smuzhiyun  */
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun  #define sys_mmap2 sys_mmap_pgoff
20*4882a593Smuzhiyun 
21*4882a593Smuzhiyun #define __ARCH_WANT_RENAMEAT
22*4882a593Smuzhiyun #define __ARCH_WANT_STAT64
23*4882a593Smuzhiyun #define __ARCH_WANT_SET_GET_RLIMIT
24*4882a593Smuzhiyun #define __ARCH_WANT_TIME32_SYSCALLS
25*4882a593Smuzhiyun 
26*4882a593Smuzhiyun /* Use the standard ABI for syscalls */
27*4882a593Smuzhiyun #include <asm-generic/unistd.h>
28*4882a593Smuzhiyun 
29*4882a593Smuzhiyun /* Additional Nios II specific syscalls. */
30*4882a593Smuzhiyun #define __NR_cacheflush (__NR_arch_specific_syscall)
31*4882a593Smuzhiyun __SYSCALL(__NR_cacheflush, sys_cacheflush)
32