syscalls.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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/ldt.c */
  20. asmlinkage int sys_modify_ldt(int, void __user *, unsigned long);
  21. /* kernel/signal.c */
  22. long sys_rt_sigreturn(struct pt_regs *);
  23. long sys_sigaltstack(const stack_t __user *, stack_t __user *,
  24. struct pt_regs *);
  25. /* kernel/tls.c */
  26. asmlinkage int sys_set_thread_area(struct user_desc __user *);
  27. asmlinkage int sys_get_thread_area(struct user_desc __user *);
  28. /* X86_32 only */
  29. #ifdef CONFIG_X86_32
  30. /* kernel/signal.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. unsigned long sys_sigreturn(struct pt_regs *);
  35. /* kernel/vm86_32.c */
  36. int sys_vm86old(struct vm86_struct __user *, struct pt_regs *);
  37. int sys_vm86(unsigned long, unsigned long, struct pt_regs *);
  38. #else /* CONFIG_X86_32 */
  39. /* X86_64 only */
  40. /* kernel/process_64.c */
  41. long sys_arch_prctl(int, unsigned long);
  42. /* kernel/sys_x86_64.c */
  43. asmlinkage long sys_mmap(unsigned long, unsigned long, unsigned long,
  44. unsigned long, unsigned long, unsigned long);
  45. #endif /* CONFIG_X86_32 */
  46. #endif /* _ASM_X86_SYSCALLS_H */