diff options
Diffstat (limited to 'include/linux/syscalls.h')
-rw-r--r-- | include/linux/syscalls.h | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index 727f0cd73921..45e2db270255 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h | |||
@@ -63,6 +63,7 @@ struct getcpu_cache; | |||
63 | struct old_linux_dirent; | 63 | struct old_linux_dirent; |
64 | struct perf_event_attr; | 64 | struct perf_event_attr; |
65 | struct file_handle; | 65 | struct file_handle; |
66 | struct sigaltstack; | ||
66 | 67 | ||
67 | #include <linux/types.h> | 68 | #include <linux/types.h> |
68 | #include <linux/aio_abi.h> | 69 | #include <linux/aio_abi.h> |
@@ -299,6 +300,11 @@ asmlinkage long sys_personality(unsigned int personality); | |||
299 | asmlinkage long sys_sigpending(old_sigset_t __user *set); | 300 | asmlinkage long sys_sigpending(old_sigset_t __user *set); |
300 | asmlinkage long sys_sigprocmask(int how, old_sigset_t __user *set, | 301 | asmlinkage long sys_sigprocmask(int how, old_sigset_t __user *set, |
301 | old_sigset_t __user *oset); | 302 | old_sigset_t __user *oset); |
303 | #ifdef CONFIG_GENERIC_SIGALTSTACK | ||
304 | asmlinkage long sys_sigaltstack(const struct sigaltstack __user *uss, | ||
305 | struct sigaltstack __user *uoss); | ||
306 | #endif | ||
307 | |||
302 | asmlinkage long sys_getitimer(int which, struct itimerval __user *value); | 308 | asmlinkage long sys_getitimer(int which, struct itimerval __user *value); |
303 | asmlinkage long sys_setitimer(int which, | 309 | asmlinkage long sys_setitimer(int which, |
304 | struct itimerval __user *value, | 310 | struct itimerval __user *value, |
@@ -560,10 +566,10 @@ asmlinkage long sys_utime(char __user *filename, | |||
560 | asmlinkage long sys_utimes(char __user *filename, | 566 | asmlinkage long sys_utimes(char __user *filename, |
561 | struct timeval __user *utimes); | 567 | struct timeval __user *utimes); |
562 | asmlinkage long sys_lseek(unsigned int fd, off_t offset, | 568 | asmlinkage long sys_lseek(unsigned int fd, off_t offset, |
563 | unsigned int origin); | 569 | unsigned int whence); |
564 | asmlinkage long sys_llseek(unsigned int fd, unsigned long offset_high, | 570 | asmlinkage long sys_llseek(unsigned int fd, unsigned long offset_high, |
565 | unsigned long offset_low, loff_t __user *result, | 571 | unsigned long offset_low, loff_t __user *result, |
566 | unsigned int origin); | 572 | unsigned int whence); |
567 | asmlinkage long sys_read(unsigned int fd, char __user *buf, size_t count); | 573 | asmlinkage long sys_read(unsigned int fd, char __user *buf, size_t count); |
568 | asmlinkage long sys_readahead(int fd, loff_t offset, size_t count); | 574 | asmlinkage long sys_readahead(int fd, loff_t offset, size_t count); |
569 | asmlinkage long sys_readv(unsigned long fd, | 575 | asmlinkage long sys_readv(unsigned long fd, |
@@ -827,16 +833,19 @@ asmlinkage long sys_fanotify_mark(int fanotify_fd, unsigned int flags, | |||
827 | const char __user *pathname); | 833 | const char __user *pathname); |
828 | asmlinkage long sys_syncfs(int fd); | 834 | asmlinkage long sys_syncfs(int fd); |
829 | 835 | ||
830 | #ifndef CONFIG_GENERIC_KERNEL_EXECVE | 836 | asmlinkage long sys_fork(void); |
831 | int kernel_execve(const char *filename, const char *const argv[], const char *const envp[]); | 837 | asmlinkage long sys_vfork(void); |
838 | #ifdef CONFIG_CLONE_BACKWARDS | ||
839 | asmlinkage long sys_clone(unsigned long, unsigned long, int __user *, int, | ||
840 | int __user *); | ||
832 | #else | 841 | #else |
833 | #define kernel_execve(filename, argv, envp) \ | 842 | asmlinkage long sys_clone(unsigned long, unsigned long, int __user *, |
834 | do_execve(filename, \ | 843 | int __user *, int); |
835 | (const char __user *const __user *)argv, \ | ||
836 | (const char __user *const __user *)envp, \ | ||
837 | current_pt_regs()) | ||
838 | #endif | 844 | #endif |
839 | 845 | ||
846 | asmlinkage long sys_execve(const char __user *filename, | ||
847 | const char __user *const __user *argv, | ||
848 | const char __user *const __user *envp); | ||
840 | 849 | ||
841 | asmlinkage long sys_perf_event_open( | 850 | asmlinkage long sys_perf_event_open( |
842 | struct perf_event_attr __user *attr_uptr, | 851 | struct perf_event_attr __user *attr_uptr, |
@@ -868,4 +877,5 @@ asmlinkage long sys_process_vm_writev(pid_t pid, | |||
868 | 877 | ||
869 | asmlinkage long sys_kcmp(pid_t pid1, pid_t pid2, int type, | 878 | asmlinkage long sys_kcmp(pid_t pid1, pid_t pid2, int type, |
870 | unsigned long idx1, unsigned long idx2); | 879 | unsigned long idx1, unsigned long idx2); |
880 | asmlinkage long sys_finit_module(int fd, const char __user *uargs, int flags); | ||
871 | #endif | 881 | #endif |