syscalls.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. /* X86_32 only */
  19. #ifdef CONFIG_X86_32
  20. /* kernel/process_32.c */
  21. asmlinkage int sys_fork(struct pt_regs);
  22. asmlinkage int sys_clone(struct pt_regs);
  23. asmlinkage int sys_vfork(struct pt_regs);
  24. asmlinkage int sys_execve(struct pt_regs);
  25. /* kernel/signal_32.c */
  26. asmlinkage int sys_sigsuspend(int, int, old_sigset_t);
  27. asmlinkage int sys_sigaction(int, const struct old_sigaction __user *,
  28. struct old_sigaction __user *);
  29. asmlinkage int sys_sigaltstack(unsigned long);
  30. asmlinkage unsigned long sys_sigreturn(unsigned long);
  31. asmlinkage int sys_rt_sigreturn(unsigned long);
  32. /* kernel/ioport.c */
  33. asmlinkage long sys_iopl(unsigned long);
  34. /* kernel/ldt.c */
  35. asmlinkage int sys_modify_ldt(int, void __user *, unsigned long);
  36. /* kernel/sys_i386_32.c */
  37. asmlinkage long sys_mmap2(unsigned long, unsigned long, unsigned long,
  38. unsigned long, unsigned long, unsigned long);
  39. struct mmap_arg_struct;
  40. asmlinkage int old_mmap(struct mmap_arg_struct __user *);
  41. struct sel_arg_struct;
  42. asmlinkage int old_select(struct sel_arg_struct __user *);
  43. asmlinkage int sys_ipc(uint, int, int, int, void __user *, long);
  44. struct old_utsname;
  45. asmlinkage int sys_uname(struct old_utsname __user *);
  46. struct oldold_utsname;
  47. asmlinkage int sys_olduname(struct oldold_utsname __user *);
  48. /* kernel/tls.c */
  49. asmlinkage int sys_set_thread_area(struct user_desc __user *);
  50. asmlinkage int sys_get_thread_area(struct user_desc __user *);
  51. /* kernel/vm86_32.c */
  52. asmlinkage int sys_vm86old(struct pt_regs);
  53. asmlinkage 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. /* kernel/ioport.c */
  66. asmlinkage long sys_iopl(unsigned int, struct pt_regs *);
  67. /* kernel/signal_64.c */
  68. asmlinkage long sys_sigaltstack(const stack_t __user *, stack_t __user *,
  69. struct pt_regs *);
  70. asmlinkage long sys_rt_sigreturn(struct pt_regs *);
  71. /* kernel/sys_x86_64.c */
  72. asmlinkage long sys_mmap(unsigned long, unsigned long, unsigned long,
  73. unsigned long, unsigned long, unsigned long);
  74. struct new_utsname;
  75. asmlinkage long sys_uname(struct new_utsname __user *);
  76. #endif /* CONFIG_X86_32 */
  77. #endif /* _ASM_X86_SYSCALLS_H */