blob: 0aac1e8f29683a7384058405c3ea241f4d33179e [file] [log] [blame]
Stephen Rothwell9acee192008-11-26 00:51:32 -08001/*
2 * System calls under the Sparc.
3 *
4 * Don't be scared by the ugly clobbers, it is the only way I can
5 * think of right now to force the arguments into fixed registers
6 * before the trap into the system call with gcc 'asm' statements.
7 *
8 * Copyright (C) 1995, 2007 David S. Miller (davem@davemloft.net)
9 *
10 * SunOS compatibility based upon preliminary work which is:
11 *
12 * Copyright (C) 1995 Adrian M. Rodriguez (adrian@remus.rutgers.edu)
13 */
David Howells54579822012-10-09 09:47:43 +010014#ifndef _SPARC_UNISTD_H
15#define _SPARC_UNISTD_H
Stephen Rothwell9acee192008-11-26 00:51:32 -080016
David Howells54579822012-10-09 09:47:43 +010017#include <uapi/asm/unistd.h>
18
Stephen Rothwell9acee192008-11-26 00:51:32 -080019#ifdef __32bit_syscall_numbers__
Sam Ravnborga439fe52008-07-27 23:00:59 +020020#else
Stephen Rothwell9acee192008-11-26 00:51:32 -080021#define __NR_time 231 /* Linux sparc32 */
Sam Ravnborga439fe52008-07-27 23:00:59 +020022#endif
Stephen Rothwell9acee192008-11-26 00:51:32 -080023#define __ARCH_WANT_OLD_READDIR
24#define __ARCH_WANT_STAT64
25#define __ARCH_WANT_SYS_ALARM
26#define __ARCH_WANT_SYS_GETHOSTNAME
27#define __ARCH_WANT_SYS_PAUSE
Stephen Rothwell9acee192008-11-26 00:51:32 -080028#define __ARCH_WANT_SYS_SIGNAL
29#define __ARCH_WANT_SYS_TIME
30#define __ARCH_WANT_SYS_UTIME
31#define __ARCH_WANT_SYS_WAITPID
32#define __ARCH_WANT_SYS_SOCKETCALL
33#define __ARCH_WANT_SYS_FADVISE64
34#define __ARCH_WANT_SYS_GETPGRP
35#define __ARCH_WANT_SYS_LLSEEK
36#define __ARCH_WANT_SYS_NICE
37#define __ARCH_WANT_SYS_OLDUMOUNT
38#define __ARCH_WANT_SYS_SIGPENDING
39#define __ARCH_WANT_SYS_SIGPROCMASK
Christoph Hellwigbaed7fc2010-03-10 15:21:18 -080040#ifdef __32bit_syscall_numbers__
41#define __ARCH_WANT_SYS_IPC
42#else
Stephen Rothwell9acee192008-11-26 00:51:32 -080043#define __ARCH_WANT_COMPAT_SYS_TIME
Catalin Marinas8f9c0112012-09-19 12:01:52 +010044#define __ARCH_WANT_COMPAT_SYS_SENDFILE
Stephen Rothwell9acee192008-11-26 00:51:32 -080045#endif
46
Stephen Rothwell9acee192008-11-26 00:51:32 -080047#endif /* _SPARC_UNISTD_H */