blob: 9fb00973c6084e32a9941ee0a224e4cbe9fb8a1f [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
Russell King4baa9922008-08-02 10:55:55 +01003 * arch/arm/include/asm/unistd.h
Linus Torvalds1da177e2005-04-16 15:20:36 -07004 *
5 * Copyright (C) 2001-2005 Russell King
6 *
Linus Torvalds1da177e2005-04-16 15:20:36 -07007 * Please forward _all_ changes to this file to rmk@arm.linux.org.uk,
8 * no matter what the change is. Thanks!
9 */
10#ifndef __ASM_ARM_UNISTD_H
11#define __ASM_ARM_UNISTD_H
12
David Howellscb8db5d2012-10-12 13:05:52 +010013#include <uapi/asm/unistd.h>
Russell King96a8fae2016-10-18 19:57:01 +010014#include <asm/unistd-nr.h>
Baruch Siachbc994c72014-07-09 13:33:13 +010015
Arnd Bergmann82b355d2018-04-13 11:50:12 +020016#define __ARCH_WANT_NEW_STAT
Linus Torvalds1da177e2005-04-16 15:20:36 -070017#define __ARCH_WANT_STAT64
Linus Torvalds1da177e2005-04-16 15:20:36 -070018#define __ARCH_WANT_SYS_GETHOSTNAME
19#define __ARCH_WANT_SYS_PAUSE
Linus Torvalds1da177e2005-04-16 15:20:36 -070020#define __ARCH_WANT_SYS_GETPGRP
Linus Torvalds1da177e2005-04-16 15:20:36 -070021#define __ARCH_WANT_SYS_NICE
Linus Torvalds1da177e2005-04-16 15:20:36 -070022#define __ARCH_WANT_SYS_SIGPENDING
23#define __ARCH_WANT_SYS_SIGPROCMASK
Christoph Hellwiga4679372010-03-10 15:21:15 -080024#define __ARCH_WANT_SYS_OLD_MMAP
Christoph Hellwig5d0e5282010-03-10 15:21:13 -080025#define __ARCH_WANT_SYS_OLD_SELECT
Arnd Bergmannd33c5772019-01-06 23:45:29 +010026#define __ARCH_WANT_SYS_UTIME32
Nicolas Pitredd35afc2006-01-14 16:36:12 +000027
28#if !defined(CONFIG_AEABI) || defined(CONFIG_OABI_COMPAT)
Arnd Bergmannd33c5772019-01-06 23:45:29 +010029#define __ARCH_WANT_SYS_TIME32
Christoph Hellwigbaed7fc2010-03-10 15:21:18 -080030#define __ARCH_WANT_SYS_IPC
Nicolas Pitredd35afc2006-01-14 16:36:12 +000031#define __ARCH_WANT_SYS_OLDUMOUNT
32#define __ARCH_WANT_SYS_ALARM
Nicolas Pitredd35afc2006-01-14 16:36:12 +000033#define __ARCH_WANT_SYS_OLD_GETRLIMIT
34#define __ARCH_WANT_OLD_READDIR
35#define __ARCH_WANT_SYS_SOCKETCALL
36#endif
Al Viro38a61b62012-10-21 15:54:27 -040037#define __ARCH_WANT_SYS_FORK
38#define __ARCH_WANT_SYS_VFORK
39#define __ARCH_WANT_SYS_CLONE
Linus Torvalds1da177e2005-04-16 15:20:36 -070040
Linus Torvalds1da177e2005-04-16 15:20:36 -070041/*
Russell Kingc0510792007-05-16 12:41:15 +010042 * Unimplemented (or alternatively implemented) syscalls
43 */
Russell King4dfa3382011-09-17 12:50:27 +010044#define __IGNORE_fadvise64_64
Russell Kingc0510792007-05-16 12:41:15 +010045
Russell King96a8fae2016-10-18 19:57:01 +010046#ifdef __ARM_EABI__
47/*
48 * The following syscalls are obsolete and no longer available for EABI:
49 * __NR_time
50 * __NR_umount
51 * __NR_stime
52 * __NR_alarm
53 * __NR_utime
54 * __NR_getrlimit
55 * __NR_select
56 * __NR_readdir
57 * __NR_mmap
58 * __NR_socketcall
59 * __NR_syscall
60 * __NR_ipc
61 */
62#define __IGNORE_getrlimit
63#endif
64
Linus Torvalds1da177e2005-04-16 15:20:36 -070065#endif /* __ASM_ARM_UNISTD_H */