blob: 1e66278ba4a5fdb0db181ad7791853704513c602 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * System calls under the Sparc.
4 *
5 * Don't be scared by the ugly clobbers, it is the only way I can
6 * think of right now to force the arguments into fixed registers
7 * before the trap into the system call with gcc 'asm' statements.
8 *
9 * Copyright (C) 1995, 2007 David S. Miller (davem@davemloft.net)
10 *
11 * SunOS compatibility based upon preliminary work which is:
12 *
13 * Copyright (C) 1995 Adrian M. Rodriguez (adrian@remus.rutgers.edu)
14 */
15#ifndef _SPARC_UNISTD_H
16#define _SPARC_UNISTD_H
17
18#include <uapi/asm/unistd.h>
19
David Brazdil0f672f62019-12-10 10:32:29 +000020#define NR_syscalls __NR_syscalls
21
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000022#ifdef __32bit_syscall_numbers__
23#else
24#define __NR_time 231 /* Linux sparc32 */
25#endif
David Brazdil0f672f62019-12-10 10:32:29 +000026#define __ARCH_WANT_NEW_STAT
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000027#define __ARCH_WANT_OLD_READDIR
28#define __ARCH_WANT_STAT64
29#define __ARCH_WANT_SYS_ALARM
30#define __ARCH_WANT_SYS_GETHOSTNAME
31#define __ARCH_WANT_SYS_PAUSE
32#define __ARCH_WANT_SYS_SIGNAL
David Brazdil0f672f62019-12-10 10:32:29 +000033#define __ARCH_WANT_SYS_TIME32
34#define __ARCH_WANT_SYS_UTIME32
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000035#define __ARCH_WANT_SYS_WAITPID
36#define __ARCH_WANT_SYS_SOCKETCALL
37#define __ARCH_WANT_SYS_FADVISE64
38#define __ARCH_WANT_SYS_GETPGRP
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000039#define __ARCH_WANT_SYS_NICE
40#define __ARCH_WANT_SYS_OLDUMOUNT
41#define __ARCH_WANT_SYS_SIGPENDING
42#define __ARCH_WANT_SYS_SIGPROCMASK
43#ifdef __32bit_syscall_numbers__
44#define __ARCH_WANT_SYS_IPC
45#else
David Brazdil0f672f62019-12-10 10:32:29 +000046#define __ARCH_WANT_SYS_TIME
47#define __ARCH_WANT_SYS_UTIME
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000048#define __ARCH_WANT_COMPAT_SYS_SENDFILE
49#endif
50
David Brazdil0f672f62019-12-10 10:32:29 +000051#ifdef __32bit_syscall_numbers__
52/* Sparc 32-bit only has the "setresuid32", "getresuid32" variants,
53 * it never had the plain ones and there is no value to adding those
54 * old versions into the syscall table.
55 */
56#define __IGNORE_setresuid
57#define __IGNORE_getresuid
58#define __IGNORE_setresgid
59#define __IGNORE_getresgid
60#endif
61
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000062#endif /* _SPARC_UNISTD_H */