blob: 7a39e77984eff49b0d4209eaeba93b0c9f8a48dd [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Russell King4baa9922008-08-02 10:55:55 +01002 * arch/arm/include/asm/unistd.h
Linus Torvalds1da177e2005-04-16 15:20:36 -07003 *
4 * Copyright (C) 2001-2005 Russell King
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * Please forward _all_ changes to this file to rmk@arm.linux.org.uk,
11 * no matter what the change is. Thanks!
12 */
13#ifndef __ASM_ARM_UNISTD_H
14#define __ASM_ARM_UNISTD_H
15
David Howellscb8db5d2012-10-12 13:05:52 +010016#include <uapi/asm/unistd.h>
Russell King96a8fae2016-10-18 19:57:01 +010017#include <asm/unistd-nr.h>
Baruch Siachbc994c72014-07-09 13:33:13 +010018
Arnd Bergmann82b355d2018-04-13 11:50:12 +020019#define __ARCH_WANT_NEW_STAT
Linus Torvalds1da177e2005-04-16 15:20:36 -070020#define __ARCH_WANT_STAT64
Linus Torvalds1da177e2005-04-16 15:20:36 -070021#define __ARCH_WANT_SYS_GETHOSTNAME
22#define __ARCH_WANT_SYS_PAUSE
Linus Torvalds1da177e2005-04-16 15:20:36 -070023#define __ARCH_WANT_SYS_GETPGRP
Linus Torvalds1da177e2005-04-16 15:20:36 -070024#define __ARCH_WANT_SYS_NICE
Linus Torvalds1da177e2005-04-16 15:20:36 -070025#define __ARCH_WANT_SYS_SIGPENDING
26#define __ARCH_WANT_SYS_SIGPROCMASK
Christoph Hellwiga4679372010-03-10 15:21:15 -080027#define __ARCH_WANT_SYS_OLD_MMAP
Christoph Hellwig5d0e5282010-03-10 15:21:13 -080028#define __ARCH_WANT_SYS_OLD_SELECT
Arnd Bergmannd33c5772019-01-06 23:45:29 +010029#define __ARCH_WANT_SYS_UTIME32
Nicolas Pitredd35afc2006-01-14 16:36:12 +000030
31#if !defined(CONFIG_AEABI) || defined(CONFIG_OABI_COMPAT)
Arnd Bergmannd33c5772019-01-06 23:45:29 +010032#define __ARCH_WANT_SYS_TIME32
Christoph Hellwigbaed7fc2010-03-10 15:21:18 -080033#define __ARCH_WANT_SYS_IPC
Nicolas Pitredd35afc2006-01-14 16:36:12 +000034#define __ARCH_WANT_SYS_OLDUMOUNT
35#define __ARCH_WANT_SYS_ALARM
Nicolas Pitredd35afc2006-01-14 16:36:12 +000036#define __ARCH_WANT_SYS_OLD_GETRLIMIT
37#define __ARCH_WANT_OLD_READDIR
38#define __ARCH_WANT_SYS_SOCKETCALL
39#endif
Al Viro38a61b62012-10-21 15:54:27 -040040#define __ARCH_WANT_SYS_FORK
41#define __ARCH_WANT_SYS_VFORK
42#define __ARCH_WANT_SYS_CLONE
Linus Torvalds1da177e2005-04-16 15:20:36 -070043
Linus Torvalds1da177e2005-04-16 15:20:36 -070044/*
Russell Kingc0510792007-05-16 12:41:15 +010045 * Unimplemented (or alternatively implemented) syscalls
46 */
Russell King4dfa3382011-09-17 12:50:27 +010047#define __IGNORE_fadvise64_64
Russell Kingc0510792007-05-16 12:41:15 +010048
Russell King96a8fae2016-10-18 19:57:01 +010049#ifdef __ARM_EABI__
50/*
51 * The following syscalls are obsolete and no longer available for EABI:
52 * __NR_time
53 * __NR_umount
54 * __NR_stime
55 * __NR_alarm
56 * __NR_utime
57 * __NR_getrlimit
58 * __NR_select
59 * __NR_readdir
60 * __NR_mmap
61 * __NR_socketcall
62 * __NR_syscall
63 * __NR_ipc
64 */
65#define __IGNORE_getrlimit
66#endif
67
Linus Torvalds1da177e2005-04-16 15:20:36 -070068#endif /* __ASM_ARM_UNISTD_H */