syscalls.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. /* kernel/ldt.c */
  25. asmlinkage int sys_modify_ldt(int, void __user *, unsigned long);
  26. /* kernel/signal.c */
  27. long sys_rt_sigreturn(struct pt_regs *);
  28. long sys_sigaltstack(const stack_t __user *, stack_t __user *,
  29. struct pt_regs *);
  30. /* kernel/tls.c */
  31. asmlinkage int sys_set_thread_area(struct user_desc __user *);
  32. asmlinkage int sys_get_thread_area(struct user_desc __user *);
  33. /* X86_32 only */
  34. #ifdef CONFIG_X86_32
  35. /* kernel/process_32.c */
  36. int sys_clone(struct pt_regs *);
  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/sys_i386_32.c */
  43. struct mmap_arg_struct;
  44. struct sel_arg_struct;
  45. struct oldold_utsname;
  46. struct old_utsname;
  47. asmlinkage long sys_mmap2(unsigned long, unsigned long, unsigned long,
  48. unsigned long, unsigned long, unsigned long);
  49. asmlinkage int old_mmap(struct mmap_arg_struct __user *);
  50. asmlinkage int old_select(struct sel_arg_struct __user *);
  51. asmlinkage int sys_ipc(uint, int, int, int, void __user *, long);
  52. asmlinkage int sys_uname(struct old_utsname __user *);
  53. asmlinkage int sys_olduname(struct oldold_utsname __user *);
  54. /* kernel/vm86_32.c */
  55. int sys_vm86old(struct pt_regs *);
  56. int sys_vm86(struct pt_regs *);
  57. #else /* CONFIG_X86_32 */
  58. /* X86_64 only */
  59. /* kernel/process_64.c */
  60. asmlinkage long sys_clone(unsigned long, unsigned long,
  61. void __user *, void __user *,
  62. struct pt_regs *);
  63. long sys_arch_prctl(int, unsigned long);
  64. /* kernel/sys_x86_64.c */
  65. struct new_utsname;
  66. asmlinkage long sys_mmap(unsigned long, unsigned long, unsigned long,
  67. unsigned long, unsigned long, unsigned long);
  68. asmlinkage long sys_uname(struct new_utsname __user *);
  69. #endif /* CONFIG_X86_32 */
  70. #endif /* _ASM_X86_SYSCALLS_H */