2008-07-22 00:04:13 +08:00
|
|
|
/*
|
|
|
|
* syscalls.h - Linux syscall interfaces (arch-specific)
|
|
|
|
*
|
2009-04-11 02:33:10 +08:00
|
|
|
* Copyright (c) 2008 Jaswinder Singh Rajput
|
2008-07-22 00:04:13 +08:00
|
|
|
*
|
|
|
|
* This file is released under the GPLv2.
|
|
|
|
* See the file COPYING for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ASM_X86_SYSCALLS_H
|
|
|
|
#define _ASM_X86_SYSCALLS_H
|
|
|
|
|
|
|
|
#include <linux/compiler.h>
|
|
|
|
#include <linux/linkage.h>
|
|
|
|
#include <linux/signal.h>
|
2009-04-11 02:33:10 +08:00
|
|
|
#include <linux/types.h>
|
2008-07-22 00:04:13 +08:00
|
|
|
|
|
|
|
/* Common in X86_32 and X86_64 */
|
|
|
|
/* kernel/ioport.c */
|
|
|
|
asmlinkage long sys_ioperm(unsigned long, unsigned long, int);
|
2009-12-10 08:01:52 +08:00
|
|
|
long sys_iopl(unsigned int, struct pt_regs *);
|
2008-07-22 00:04:13 +08:00
|
|
|
|
2009-04-11 02:33:10 +08:00
|
|
|
/* kernel/process.c */
|
|
|
|
int sys_fork(struct pt_regs *);
|
|
|
|
int sys_vfork(struct pt_regs *);
|
2009-12-10 08:01:53 +08:00
|
|
|
long sys_execve(char __user *, char __user * __user *,
|
|
|
|
char __user * __user *, struct pt_regs *);
|
2009-12-10 08:01:56 +08:00
|
|
|
long sys_clone(unsigned long, unsigned long, void __user *,
|
|
|
|
void __user *, struct pt_regs *);
|
2009-04-11 02:33:10 +08:00
|
|
|
|
2008-12-16 00:56:30 +08:00
|
|
|
/* kernel/ldt.c */
|
|
|
|
asmlinkage int sys_modify_ldt(int, void __user *, unsigned long);
|
|
|
|
|
2009-04-11 02:33:10 +08:00
|
|
|
/* kernel/signal.c */
|
|
|
|
long sys_rt_sigreturn(struct pt_regs *);
|
2009-12-10 08:01:54 +08:00
|
|
|
long sys_sigaltstack(const stack_t __user *, stack_t __user *,
|
|
|
|
struct pt_regs *);
|
|
|
|
|
2009-04-11 02:33:10 +08:00
|
|
|
|
2008-12-18 01:48:52 +08:00
|
|
|
/* kernel/tls.c */
|
|
|
|
asmlinkage int sys_set_thread_area(struct user_desc __user *);
|
|
|
|
asmlinkage int sys_get_thread_area(struct user_desc __user *);
|
|
|
|
|
2008-07-22 00:04:13 +08:00
|
|
|
/* X86_32 only */
|
|
|
|
#ifdef CONFIG_X86_32
|
|
|
|
|
2009-04-11 02:33:10 +08:00
|
|
|
/* kernel/signal.c */
|
2008-07-22 00:04:13 +08:00
|
|
|
asmlinkage int sys_sigsuspend(int, int, old_sigset_t);
|
|
|
|
asmlinkage int sys_sigaction(int, const struct old_sigaction __user *,
|
|
|
|
struct old_sigaction __user *);
|
2009-02-12 05:43:58 +08:00
|
|
|
unsigned long sys_sigreturn(struct pt_regs *);
|
2008-07-22 00:04:13 +08:00
|
|
|
|
2008-07-23 20:01:02 +08:00
|
|
|
/* kernel/vm86_32.c */
|
2009-12-10 08:01:55 +08:00
|
|
|
int sys_vm86old(struct vm86_struct __user *, struct pt_regs *);
|
|
|
|
int sys_vm86(unsigned long, unsigned long, struct pt_regs *);
|
2008-07-23 20:01:02 +08:00
|
|
|
|
2008-07-22 00:04:13 +08:00
|
|
|
#else /* CONFIG_X86_32 */
|
|
|
|
|
|
|
|
/* X86_64 only */
|
|
|
|
/* kernel/process_64.c */
|
2009-02-03 00:18:33 +08:00
|
|
|
long sys_arch_prctl(int, unsigned long);
|
2008-07-22 00:04:13 +08:00
|
|
|
|
|
|
|
/* kernel/sys_x86_64.c */
|
|
|
|
asmlinkage long sys_mmap(unsigned long, unsigned long, unsigned long,
|
|
|
|
unsigned long, unsigned long, unsigned long);
|
|
|
|
|
|
|
|
#endif /* CONFIG_X86_32 */
|
|
|
|
#endif /* _ASM_X86_SYSCALLS_H */
|