Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * System calls under the Sparc.
0004  *
0005  * Don't be scared by the ugly clobbers, it is the only way I can
0006  * think of right now to force the arguments into fixed registers
0007  * before the trap into the system call with gcc 'asm' statements.
0008  *
0009  * Copyright (C) 1995, 2007 David S. Miller (davem@davemloft.net)
0010  *
0011  * SunOS compatibility based upon preliminary work which is:
0012  *
0013  * Copyright (C) 1995 Adrian M. Rodriguez (adrian@remus.rutgers.edu)
0014  */
0015 #ifndef _SPARC_UNISTD_H
0016 #define _SPARC_UNISTD_H
0017 
0018 #include <uapi/asm/unistd.h>
0019 
0020 #define NR_syscalls __NR_syscalls
0021 
0022 #ifdef __32bit_syscall_numbers__
0023 #else
0024 #define __NR_time       231 /* Linux sparc32                               */
0025 #endif
0026 #define __ARCH_WANT_NEW_STAT
0027 #define __ARCH_WANT_OLD_READDIR
0028 #define __ARCH_WANT_STAT64
0029 #define __ARCH_WANT_SYS_ALARM
0030 #define __ARCH_WANT_SYS_GETHOSTNAME
0031 #define __ARCH_WANT_SYS_PAUSE
0032 #define __ARCH_WANT_SYS_SIGNAL
0033 #define __ARCH_WANT_SYS_TIME32
0034 #define __ARCH_WANT_SYS_UTIME32
0035 #define __ARCH_WANT_SYS_WAITPID
0036 #define __ARCH_WANT_SYS_SOCKETCALL
0037 #define __ARCH_WANT_SYS_FADVISE64
0038 #define __ARCH_WANT_SYS_GETPGRP
0039 #define __ARCH_WANT_SYS_NICE
0040 #define __ARCH_WANT_SYS_OLDUMOUNT
0041 #define __ARCH_WANT_SYS_SIGPENDING
0042 #define __ARCH_WANT_SYS_SIGPROCMASK
0043 #ifdef __32bit_syscall_numbers__
0044 #define __ARCH_WANT_SYS_IPC
0045 #else
0046 #define __ARCH_WANT_SYS_TIME
0047 #define __ARCH_WANT_SYS_UTIME
0048 #define __ARCH_WANT_COMPAT_SYS_SENDFILE
0049 #define __ARCH_WANT_COMPAT_STAT
0050 #endif
0051 
0052 #ifdef __32bit_syscall_numbers__
0053 /* Sparc 32-bit only has the "setresuid32", "getresuid32" variants,
0054  * it never had the plain ones and there is no value to adding those
0055  * old versions into the syscall table.
0056  */
0057 #define __IGNORE_setresuid
0058 #define __IGNORE_getresuid
0059 #define __IGNORE_setresgid
0060 #define __IGNORE_getresgid
0061 #endif
0062 
0063 #endif /* _SPARC_UNISTD_H */