syscalls.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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(const char __user *,
  23. const char __user *const __user *,
  24. const char __user *const __user *, struct pt_regs *);
  25. long sys_clone(unsigned long, unsigned long, void __user *,
  26. void __user *, struct pt_regs *);
  27. /* kernel/ldt.c */
  28. asmlinkage int sys_modify_ldt(int, void __user *, unsigned long);
  29. /* kernel/signal.c */
  30. long sys_rt_sigreturn(struct pt_regs *);
  31. long sys_sigaltstack(const stack_t __user *, stack_t __user *,
  32. struct pt_regs *);
  33. /* kernel/tls.c */
  34. asmlinkage int sys_set_thread_area(struct user_desc __user *);
  35. asmlinkage int sys_get_thread_area(struct user_desc __user *);
  36. /* X86_32 only */
  37. #ifdef CONFIG_X86_32
  38. /* kernel/signal.c */
  39. asmlinkage int sys_sigsuspend(int, int, old_sigset_t);
  40. asmlinkage int sys_sigaction(int, const struct old_sigaction __user *,
  41. struct old_sigaction __user *);
  42. unsigned long sys_sigreturn(struct pt_regs *);
  43. /* kernel/vm86_32.c */
  44. int sys_vm86old(struct vm86_struct __user *, struct pt_regs *);
  45. int sys_vm86(unsigned long, unsigned long, struct pt_regs *);
  46. #else /* CONFIG_X86_32 */
  47. /* X86_64 only */
  48. /* kernel/process_64.c */
  49. long sys_arch_prctl(int, unsigned long);
  50. /* kernel/sys_x86_64.c */
  51. asmlinkage long sys_mmap(unsigned long, unsigned long, unsigned long,
  52. unsigned long, unsigned long, unsigned long);
  53. #endif /* CONFIG_X86_32 */
  54. #endif /* _ASM_X86_SYSCALLS_H */