syscalls.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. * syscalls.h - Linux syscall interfaces (arch-specific)
  3. *
  4. * Copyright (c) 2008 Jaswinder Singh
  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/types.h>
  14. #include <linux/signal.h>
  15. /* Common in X86_32 and X86_64 */
  16. /* kernel/ioport.c */
  17. asmlinkage long sys_ioperm(unsigned long, unsigned long, int);
  18. /* kernel/ldt.c */
  19. asmlinkage int sys_modify_ldt(int, void __user *, unsigned long);
  20. /* kernel/tls.c */
  21. asmlinkage int sys_set_thread_area(struct user_desc __user *);
  22. asmlinkage int sys_get_thread_area(struct user_desc __user *);
  23. /* X86_32 only */
  24. #ifdef CONFIG_X86_32
  25. /* kernel/process_32.c */
  26. int sys_fork(struct pt_regs *);
  27. int sys_clone(struct pt_regs *);
  28. int sys_vfork(struct pt_regs *);
  29. int sys_execve(struct pt_regs *);
  30. /* kernel/signal_32.c */
  31. asmlinkage int sys_sigsuspend(int, int, old_sigset_t);
  32. asmlinkage int sys_sigaction(int, const struct old_sigaction __user *,
  33. struct old_sigaction __user *);
  34. int sys_sigaltstack(struct pt_regs *);
  35. unsigned long sys_sigreturn(struct pt_regs *);
  36. long sys_rt_sigreturn(struct pt_regs *);
  37. /* kernel/ioport.c */
  38. long sys_iopl(struct pt_regs *);
  39. /* kernel/sys_i386_32.c */
  40. asmlinkage long sys_mmap2(unsigned long, unsigned long, unsigned long,
  41. unsigned long, unsigned long, unsigned long);
  42. struct mmap_arg_struct;
  43. asmlinkage int old_mmap(struct mmap_arg_struct __user *);
  44. struct sel_arg_struct;
  45. asmlinkage int old_select(struct sel_arg_struct __user *);
  46. asmlinkage int sys_ipc(uint, int, int, int, void __user *, long);
  47. struct old_utsname;
  48. asmlinkage int sys_uname(struct old_utsname __user *);
  49. struct oldold_utsname;
  50. asmlinkage int sys_olduname(struct oldold_utsname __user *);
  51. /* kernel/vm86_32.c */
  52. int sys_vm86old(struct pt_regs *);
  53. int sys_vm86(struct pt_regs *);
  54. #else /* CONFIG_X86_32 */
  55. /* X86_64 only */
  56. /* kernel/process_64.c */
  57. asmlinkage long sys_fork(struct pt_regs *);
  58. asmlinkage long sys_clone(unsigned long, unsigned long,
  59. void __user *, void __user *,
  60. struct pt_regs *);
  61. asmlinkage long sys_vfork(struct pt_regs *);
  62. asmlinkage long sys_execve(char __user *, char __user * __user *,
  63. char __user * __user *,
  64. struct pt_regs *);
  65. long sys_arch_prctl(int, unsigned long);
  66. /* kernel/ioport.c */
  67. asmlinkage long sys_iopl(unsigned int, struct pt_regs *);
  68. /* kernel/signal_64.c */
  69. asmlinkage long sys_sigaltstack(const stack_t __user *, stack_t __user *,
  70. struct pt_regs *);
  71. long sys_rt_sigreturn(struct pt_regs *);
  72. /* kernel/sys_x86_64.c */
  73. asmlinkage long sys_mmap(unsigned long, unsigned long, unsigned long,
  74. unsigned long, unsigned long, unsigned long);
  75. struct new_utsname;
  76. asmlinkage long sys_uname(struct new_utsname __user *);
  77. #endif /* CONFIG_X86_32 */
  78. #endif /* _ASM_X86_SYSCALLS_H */