unistd.h 1.6 KB
Newer Older
L
Linus Torvalds 已提交
1 2
/*
 * This file contains the system call numbers.
P
Paul Mackerras 已提交
3 4 5 6 7
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version
 * 2 of the License, or (at your option) any later version.
L
Linus Torvalds 已提交
8
 */
9 10
#ifndef _ASM_POWERPC_UNISTD_H_
#define _ASM_POWERPC_UNISTD_H_
P
Paul Mackerras 已提交
11

12
#include <uapi/asm/unistd.h>
L
Linus Torvalds 已提交
13

14

15
#define __NR_syscalls		358
L
Linus Torvalds 已提交
16

P
Paul Mackerras 已提交
17 18 19 20
#define __NR__exit __NR_exit
#define NR_syscalls	__NR_syscalls

#ifndef __ASSEMBLY__
L
Linus Torvalds 已提交
21

P
Paul Mackerras 已提交
22 23 24
#include <linux/types.h>
#include <linux/compiler.h>
#include <linux/linkage.h>
L
Linus Torvalds 已提交
25 26 27 28 29

#define __ARCH_WANT_OLD_READDIR
#define __ARCH_WANT_STAT64
#define __ARCH_WANT_SYS_ALARM
#define __ARCH_WANT_SYS_GETHOSTNAME
C
Christoph Hellwig 已提交
30
#define __ARCH_WANT_SYS_IPC
L
Linus Torvalds 已提交
31 32 33 34 35 36 37 38 39 40 41
#define __ARCH_WANT_SYS_PAUSE
#define __ARCH_WANT_SYS_SIGNAL
#define __ARCH_WANT_SYS_TIME
#define __ARCH_WANT_SYS_UTIME
#define __ARCH_WANT_SYS_WAITPID
#define __ARCH_WANT_SYS_SOCKETCALL
#define __ARCH_WANT_SYS_FADVISE64
#define __ARCH_WANT_SYS_GETPGRP
#define __ARCH_WANT_SYS_LLSEEK
#define __ARCH_WANT_SYS_NICE
#define __ARCH_WANT_SYS_OLD_GETRLIMIT
C
Christoph Hellwig 已提交
42
#define __ARCH_WANT_SYS_OLD_UNAME
L
Linus Torvalds 已提交
43 44 45
#define __ARCH_WANT_SYS_OLDUMOUNT
#define __ARCH_WANT_SYS_SIGPENDING
#define __ARCH_WANT_SYS_SIGPROCMASK
P
Paul Mackerras 已提交
46 47 48 49 50
#ifdef CONFIG_PPC32
#define __ARCH_WANT_OLD_STAT
#endif
#ifdef CONFIG_PPC64
#define __ARCH_WANT_COMPAT_SYS_TIME
51
#define __ARCH_WANT_SYS_NEWFSTATAT
52
#define __ARCH_WANT_COMPAT_SYS_SENDFILE
P
Paul Mackerras 已提交
53
#endif
54 55 56
#define __ARCH_WANT_SYS_FORK
#define __ARCH_WANT_SYS_VFORK
#define __ARCH_WANT_SYS_CLONE
L
Linus Torvalds 已提交
57

P
Paul Mackerras 已提交
58
#endif		/* __ASSEMBLY__ */
59
#endif /* _ASM_POWERPC_UNISTD_H_ */