blob: 72a6dcd1299b6154562f5717c9ef751a9e287dc2 [file] [log] [blame]
Jaswinder Singh Rajput2f06de02008-12-27 21:37:10 +05301/*
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 */
21asmlinkage long sys32_truncate64(char __user *, unsigned long, unsigned long);
22asmlinkage long sys32_ftruncate64(unsigned int, unsigned long, unsigned long);
23
24asmlinkage long sys32_stat64(char __user *, struct stat64 __user *);
25asmlinkage long sys32_lstat64(char __user *, struct stat64 __user *);
26asmlinkage long sys32_fstat64(unsigned int, struct stat64 __user *);
27asmlinkage long sys32_fstatat(unsigned int, char __user *,
28 struct stat64 __user *, int);
29struct mmap_arg_struct;
30asmlinkage long sys32_mmap(struct mmap_arg_struct __user *);
31asmlinkage long sys32_mprotect(unsigned long, size_t, unsigned long);
32
33asmlinkage long sys32_pipe(int __user *);
34struct sigaction32;
35struct old_sigaction32;
36asmlinkage long sys32_rt_sigaction(int, struct sigaction32 __user *,
37 struct sigaction32 __user *, unsigned int);
38asmlinkage long sys32_sigaction(int, struct old_sigaction32 __user *,
39 struct old_sigaction32 __user *);
40asmlinkage long sys32_rt_sigprocmask(int, compat_sigset_t __user *,
41 compat_sigset_t __user *, unsigned int);
42asmlinkage long sys32_alarm(unsigned int);
43
44struct sel_arg_struct;
45asmlinkage long sys32_old_select(struct sel_arg_struct __user *);
46asmlinkage long sys32_waitpid(compat_pid_t, unsigned int *, int);
47asmlinkage long sys32_sysfs(int, u32, u32);
48
49asmlinkage long sys32_sched_rr_get_interval(compat_pid_t,
50 struct compat_timespec __user *);
51asmlinkage long sys32_rt_sigpending(compat_sigset_t __user *, compat_size_t);
52asmlinkage long sys32_rt_sigqueueinfo(int, int, compat_siginfo_t __user *);
53
54#ifdef CONFIG_SYSCTL_SYSCALL
55struct sysctl_ia32;
56asmlinkage long sys32_sysctl(struct sysctl_ia32 __user *);
57#endif
58
59asmlinkage long sys32_pread(unsigned int, char __user *, u32, u32, u32);
60asmlinkage long sys32_pwrite(unsigned int, char __user *, u32, u32, u32);
61
62asmlinkage long sys32_personality(unsigned long);
63asmlinkage long sys32_sendfile(int, int, compat_off_t __user *, s32);
64
65asmlinkage long sys32_mmap2(unsigned long, unsigned long, unsigned long,
66 unsigned long, unsigned long, unsigned long);
67
68struct oldold_utsname;
69struct old_utsname;
70asmlinkage long sys32_olduname(struct oldold_utsname __user *);
71long sys32_uname(struct old_utsname __user *);
72
Jaswinder Singh Rajput2f06de02008-12-27 21:37:10 +053073asmlinkage long sys32_execve(char __user *, compat_uptr_t __user *,
74 compat_uptr_t __user *, struct pt_regs *);
75asmlinkage long sys32_clone(unsigned int, unsigned int, struct pt_regs *);
76
77long sys32_lseek(unsigned int, int, unsigned int);
78long sys32_kill(int, int);
79long sys32_fadvise64_64(int, __u32, __u32, __u32, __u32, int);
80long sys32_vm86_warning(void);
81long sys32_lookup_dcookie(u32, u32, char __user *, size_t);
82
83asmlinkage ssize_t sys32_readahead(int, unsigned, unsigned, size_t);
84asmlinkage long sys32_sync_file_range(int, unsigned, unsigned,
85 unsigned, unsigned, int);
86asmlinkage long sys32_fadvise64(int, unsigned, unsigned, size_t, int);
87asmlinkage long sys32_fallocate(int, int, unsigned,
88 unsigned, unsigned, unsigned);
89
90/* ia32/ia32_signal.c */
91asmlinkage long sys32_sigsuspend(int, int, old_sigset_t);
92asmlinkage long sys32_sigaltstack(const stack_ia32_t __user *,
93 stack_ia32_t __user *, struct pt_regs *);
94asmlinkage long sys32_sigreturn(struct pt_regs *);
95asmlinkage long sys32_rt_sigreturn(struct pt_regs *);
96
97/* ia32/ipc32.c */
98asmlinkage long sys32_ipc(u32, int, int, int, compat_uptr_t, u32);
99#endif /* _ASM_X86_SYS_IA32_H */