syscalls.h 1.3 KB

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