aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/syscalls.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/syscalls.h')
-rw-r--r--include/linux/syscalls.h28
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;
63struct old_linux_dirent; 63struct old_linux_dirent;
64struct perf_event_attr; 64struct perf_event_attr;
65struct file_handle; 65struct file_handle;
66struct 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);
299asmlinkage long sys_sigpending(old_sigset_t __user *set); 300asmlinkage long sys_sigpending(old_sigset_t __user *set);
300asmlinkage long sys_sigprocmask(int how, old_sigset_t __user *set, 301asmlinkage 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
304asmlinkage long sys_sigaltstack(const struct sigaltstack __user *uss,
305 struct sigaltstack __user *uoss);
306#endif
307
302asmlinkage long sys_getitimer(int which, struct itimerval __user *value); 308asmlinkage long sys_getitimer(int which, struct itimerval __user *value);
303asmlinkage long sys_setitimer(int which, 309asmlinkage 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,
560asmlinkage long sys_utimes(char __user *filename, 566asmlinkage long sys_utimes(char __user *filename,
561 struct timeval __user *utimes); 567 struct timeval __user *utimes);
562asmlinkage long sys_lseek(unsigned int fd, off_t offset, 568asmlinkage long sys_lseek(unsigned int fd, off_t offset,
563 unsigned int origin); 569 unsigned int whence);
564asmlinkage long sys_llseek(unsigned int fd, unsigned long offset_high, 570asmlinkage 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);
567asmlinkage long sys_read(unsigned int fd, char __user *buf, size_t count); 573asmlinkage long sys_read(unsigned int fd, char __user *buf, size_t count);
568asmlinkage long sys_readahead(int fd, loff_t offset, size_t count); 574asmlinkage long sys_readahead(int fd, loff_t offset, size_t count);
569asmlinkage long sys_readv(unsigned long fd, 575asmlinkage 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);
828asmlinkage long sys_syncfs(int fd); 834asmlinkage long sys_syncfs(int fd);
829 835
830#ifndef CONFIG_GENERIC_KERNEL_EXECVE 836asmlinkage long sys_fork(void);
831int kernel_execve(const char *filename, const char *const argv[], const char *const envp[]); 837asmlinkage long sys_vfork(void);
838#ifdef CONFIG_CLONE_BACKWARDS
839asmlinkage long sys_clone(unsigned long, unsigned long, int __user *, int,
840 int __user *);
832#else 841#else
833#define kernel_execve(filename, argv, envp) \ 842asmlinkage 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
846asmlinkage long sys_execve(const char __user *filename,
847 const char __user *const __user *argv,
848 const char __user *const __user *envp);
840 849
841asmlinkage long sys_perf_event_open( 850asmlinkage 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
869asmlinkage long sys_kcmp(pid_t pid1, pid_t pid2, int type, 878asmlinkage 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);
880asmlinkage long sys_finit_module(int fd, const char __user *uargs, int flags);
871#endif 881#endif