diff options
Diffstat (limited to 'include/linux/syscalls.h')
| -rw-r--r-- | include/linux/syscalls.h | 72 | 
1 files changed, 68 insertions, 4 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index 257cccba3062..94369f5bd8e5 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h @@ -54,7 +54,7 @@ struct __sysctl_args;  struct sysinfo;  struct timespec;  struct timeval; -struct timex; +struct __kernel_timex;  struct timezone;  struct tms;  struct utimbuf; @@ -297,6 +297,11 @@ asmlinkage long sys_io_getevents(aio_context_t ctx_id,  				long nr,  				struct io_event __user *events,  				struct __kernel_timespec __user *timeout); +asmlinkage long sys_io_getevents_time32(__u32 ctx_id, +				__s32 min_nr, +				__s32 nr, +				struct io_event __user *events, +				struct old_timespec32 __user *timeout);  asmlinkage long sys_io_pgetevents(aio_context_t ctx_id,  				long min_nr,  				long nr, @@ -522,11 +527,19 @@ asmlinkage long sys_timerfd_settime(int ufd, int flags,  				    const struct __kernel_itimerspec __user *utmr,  				    struct __kernel_itimerspec __user *otmr);  asmlinkage long sys_timerfd_gettime(int ufd, struct __kernel_itimerspec __user *otmr); +asmlinkage long sys_timerfd_gettime32(int ufd, +				   struct old_itimerspec32 __user *otmr); +asmlinkage long sys_timerfd_settime32(int ufd, int flags, +				   const struct old_itimerspec32 __user *utmr, +				   struct old_itimerspec32 __user *otmr);  /* fs/utimes.c */  asmlinkage long sys_utimensat(int dfd, const char __user *filename,  				struct __kernel_timespec __user *utimes,  				int flags); +asmlinkage long sys_utimensat_time32(unsigned int dfd, +				const char __user *filename, +				struct old_timespec32 __user *t, int flags);  /* kernel/acct.c */  asmlinkage long sys_acct(const char __user *name); @@ -555,6 +568,9 @@ asmlinkage long sys_unshare(unsigned long unshare_flags);  asmlinkage long sys_futex(u32 __user *uaddr, int op, u32 val,  			struct __kernel_timespec __user *utime, u32 __user *uaddr2,  			u32 val3); +asmlinkage long sys_futex_time32(u32 __user *uaddr, int op, u32 val, +			struct old_timespec32 __user *utime, u32 __user *uaddr2, +			u32 val3);  asmlinkage long sys_get_robust_list(int pid,  				    struct robust_list_head __user * __user *head_ptr,  				    size_t __user *len_ptr); @@ -564,6 +580,8 @@ asmlinkage long sys_set_robust_list(struct robust_list_head __user *head,  /* kernel/hrtimer.c */  asmlinkage long sys_nanosleep(struct __kernel_timespec __user *rqtp,  			      struct __kernel_timespec __user *rmtp); +asmlinkage long sys_nanosleep_time32(struct old_timespec32 __user *rqtp, +				     struct old_timespec32 __user *rmtp);  /* kernel/itimer.c */  asmlinkage long sys_getitimer(int which, struct itimerval __user *value); @@ -591,7 +609,7 @@ asmlinkage long sys_timer_gettime(timer_t timer_id,  asmlinkage long sys_timer_getoverrun(timer_t timer_id);  asmlinkage long sys_timer_settime(timer_t timer_id, int flags,  				const struct __kernel_itimerspec __user *new_setting, -				struct itimerspec __user *old_setting); +				struct __kernel_itimerspec __user *old_setting);  asmlinkage long sys_timer_delete(timer_t timer_id);  asmlinkage long sys_clock_settime(clockid_t which_clock,  				const struct __kernel_timespec __user *tp); @@ -602,6 +620,20 @@ asmlinkage long sys_clock_getres(clockid_t which_clock,  asmlinkage long sys_clock_nanosleep(clockid_t which_clock, int flags,  				const struct __kernel_timespec __user *rqtp,  				struct __kernel_timespec __user *rmtp); +asmlinkage long sys_timer_gettime32(timer_t timer_id, +				 struct old_itimerspec32 __user *setting); +asmlinkage long sys_timer_settime32(timer_t timer_id, int flags, +					 struct old_itimerspec32 __user *new, +					 struct old_itimerspec32 __user *old); +asmlinkage long sys_clock_settime32(clockid_t which_clock, +				struct old_timespec32 __user *tp); +asmlinkage long sys_clock_gettime32(clockid_t which_clock, +				struct old_timespec32 __user *tp); +asmlinkage long sys_clock_getres_time32(clockid_t which_clock, +				struct old_timespec32 __user *tp); +asmlinkage long sys_clock_nanosleep_time32(clockid_t which_clock, int flags, +				struct old_timespec32 __user *rqtp, +				struct old_timespec32 __user *rmtp);  /* kernel/printk.c */  asmlinkage long sys_syslog(int type, char __user *buf, int len); @@ -627,6 +659,8 @@ asmlinkage long sys_sched_get_priority_max(int policy);  asmlinkage long sys_sched_get_priority_min(int policy);  asmlinkage long sys_sched_rr_get_interval(pid_t pid,  				struct __kernel_timespec __user *interval); +asmlinkage long sys_sched_rr_get_interval_time32(pid_t pid, +						 struct old_timespec32 __user *interval);  /* kernel/signal.c */  asmlinkage long sys_restart_syscall(void); @@ -695,7 +729,8 @@ asmlinkage long sys_gettimeofday(struct timeval __user *tv,  				struct timezone __user *tz);  asmlinkage long sys_settimeofday(struct timeval __user *tv,  				struct timezone __user *tz); -asmlinkage long sys_adjtimex(struct timex __user *txc_p); +asmlinkage long sys_adjtimex(struct __kernel_timex __user *txc_p); +asmlinkage long sys_adjtimex_time32(struct old_timex32 __user *txc_p);  /* kernel/timer.c */  asmlinkage long sys_getpid(void); @@ -714,9 +749,18 @@ asmlinkage long sys_mq_timedsend(mqd_t mqdes, const char __user *msg_ptr, size_t  asmlinkage long sys_mq_timedreceive(mqd_t mqdes, char __user *msg_ptr, size_t msg_len, unsigned int __user *msg_prio, const struct __kernel_timespec __user *abs_timeout);  asmlinkage long sys_mq_notify(mqd_t mqdes, const struct sigevent __user *notification);  asmlinkage long sys_mq_getsetattr(mqd_t mqdes, const struct mq_attr __user *mqstat, struct mq_attr __user *omqstat); +asmlinkage long sys_mq_timedreceive_time32(mqd_t mqdes, +			char __user *u_msg_ptr, +			unsigned int msg_len, unsigned int __user *u_msg_prio, +			const struct old_timespec32 __user *u_abs_timeout); +asmlinkage long sys_mq_timedsend_time32(mqd_t mqdes, +			const char __user *u_msg_ptr, +			unsigned int msg_len, unsigned int msg_prio, +			const struct old_timespec32 __user *u_abs_timeout);  /* ipc/msg.c */  asmlinkage long sys_msgget(key_t key, int msgflg); +asmlinkage long sys_old_msgctl(int msqid, int cmd, struct msqid_ds __user *buf);  asmlinkage long sys_msgctl(int msqid, int cmd, struct msqid_ds __user *buf);  asmlinkage long sys_msgrcv(int msqid, struct msgbuf __user *msgp,  				size_t msgsz, long msgtyp, int msgflg); @@ -726,14 +770,19 @@ asmlinkage long sys_msgsnd(int msqid, struct msgbuf __user *msgp,  /* ipc/sem.c */  asmlinkage long sys_semget(key_t key, int nsems, int semflg);  asmlinkage long sys_semctl(int semid, int semnum, int cmd, unsigned long arg); +asmlinkage long sys_old_semctl(int semid, int semnum, int cmd, unsigned long arg);  asmlinkage long sys_semtimedop(int semid, struct sembuf __user *sops,  				unsigned nsops,  				const struct __kernel_timespec __user *timeout); +asmlinkage long sys_semtimedop_time32(int semid, struct sembuf __user *sops, +				unsigned nsops, +				const struct old_timespec32 __user *timeout);  asmlinkage long sys_semop(int semid, struct sembuf __user *sops,  				unsigned nsops);  /* ipc/shm.c */  asmlinkage long sys_shmget(key_t key, size_t size, int flag); +asmlinkage long sys_old_shmctl(int shmid, int cmd, struct shmid_ds __user *buf);  asmlinkage long sys_shmctl(int shmid, int cmd, struct shmid_ds __user *buf);  asmlinkage long sys_shmat(int shmid, char __user *shmaddr, int shmflg);  asmlinkage long sys_shmdt(char __user *shmaddr); @@ -867,7 +916,9 @@ asmlinkage long sys_open_by_handle_at(int mountdirfd,  				      struct file_handle __user *handle,  				      int flags);  asmlinkage long sys_clock_adjtime(clockid_t which_clock, -				struct timex __user *tx); +				struct __kernel_timex __user *tx); +asmlinkage long sys_clock_adjtime32(clockid_t which_clock, +				struct old_timex32 __user *tx);  asmlinkage long sys_syncfs(int fd);  asmlinkage long sys_setns(int fd, int nstype);  asmlinkage long sys_sendmmsg(int fd, struct mmsghdr __user *msg, @@ -1003,6 +1054,7 @@ asmlinkage long sys_alarm(unsigned int seconds);  asmlinkage long sys_getpgrp(void);  asmlinkage long sys_pause(void);  asmlinkage long sys_time(time_t __user *tloc); +asmlinkage long sys_time32(old_time32_t __user *tloc);  #ifdef __ARCH_WANT_SYS_UTIME  asmlinkage long sys_utime(char __user *filename,  				struct utimbuf __user *times); @@ -1011,6 +1063,13 @@ asmlinkage long sys_utimes(char __user *filename,  asmlinkage long sys_futimesat(int dfd, const char __user *filename,  			      struct timeval __user *utimes);  #endif +asmlinkage long sys_futimesat_time32(unsigned int dfd, +				     const char __user *filename, +				     struct old_timeval32 __user *t); +asmlinkage long sys_utime32(const char __user *filename, +				 struct old_utimbuf32 __user *t); +asmlinkage long sys_utimes_time32(const char __user *filename, +				  struct old_timeval32 __user *t);  asmlinkage long sys_creat(const char __user *pathname, umode_t mode);  asmlinkage long sys_getdents(unsigned int fd,  				struct linux_dirent __user *dirent, @@ -1035,6 +1094,7 @@ asmlinkage long sys_fork(void);  /* obsolete: kernel/time/time.c */  asmlinkage long sys_stime(time_t __user *tptr); +asmlinkage long sys_stime32(old_time32_t __user *tptr);  /* obsolete: kernel/signal.c */  asmlinkage long sys_sigpending(old_sigset_t __user *uset); @@ -1185,6 +1245,10 @@ unsigned long ksys_mmap_pgoff(unsigned long addr, unsigned long len,  			      unsigned long prot, unsigned long flags,  			      unsigned long fd, unsigned long pgoff);  ssize_t ksys_readahead(int fd, loff_t offset, size_t count); +int ksys_ipc(unsigned int call, int first, unsigned long second, +	unsigned long third, void __user * ptr, long fifth); +int compat_ksys_ipc(u32 call, int first, int second, +	u32 third, u32 ptr, u32 fifth);  /*   * The following kernel syscall equivalents are just wrappers to fs-internal  |