Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
Russell King | 4baa992 | 2008-08-02 10:55:55 +0100 | [diff] [blame] | 2 | * arch/arm/include/asm/unistd.h |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | * |
| 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 Howells | cb8db5d | 2012-10-12 13:05:52 +0100 | [diff] [blame] | 16 | #include <uapi/asm/unistd.h> |
Nicolas Pitre | 3f2829a | 2006-01-14 16:31:29 +0000 | [diff] [blame] | 17 | |
Wade Farnsworth | 1f66e06 | 2012-09-07 18:18:25 +0100 | [diff] [blame] | 18 | #define __NR_syscalls (380) |
Russell King | cc20d42 | 2009-11-09 23:53:29 +0000 | [diff] [blame] | 19 | #define __ARM_NR_cmpxchg (__ARM_NR_BASE+0x00fff0) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | #define __ARCH_WANT_STAT64 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | #define __ARCH_WANT_SYS_GETHOSTNAME |
| 23 | #define __ARCH_WANT_SYS_PAUSE |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | #define __ARCH_WANT_SYS_GETPGRP |
| 25 | #define __ARCH_WANT_SYS_LLSEEK |
| 26 | #define __ARCH_WANT_SYS_NICE |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | #define __ARCH_WANT_SYS_SIGPENDING |
| 28 | #define __ARCH_WANT_SYS_SIGPROCMASK |
| 29 | #define __ARCH_WANT_SYS_RT_SIGACTION |
Mikael Pettersson | 3698426 | 2009-08-15 12:58:11 +0100 | [diff] [blame] | 30 | #define __ARCH_WANT_SYS_RT_SIGSUSPEND |
Christoph Hellwig | a467937 | 2010-03-10 15:21:15 -0800 | [diff] [blame] | 31 | #define __ARCH_WANT_SYS_OLD_MMAP |
Christoph Hellwig | 5d0e528 | 2010-03-10 15:21:13 -0800 | [diff] [blame] | 32 | #define __ARCH_WANT_SYS_OLD_SELECT |
Nicolas Pitre | dd35afc | 2006-01-14 16:36:12 +0000 | [diff] [blame] | 33 | |
| 34 | #if !defined(CONFIG_AEABI) || defined(CONFIG_OABI_COMPAT) |
| 35 | #define __ARCH_WANT_SYS_TIME |
Christoph Hellwig | baed7fc | 2010-03-10 15:21:18 -0800 | [diff] [blame] | 36 | #define __ARCH_WANT_SYS_IPC |
Nicolas Pitre | dd35afc | 2006-01-14 16:36:12 +0000 | [diff] [blame] | 37 | #define __ARCH_WANT_SYS_OLDUMOUNT |
| 38 | #define __ARCH_WANT_SYS_ALARM |
| 39 | #define __ARCH_WANT_SYS_UTIME |
| 40 | #define __ARCH_WANT_SYS_OLD_GETRLIMIT |
| 41 | #define __ARCH_WANT_OLD_READDIR |
| 42 | #define __ARCH_WANT_SYS_SOCKETCALL |
| 43 | #endif |
Al Viro | a63c97a | 2012-08-02 11:52:41 +0400 | [diff] [blame] | 44 | #define __ARCH_WANT_SYS_EXECVE |
Al Viro | 38a61b6 | 2012-10-21 15:54:27 -0400 | [diff] [blame^] | 45 | #define __ARCH_WANT_SYS_FORK |
| 46 | #define __ARCH_WANT_SYS_VFORK |
| 47 | #define __ARCH_WANT_SYS_CLONE |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 48 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 49 | /* |
| 50 | * "Conditional" syscalls |
| 51 | * |
| 52 | * What we want is __attribute__((weak,alias("sys_ni_syscall"))), |
| 53 | * but it doesn't work on all toolchains, so we just do it by hand |
| 54 | */ |
| 55 | #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall") |
| 56 | |
Russell King | c051079 | 2007-05-16 12:41:15 +0100 | [diff] [blame] | 57 | /* |
| 58 | * Unimplemented (or alternatively implemented) syscalls |
| 59 | */ |
Russell King | 4dfa338 | 2011-09-17 12:50:27 +0100 | [diff] [blame] | 60 | #define __IGNORE_fadvise64_64 |
| 61 | #define __IGNORE_migrate_pages |
Russell King | bf619fa | 2012-09-21 17:55:20 +0100 | [diff] [blame] | 62 | #define __IGNORE_kcmp |
Russell King | c051079 | 2007-05-16 12:41:15 +0100 | [diff] [blame] | 63 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 64 | #endif /* __ASM_ARM_UNISTD_H */ |