Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 1 | /* |
| 2 | * sys_ia32.h - Linux ia32 syscall interfaces |
| 3 | * |
| 4 | * Copyright (c) 2008 Jaswinder Singh Rajput |
| 5 | * |
| 6 | * This file is released under the GPLv2. |
| 7 | * See the file COPYING for more details. |
| 8 | */ |
| 9 | |
| 10 | #ifndef _ASM_X86_SYS_IA32_H |
| 11 | #define _ASM_X86_SYS_IA32_H |
| 12 | |
| 13 | #include <linux/compiler.h> |
| 14 | #include <linux/linkage.h> |
| 15 | #include <linux/types.h> |
| 16 | #include <linux/signal.h> |
| 17 | #include <asm/compat.h> |
| 18 | #include <asm/ia32.h> |
| 19 | |
| 20 | /* ia32/sys_ia32.c */ |
| 21 | asmlinkage long sys32_truncate64(char __user *, unsigned long, unsigned long); |
| 22 | asmlinkage long sys32_ftruncate64(unsigned int, unsigned long, unsigned long); |
| 23 | |
| 24 | asmlinkage long sys32_stat64(char __user *, struct stat64 __user *); |
| 25 | asmlinkage long sys32_lstat64(char __user *, struct stat64 __user *); |
| 26 | asmlinkage long sys32_fstat64(unsigned int, struct stat64 __user *); |
| 27 | asmlinkage long sys32_fstatat(unsigned int, char __user *, |
| 28 | struct stat64 __user *, int); |
| 29 | struct mmap_arg_struct; |
| 30 | asmlinkage long sys32_mmap(struct mmap_arg_struct __user *); |
| 31 | asmlinkage long sys32_mprotect(unsigned long, size_t, unsigned long); |
| 32 | |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 33 | struct sigaction32; |
| 34 | struct old_sigaction32; |
| 35 | asmlinkage long sys32_rt_sigaction(int, struct sigaction32 __user *, |
| 36 | struct sigaction32 __user *, unsigned int); |
| 37 | asmlinkage long sys32_sigaction(int, struct old_sigaction32 __user *, |
| 38 | struct old_sigaction32 __user *); |
| 39 | asmlinkage long sys32_rt_sigprocmask(int, compat_sigset_t __user *, |
| 40 | compat_sigset_t __user *, unsigned int); |
| 41 | asmlinkage long sys32_alarm(unsigned int); |
| 42 | |
| 43 | struct sel_arg_struct; |
| 44 | asmlinkage long sys32_old_select(struct sel_arg_struct __user *); |
| 45 | asmlinkage long sys32_waitpid(compat_pid_t, unsigned int *, int); |
| 46 | asmlinkage long sys32_sysfs(int, u32, u32); |
| 47 | |
| 48 | asmlinkage long sys32_sched_rr_get_interval(compat_pid_t, |
| 49 | struct compat_timespec __user *); |
| 50 | asmlinkage long sys32_rt_sigpending(compat_sigset_t __user *, compat_size_t); |
| 51 | asmlinkage long sys32_rt_sigqueueinfo(int, int, compat_siginfo_t __user *); |
| 52 | |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 53 | asmlinkage long sys32_pread(unsigned int, char __user *, u32, u32, u32); |
| 54 | asmlinkage long sys32_pwrite(unsigned int, char __user *, u32, u32, u32); |
| 55 | |
| 56 | asmlinkage long sys32_personality(unsigned long); |
| 57 | asmlinkage long sys32_sendfile(int, int, compat_off_t __user *, s32); |
| 58 | |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 59 | struct oldold_utsname; |
| 60 | struct old_utsname; |
| 61 | asmlinkage long sys32_olduname(struct oldold_utsname __user *); |
| 62 | long sys32_uname(struct old_utsname __user *); |
| 63 | |
Jaswinder Singh Rajput | 2f06de0 | 2008-12-27 21:37:10 +0530 | [diff] [blame] | 64 | asmlinkage long sys32_execve(char __user *, compat_uptr_t __user *, |
| 65 | compat_uptr_t __user *, struct pt_regs *); |
| 66 | asmlinkage long sys32_clone(unsigned int, unsigned int, struct pt_regs *); |
| 67 | |
| 68 | long sys32_lseek(unsigned int, int, unsigned int); |
| 69 | long sys32_kill(int, int); |
| 70 | long sys32_fadvise64_64(int, __u32, __u32, __u32, __u32, int); |
| 71 | long sys32_vm86_warning(void); |
| 72 | long sys32_lookup_dcookie(u32, u32, char __user *, size_t); |
| 73 | |
| 74 | asmlinkage ssize_t sys32_readahead(int, unsigned, unsigned, size_t); |
| 75 | asmlinkage long sys32_sync_file_range(int, unsigned, unsigned, |
| 76 | unsigned, unsigned, int); |
| 77 | asmlinkage long sys32_fadvise64(int, unsigned, unsigned, size_t, int); |
| 78 | asmlinkage long sys32_fallocate(int, int, unsigned, |
| 79 | unsigned, unsigned, unsigned); |
| 80 | |
| 81 | /* ia32/ia32_signal.c */ |
| 82 | asmlinkage long sys32_sigsuspend(int, int, old_sigset_t); |
| 83 | asmlinkage long sys32_sigaltstack(const stack_ia32_t __user *, |
| 84 | stack_ia32_t __user *, struct pt_regs *); |
| 85 | asmlinkage long sys32_sigreturn(struct pt_regs *); |
| 86 | asmlinkage long sys32_rt_sigreturn(struct pt_regs *); |
| 87 | |
| 88 | /* ia32/ipc32.c */ |
| 89 | asmlinkage long sys32_ipc(u32, int, int, int, compat_uptr_t, u32); |
| 90 | #endif /* _ASM_X86_SYS_IA32_H */ |