syscalls.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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/sys_i386_32.c */
  43. struct oldold_utsname;
  44. struct old_utsname;
  45. asmlinkage int sys_uname(struct old_utsname __user *);
  46. asmlinkage int sys_olduname(struct oldold_utsname __user *);
  47. /* kernel/vm86_32.c */
  48. int sys_vm86old(struct vm86_struct __user *, struct pt_regs *);
  49. int sys_vm86(unsigned long, unsigned long, struct pt_regs *);
  50. #else /* CONFIG_X86_32 */
  51. /* X86_64 only */
  52. /* kernel/process_64.c */
  53. long sys_arch_prctl(int, unsigned long);
  54. /* kernel/sys_x86_64.c */
  55. struct new_utsname;
  56. asmlinkage long sys_mmap(unsigned long, unsigned long, unsigned long,
  57. unsigned long, unsigned long, unsigned long);
  58. asmlinkage long sys_uname(struct new_utsname __user *);
  59. #endif /* CONFIG_X86_32 */
  60. #endif /* _ASM_X86_SYSCALLS_H */