syscalls.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * syscalls.h - Linux syscall interfaces (arch-specific)
  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. #ifndef _ASM_X86_SYSCALLS_H
  10. #define _ASM_X86_SYSCALLS_H
  11. #include <linux/compiler.h>
  12. #include <linux/linkage.h>
  13. #include <linux/signal.h>
  14. #include <linux/types.h>
  15. /* Common in X86_32 and X86_64 */
  16. /* kernel/ioport.c */
  17. asmlinkage long sys_ioperm(unsigned long, unsigned long, int);
  18. long sys_iopl(unsigned int, struct pt_regs *);
  19. /* kernel/process.c */
  20. int sys_fork(struct pt_regs *);
  21. int sys_vfork(struct pt_regs *);
  22. long sys_execve(char __user *, char __user * __user *,
  23. char __user * __user *, struct pt_regs *);
  24. long sys_clone(unsigned long, unsigned long, void __user *,
  25. void __user *, struct pt_regs *);
  26. /* kernel/ldt.c */
  27. asmlinkage int sys_modify_ldt(int, void __user *, unsigned long);
  28. /* kernel/signal.c */
  29. long sys_rt_sigreturn(struct pt_regs *);
  30. long sys_sigaltstack(const stack_t __user *, stack_t __user *,
  31. struct pt_regs *);
  32. /* kernel/tls.c */
  33. asmlinkage int sys_set_thread_area(struct user_desc __user *);
  34. asmlinkage int sys_get_thread_area(struct user_desc __user *);
  35. /* X86_32 only */
  36. #ifdef CONFIG_X86_32
  37. /* kernel/signal.c */
  38. asmlinkage int sys_sigsuspend(int, int, old_sigset_t);
  39. asmlinkage int sys_sigaction(int, const struct old_sigaction __user *,
  40. struct old_sigaction __user *);
  41. unsigned long sys_sigreturn(struct pt_regs *);
  42. /* kernel/vm86_32.c */
  43. int sys_vm86old(struct vm86_struct __user *, struct pt_regs *);
  44. int sys_vm86(unsigned long, unsigned long, struct pt_regs *);
  45. #else /* CONFIG_X86_32 */
  46. /* X86_64 only */
  47. /* kernel/process_64.c */
  48. long sys_arch_prctl(int, unsigned long);
  49. /* kernel/sys_x86_64.c */
  50. asmlinkage long sys_mmap(unsigned long, unsigned long, unsigned long,
  51. unsigned long, unsigned long, unsigned long);
  52. #endif /* CONFIG_X86_32 */
  53. #endif /* _ASM_X86_SYSCALLS_H */