blob: b0de85b477e1527051cb354980c5123670c8e212 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * This file contains the system call numbers.
Paul Mackerraseef289f2005-10-10 22:56:11 +10003 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
Linus Torvalds1da177e2005-04-16 15:20:36 -07008 */
David Howellsc3617f72012-10-09 09:47:26 +01009#ifndef _ASM_POWERPC_UNISTD_H_
10#define _ASM_POWERPC_UNISTD_H_
Paul Mackerraseef289f2005-10-10 22:56:11 +100011
David Howellsc3617f72012-10-09 09:47:26 +010012#include <uapi/asm/unistd.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
David Woodhouse56142532006-04-29 01:51:47 +010014
Breno Leitaob2f82562018-06-20 16:35:16 -030015#define NR_syscalls 389
Linus Torvalds1da177e2005-04-16 15:20:36 -070016
Paul Mackerraseef289f2005-10-10 22:56:11 +100017#define __NR__exit __NR_exit
Paul Mackerraseef289f2005-10-10 22:56:11 +100018
19#ifndef __ASSEMBLY__
Linus Torvalds1da177e2005-04-16 15:20:36 -070020
Paul Mackerraseef289f2005-10-10 22:56:11 +100021#include <linux/types.h>
22#include <linux/compiler.h>
23#include <linux/linkage.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070024
Arnd Bergmann82b355d2018-04-13 11:50:12 +020025#define __ARCH_WANT_NEW_STAT
Linus Torvalds1da177e2005-04-16 15:20:36 -070026#define __ARCH_WANT_OLD_READDIR
Linus Torvalds1da177e2005-04-16 15:20:36 -070027#define __ARCH_WANT_STAT64
28#define __ARCH_WANT_SYS_ALARM
29#define __ARCH_WANT_SYS_GETHOSTNAME
Christoph Hellwigbaed7fc2010-03-10 15:21:18 -080030#define __ARCH_WANT_SYS_IPC
Linus Torvalds1da177e2005-04-16 15:20:36 -070031#define __ARCH_WANT_SYS_PAUSE
Linus Torvalds1da177e2005-04-16 15:20:36 -070032#define __ARCH_WANT_SYS_SIGNAL
33#define __ARCH_WANT_SYS_TIME
34#define __ARCH_WANT_SYS_UTIME
35#define __ARCH_WANT_SYS_WAITPID
36#define __ARCH_WANT_SYS_SOCKETCALL
37#define __ARCH_WANT_SYS_FADVISE64
38#define __ARCH_WANT_SYS_GETPGRP
Linus Torvalds1da177e2005-04-16 15:20:36 -070039#define __ARCH_WANT_SYS_NICE
40#define __ARCH_WANT_SYS_OLD_GETRLIMIT
Christoph Hellwig5cacdb42010-03-10 15:21:21 -080041#define __ARCH_WANT_SYS_OLD_UNAME
Linus Torvalds1da177e2005-04-16 15:20:36 -070042#define __ARCH_WANT_SYS_OLDUMOUNT
43#define __ARCH_WANT_SYS_SIGPENDING
44#define __ARCH_WANT_SYS_SIGPROCMASK
Paul Mackerraseef289f2005-10-10 22:56:11 +100045#ifdef CONFIG_PPC32
46#define __ARCH_WANT_OLD_STAT
47#endif
48#ifdef CONFIG_PPC64
49#define __ARCH_WANT_COMPAT_SYS_TIME
Arnd Bergmann4faea232018-04-17 12:03:19 +020050#define __ARCH_WANT_SYS_UTIME32
Andreas Schwab2833c282006-04-27 15:46:42 +020051#define __ARCH_WANT_SYS_NEWFSTATAT
Catalin Marinas8f9c0112012-09-19 12:01:52 +010052#define __ARCH_WANT_COMPAT_SYS_SENDFILE
Paul Mackerraseef289f2005-10-10 22:56:11 +100053#endif
Al Viro0bcfe542012-10-26 23:08:25 -040054#define __ARCH_WANT_SYS_FORK
55#define __ARCH_WANT_SYS_VFORK
56#define __ARCH_WANT_SYS_CLONE
Linus Torvalds1da177e2005-04-16 15:20:36 -070057
Paul Mackerraseef289f2005-10-10 22:56:11 +100058#endif /* __ASSEMBLY__ */
Becky Brucef4dcd3c2007-05-10 10:13:04 -050059#endif /* _ASM_POWERPC_UNISTD_H_ */