blob: 32640c431a087f682ff461f971ca0c7c960c737e [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>
Nicolas Pitre3f2829a2006-01-14 16:31:29 +000017
Baruch Siachbc994c72014-07-09 13:33:13 +010018/*
19 * This may need to be greater than __NR_last_syscall+1 in order to
20 * account for the padding in the syscall table
21 */
Russell Kingeb645252014-08-08 10:56:34 +010022#define __NR_syscalls (388)
Baruch Siachbc994c72014-07-09 13:33:13 +010023
24/*
25 * *NOTE*: This is a ghost syscall private to the kernel. Only the
26 * __kuser_cmpxchg code in entry-armv.S should be aware of its
27 * existence. Don't ever use this from user code.
28 */
Russell Kingcc20d422009-11-09 23:53:29 +000029#define __ARM_NR_cmpxchg (__ARM_NR_BASE+0x00fff0)
Linus Torvalds1da177e2005-04-16 15:20:36 -070030
Linus Torvalds1da177e2005-04-16 15:20:36 -070031#define __ARCH_WANT_STAT64
Linus Torvalds1da177e2005-04-16 15:20:36 -070032#define __ARCH_WANT_SYS_GETHOSTNAME
33#define __ARCH_WANT_SYS_PAUSE
Linus Torvalds1da177e2005-04-16 15:20:36 -070034#define __ARCH_WANT_SYS_GETPGRP
35#define __ARCH_WANT_SYS_LLSEEK
36#define __ARCH_WANT_SYS_NICE
Linus Torvalds1da177e2005-04-16 15:20:36 -070037#define __ARCH_WANT_SYS_SIGPENDING
38#define __ARCH_WANT_SYS_SIGPROCMASK
Christoph Hellwiga4679372010-03-10 15:21:15 -080039#define __ARCH_WANT_SYS_OLD_MMAP
Christoph Hellwig5d0e5282010-03-10 15:21:13 -080040#define __ARCH_WANT_SYS_OLD_SELECT
Nicolas Pitredd35afc2006-01-14 16:36:12 +000041
42#if !defined(CONFIG_AEABI) || defined(CONFIG_OABI_COMPAT)
43#define __ARCH_WANT_SYS_TIME
Christoph Hellwigbaed7fc2010-03-10 15:21:18 -080044#define __ARCH_WANT_SYS_IPC
Nicolas Pitredd35afc2006-01-14 16:36:12 +000045#define __ARCH_WANT_SYS_OLDUMOUNT
46#define __ARCH_WANT_SYS_ALARM
47#define __ARCH_WANT_SYS_UTIME
48#define __ARCH_WANT_SYS_OLD_GETRLIMIT
49#define __ARCH_WANT_OLD_READDIR
50#define __ARCH_WANT_SYS_SOCKETCALL
51#endif
Al Viro38a61b62012-10-21 15:54:27 -040052#define __ARCH_WANT_SYS_FORK
53#define __ARCH_WANT_SYS_VFORK
54#define __ARCH_WANT_SYS_CLONE
Linus Torvalds1da177e2005-04-16 15:20:36 -070055
Linus Torvalds1da177e2005-04-16 15:20:36 -070056/*
Russell Kingc0510792007-05-16 12:41:15 +010057 * Unimplemented (or alternatively implemented) syscalls
58 */
Russell King4dfa3382011-09-17 12:50:27 +010059#define __IGNORE_fadvise64_64
60#define __IGNORE_migrate_pages
Russell Kingc0510792007-05-16 12:41:15 +010061
Linus Torvalds1da177e2005-04-16 15:20:36 -070062#endif /* __ASM_ARM_UNISTD_H */