diff options
Diffstat (limited to 'include/linux/syscalls.h')
| -rw-r--r-- | include/linux/syscalls.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index 94273bbe6050..697ceb70a9a9 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h | |||
| @@ -38,6 +38,7 @@ struct rlimit; | |||
| 38 | struct rlimit64; | 38 | struct rlimit64; |
| 39 | struct rusage; | 39 | struct rusage; |
| 40 | struct sched_param; | 40 | struct sched_param; |
| 41 | struct sched_attr; | ||
| 41 | struct sel_arg_struct; | 42 | struct sel_arg_struct; |
| 42 | struct semaphore; | 43 | struct semaphore; |
| 43 | struct sembuf; | 44 | struct sembuf; |
| @@ -97,6 +98,8 @@ struct sigaltstack; | |||
| 97 | #define __MAP(n,...) __MAP##n(__VA_ARGS__) | 98 | #define __MAP(n,...) __MAP##n(__VA_ARGS__) |
| 98 | 99 | ||
| 99 | #define __SC_DECL(t, a) t a | 100 | #define __SC_DECL(t, a) t a |
| 101 | #define __TYPE_IS_L(t) (__same_type((t)0, 0L)) | ||
| 102 | #define __TYPE_IS_UL(t) (__same_type((t)0, 0UL)) | ||
| 100 | #define __TYPE_IS_LL(t) (__same_type((t)0, 0LL) || __same_type((t)0, 0ULL)) | 103 | #define __TYPE_IS_LL(t) (__same_type((t)0, 0LL) || __same_type((t)0, 0ULL)) |
| 101 | #define __SC_LONG(t, a) __typeof(__builtin_choose_expr(__TYPE_IS_LL(t), 0LL, 0L)) a | 104 | #define __SC_LONG(t, a) __typeof(__builtin_choose_expr(__TYPE_IS_LL(t), 0LL, 0L)) a |
| 102 | #define __SC_CAST(t, a) (t) a | 105 | #define __SC_CAST(t, a) (t) a |
| @@ -197,6 +200,8 @@ extern struct trace_event_functions exit_syscall_print_funcs; | |||
| 197 | } \ | 200 | } \ |
| 198 | static inline long SYSC##name(__MAP(x,__SC_DECL,__VA_ARGS__)) | 201 | static inline long SYSC##name(__MAP(x,__SC_DECL,__VA_ARGS__)) |
| 199 | 202 | ||
| 203 | asmlinkage long sys32_quotactl(unsigned int cmd, const char __user *special, | ||
| 204 | qid_t id, void __user *addr); | ||
| 200 | asmlinkage long sys_time(time_t __user *tloc); | 205 | asmlinkage long sys_time(time_t __user *tloc); |
| 201 | asmlinkage long sys_stime(time_t __user *tptr); | 206 | asmlinkage long sys_stime(time_t __user *tptr); |
| 202 | asmlinkage long sys_gettimeofday(struct timeval __user *tv, | 207 | asmlinkage long sys_gettimeofday(struct timeval __user *tv, |
| @@ -279,9 +284,16 @@ asmlinkage long sys_sched_setscheduler(pid_t pid, int policy, | |||
| 279 | struct sched_param __user *param); | 284 | struct sched_param __user *param); |
| 280 | asmlinkage long sys_sched_setparam(pid_t pid, | 285 | asmlinkage long sys_sched_setparam(pid_t pid, |
| 281 | struct sched_param __user *param); | 286 | struct sched_param __user *param); |
| 287 | asmlinkage long sys_sched_setattr(pid_t pid, | ||
| 288 | struct sched_attr __user *attr, | ||
| 289 | unsigned int flags); | ||
| 282 | asmlinkage long sys_sched_getscheduler(pid_t pid); | 290 | asmlinkage long sys_sched_getscheduler(pid_t pid); |
| 283 | asmlinkage long sys_sched_getparam(pid_t pid, | 291 | asmlinkage long sys_sched_getparam(pid_t pid, |
| 284 | struct sched_param __user *param); | 292 | struct sched_param __user *param); |
| 293 | asmlinkage long sys_sched_getattr(pid_t pid, | ||
| 294 | struct sched_attr __user *attr, | ||
| 295 | unsigned int size, | ||
| 296 | unsigned int flags); | ||
| 285 | asmlinkage long sys_sched_setaffinity(pid_t pid, unsigned int len, | 297 | asmlinkage long sys_sched_setaffinity(pid_t pid, unsigned int len, |
| 286 | unsigned long __user *user_mask_ptr); | 298 | unsigned long __user *user_mask_ptr); |
| 287 | asmlinkage long sys_sched_getaffinity(pid_t pid, unsigned int len, | 299 | asmlinkage long sys_sched_getaffinity(pid_t pid, unsigned int len, |
| @@ -736,6 +748,9 @@ asmlinkage long sys_linkat(int olddfd, const char __user *oldname, | |||
| 736 | int newdfd, const char __user *newname, int flags); | 748 | int newdfd, const char __user *newname, int flags); |
| 737 | asmlinkage long sys_renameat(int olddfd, const char __user * oldname, | 749 | asmlinkage long sys_renameat(int olddfd, const char __user * oldname, |
| 738 | int newdfd, const char __user * newname); | 750 | int newdfd, const char __user * newname); |
| 751 | asmlinkage long sys_renameat2(int olddfd, const char __user *oldname, | ||
| 752 | int newdfd, const char __user *newname, | ||
| 753 | unsigned int flags); | ||
| 739 | asmlinkage long sys_futimesat(int dfd, const char __user *filename, | 754 | asmlinkage long sys_futimesat(int dfd, const char __user *filename, |
| 740 | struct timeval __user *utimes); | 755 | struct timeval __user *utimes); |
| 741 | asmlinkage long sys_faccessat(int dfd, const char __user *filename, int mode); | 756 | asmlinkage long sys_faccessat(int dfd, const char __user *filename, int mode); |
