diff options
Diffstat (limited to 'include/linux/compat.h')
| -rw-r--r-- | include/linux/compat.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/compat.h b/include/linux/compat.h index 3fd2194ff573..f2ded21f9a3c 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h | |||
| @@ -125,6 +125,13 @@ struct compat_dirent { | |||
| 125 | char d_name[256]; | 125 | char d_name[256]; |
| 126 | }; | 126 | }; |
| 127 | 127 | ||
| 128 | struct compat_ustat { | ||
| 129 | compat_daddr_t f_tfree; | ||
| 130 | compat_ino_t f_tinode; | ||
| 131 | char f_fname[6]; | ||
| 132 | char f_fpack[6]; | ||
| 133 | }; | ||
| 134 | |||
| 128 | typedef union compat_sigval { | 135 | typedef union compat_sigval { |
| 129 | compat_int_t sival_int; | 136 | compat_int_t sival_int; |
| 130 | compat_uptr_t sival_ptr; | 137 | compat_uptr_t sival_ptr; |
| @@ -178,11 +185,18 @@ long compat_sys_semtimedop(int semid, struct sembuf __user *tsems, | |||
| 178 | unsigned nsems, const struct compat_timespec __user *timeout); | 185 | unsigned nsems, const struct compat_timespec __user *timeout); |
| 179 | asmlinkage long compat_sys_keyctl(u32 option, | 186 | asmlinkage long compat_sys_keyctl(u32 option, |
| 180 | u32 arg2, u32 arg3, u32 arg4, u32 arg5); | 187 | u32 arg2, u32 arg3, u32 arg4, u32 arg5); |
| 188 | asmlinkage long compat_sys_ustat(unsigned dev, struct compat_ustat __user *u32); | ||
| 181 | 189 | ||
| 182 | asmlinkage ssize_t compat_sys_readv(unsigned long fd, | 190 | asmlinkage ssize_t compat_sys_readv(unsigned long fd, |
| 183 | const struct compat_iovec __user *vec, unsigned long vlen); | 191 | const struct compat_iovec __user *vec, unsigned long vlen); |
| 184 | asmlinkage ssize_t compat_sys_writev(unsigned long fd, | 192 | asmlinkage ssize_t compat_sys_writev(unsigned long fd, |
| 185 | const struct compat_iovec __user *vec, unsigned long vlen); | 193 | const struct compat_iovec __user *vec, unsigned long vlen); |
| 194 | asmlinkage ssize_t compat_sys_preadv(unsigned long fd, | ||
| 195 | const struct compat_iovec __user *vec, | ||
| 196 | unsigned long vlen, u32 pos_low, u32 pos_high); | ||
| 197 | asmlinkage ssize_t compat_sys_pwritev(unsigned long fd, | ||
| 198 | const struct compat_iovec __user *vec, | ||
| 199 | unsigned long vlen, u32 pos_low, u32 pos_high); | ||
| 186 | 200 | ||
| 187 | int compat_do_execve(char * filename, compat_uptr_t __user *argv, | 201 | int compat_do_execve(char * filename, compat_uptr_t __user *argv, |
| 188 | compat_uptr_t __user *envp, struct pt_regs * regs); | 202 | compat_uptr_t __user *envp, struct pt_regs * regs); |
