blob: 82c34ee25a651760c9950ce6c54625896fd9ea2f [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
H. Peter Anvina96d6922012-02-19 14:02:46 -080013#ifdef CONFIG_COMPAT
14
Jaswinder Singh Rajput2f06de02008-12-27 21:37:10 +053015#include <linux/compiler.h>
16#include <linux/linkage.h>
17#include <linux/types.h>
18#include <linux/signal.h>
19#include <asm/compat.h>
20#include <asm/ia32.h>
21
22/* ia32/sys_ia32.c */
David Howellsc7887322010-08-11 11:26:22 +010023asmlinkage long sys32_truncate64(const char __user *, unsigned long, unsigned long);
Jaswinder Singh Rajput2f06de02008-12-27 21:37:10 +053024asmlinkage long sys32_ftruncate64(unsigned int, unsigned long, unsigned long);
25
David Howellsc7887322010-08-11 11:26:22 +010026asmlinkage long sys32_stat64(const char __user *, struct stat64 __user *);
27asmlinkage long sys32_lstat64(const char __user *, struct stat64 __user *);
Jaswinder Singh Rajput2f06de02008-12-27 21:37:10 +053028asmlinkage long sys32_fstat64(unsigned int, struct stat64 __user *);
David Howellsc7887322010-08-11 11:26:22 +010029asmlinkage long sys32_fstatat(unsigned int, const char __user *,
Jaswinder Singh Rajput2f06de02008-12-27 21:37:10 +053030 struct stat64 __user *, int);
Christoph Hellwiga4679372010-03-10 15:21:15 -080031struct mmap_arg_struct32;
32asmlinkage long sys32_mmap(struct mmap_arg_struct32 __user *);
Jaswinder Singh Rajput2f06de02008-12-27 21:37:10 +053033
Mathias Krausef0002622012-09-02 23:31:40 +020034asmlinkage long sys32_waitpid(compat_pid_t, unsigned int __user *, int);
Jaswinder Singh Rajput2f06de02008-12-27 21:37:10 +053035
Jaswinder Singh Rajput2f06de02008-12-27 21:37:10 +053036asmlinkage long sys32_pread(unsigned int, char __user *, u32, u32, u32);
David Howellsc7887322010-08-11 11:26:22 +010037asmlinkage long sys32_pwrite(unsigned int, const char __user *, u32, u32, u32);
Jaswinder Singh Rajput2f06de02008-12-27 21:37:10 +053038
Jaswinder Singh Rajput2f06de02008-12-27 21:37:10 +053039long sys32_fadvise64_64(int, __u32, __u32, __u32, __u32, int);
40long sys32_vm86_warning(void);
Jaswinder Singh Rajput2f06de02008-12-27 21:37:10 +053041
42asmlinkage ssize_t sys32_readahead(int, unsigned, unsigned, size_t);
43asmlinkage long sys32_sync_file_range(int, unsigned, unsigned,
44 unsigned, unsigned, int);
45asmlinkage long sys32_fadvise64(int, unsigned, unsigned, size_t, int);
46asmlinkage long sys32_fallocate(int, int, unsigned,
47 unsigned, unsigned, unsigned);
48
49/* ia32/ia32_signal.c */
Al Viro3fe26fa2012-11-12 14:32:42 -050050asmlinkage long sys32_sigreturn(void);
51asmlinkage long sys32_rt_sigreturn(void);
Jaswinder Singh Rajput2f06de02008-12-27 21:37:10 +053052
H. Peter Anvina96d6922012-02-19 14:02:46 -080053#endif /* CONFIG_COMPAT */
54
Jaswinder Singh Rajput2f06de02008-12-27 21:37:10 +053055#endif /* _ASM_X86_SYS_IA32_H */