1633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham/* 2633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham * This file is subject to the terms and conditions of the GNU General Public 3633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham * License. See the file "COPYING" in the main directory of this archive 4633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham * for more details. 5633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham * 6633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham * Copyright (C) 1995, 96, 97, 98, 99, 2000 by Ralf Baechle 7633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham * Copyright (C) 1999, 2000 Silicon Graphics, Inc. 8633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham * 9633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham * Changed system calls macros _syscall5 - _syscall7 to push args 5 to 7 onto 10633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham * the stack. Robin Farine for ACN S.A, Copyright (C) 1996 by ACN S.A 11633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham */ 12633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#ifndef _ASM_UNISTD_H 13633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define _ASM_UNISTD_H 14633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham 15633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#include <asm/sgidefs.h> 16633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham 17633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#if _MIPS_SIM == _MIPS_SIM_ABI32 18633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham 19633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham/* 20633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham * Linux o32 style syscalls are in the range from 4000 to 4999. 21633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham */ 22633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_Linux 4000 23633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_syscall (__NR_Linux + 0) 24633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_exit (__NR_Linux + 1) 25633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fork (__NR_Linux + 2) 26633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_read (__NR_Linux + 3) 27633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_write (__NR_Linux + 4) 28633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_open (__NR_Linux + 5) 29633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_close (__NR_Linux + 6) 30633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_waitpid (__NR_Linux + 7) 31633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_creat (__NR_Linux + 8) 32633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_link (__NR_Linux + 9) 33633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_unlink (__NR_Linux + 10) 34633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_execve (__NR_Linux + 11) 35633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_chdir (__NR_Linux + 12) 36633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_time (__NR_Linux + 13) 37633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mknod (__NR_Linux + 14) 38633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_chmod (__NR_Linux + 15) 39633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_lchown (__NR_Linux + 16) 40633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_break (__NR_Linux + 17) 41633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_unused18 (__NR_Linux + 18) 42633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_lseek (__NR_Linux + 19) 43633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getpid (__NR_Linux + 20) 44633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mount (__NR_Linux + 21) 45633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_umount (__NR_Linux + 22) 46633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setuid (__NR_Linux + 23) 47633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getuid (__NR_Linux + 24) 48633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_stime (__NR_Linux + 25) 49633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ptrace (__NR_Linux + 26) 50633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_alarm (__NR_Linux + 27) 51633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_unused28 (__NR_Linux + 28) 52633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_pause (__NR_Linux + 29) 53633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_utime (__NR_Linux + 30) 54633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_stty (__NR_Linux + 31) 55633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_gtty (__NR_Linux + 32) 56633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_access (__NR_Linux + 33) 57633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_nice (__NR_Linux + 34) 58633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ftime (__NR_Linux + 35) 59633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sync (__NR_Linux + 36) 60633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_kill (__NR_Linux + 37) 61633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rename (__NR_Linux + 38) 62633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mkdir (__NR_Linux + 39) 63633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rmdir (__NR_Linux + 40) 64633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_dup (__NR_Linux + 41) 65633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_pipe (__NR_Linux + 42) 66633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_times (__NR_Linux + 43) 67633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_prof (__NR_Linux + 44) 68633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_brk (__NR_Linux + 45) 69633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setgid (__NR_Linux + 46) 70633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getgid (__NR_Linux + 47) 71633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_signal (__NR_Linux + 48) 72633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_geteuid (__NR_Linux + 49) 73633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getegid (__NR_Linux + 50) 74633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_acct (__NR_Linux + 51) 75633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_umount2 (__NR_Linux + 52) 76633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_lock (__NR_Linux + 53) 77633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ioctl (__NR_Linux + 54) 78633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fcntl (__NR_Linux + 55) 79633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mpx (__NR_Linux + 56) 80633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setpgid (__NR_Linux + 57) 81633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ulimit (__NR_Linux + 58) 82633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_unused59 (__NR_Linux + 59) 83633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_umask (__NR_Linux + 60) 84633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_chroot (__NR_Linux + 61) 85633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ustat (__NR_Linux + 62) 86633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_dup2 (__NR_Linux + 63) 87633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getppid (__NR_Linux + 64) 88633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getpgrp (__NR_Linux + 65) 89633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setsid (__NR_Linux + 66) 90633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sigaction (__NR_Linux + 67) 91633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sgetmask (__NR_Linux + 68) 92633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ssetmask (__NR_Linux + 69) 93633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setreuid (__NR_Linux + 70) 94633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setregid (__NR_Linux + 71) 95633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sigsuspend (__NR_Linux + 72) 96633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sigpending (__NR_Linux + 73) 97633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sethostname (__NR_Linux + 74) 98633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setrlimit (__NR_Linux + 75) 99633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getrlimit (__NR_Linux + 76) 100633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getrusage (__NR_Linux + 77) 101633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_gettimeofday (__NR_Linux + 78) 102633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_settimeofday (__NR_Linux + 79) 103633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getgroups (__NR_Linux + 80) 104633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setgroups (__NR_Linux + 81) 105633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_reserved82 (__NR_Linux + 82) 106633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_symlink (__NR_Linux + 83) 107633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_unused84 (__NR_Linux + 84) 108633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_readlink (__NR_Linux + 85) 109633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_uselib (__NR_Linux + 86) 110633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_swapon (__NR_Linux + 87) 111633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_reboot (__NR_Linux + 88) 112633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_readdir (__NR_Linux + 89) 113633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mmap (__NR_Linux + 90) 114633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_munmap (__NR_Linux + 91) 115633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_truncate (__NR_Linux + 92) 116633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ftruncate (__NR_Linux + 93) 117633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fchmod (__NR_Linux + 94) 118633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fchown (__NR_Linux + 95) 119633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getpriority (__NR_Linux + 96) 120633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setpriority (__NR_Linux + 97) 121633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_profil (__NR_Linux + 98) 122633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_statfs (__NR_Linux + 99) 123633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fstatfs (__NR_Linux + 100) 124633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ioperm (__NR_Linux + 101) 125633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_socketcall (__NR_Linux + 102) 126633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_syslog (__NR_Linux + 103) 127633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setitimer (__NR_Linux + 104) 128633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getitimer (__NR_Linux + 105) 129633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_stat (__NR_Linux + 106) 130633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_lstat (__NR_Linux + 107) 131633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fstat (__NR_Linux + 108) 132633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_unused109 (__NR_Linux + 109) 133633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_iopl (__NR_Linux + 110) 134633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_vhangup (__NR_Linux + 111) 135633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_idle (__NR_Linux + 112) 136633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_vm86 (__NR_Linux + 113) 137633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_wait4 (__NR_Linux + 114) 138633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_swapoff (__NR_Linux + 115) 139633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sysinfo (__NR_Linux + 116) 140633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ipc (__NR_Linux + 117) 141633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fsync (__NR_Linux + 118) 142633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sigreturn (__NR_Linux + 119) 143633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_clone (__NR_Linux + 120) 144633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setdomainname (__NR_Linux + 121) 145633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_uname (__NR_Linux + 122) 146633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_modify_ldt (__NR_Linux + 123) 147633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_adjtimex (__NR_Linux + 124) 148633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mprotect (__NR_Linux + 125) 149633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sigprocmask (__NR_Linux + 126) 150633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_create_module (__NR_Linux + 127) 151633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_init_module (__NR_Linux + 128) 152633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_delete_module (__NR_Linux + 129) 153633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_get_kernel_syms (__NR_Linux + 130) 154633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_quotactl (__NR_Linux + 131) 155633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getpgid (__NR_Linux + 132) 156633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fchdir (__NR_Linux + 133) 157633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_bdflush (__NR_Linux + 134) 158633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sysfs (__NR_Linux + 135) 159633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_personality (__NR_Linux + 136) 160633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_afs_syscall (__NR_Linux + 137) /* Syscall for Andrew File System */ 161633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setfsuid (__NR_Linux + 138) 162633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setfsgid (__NR_Linux + 139) 163633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR__llseek (__NR_Linux + 140) 164633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getdents (__NR_Linux + 141) 165633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR__newselect (__NR_Linux + 142) 166633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_flock (__NR_Linux + 143) 167633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_msync (__NR_Linux + 144) 168633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_readv (__NR_Linux + 145) 169633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_writev (__NR_Linux + 146) 170633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_cacheflush (__NR_Linux + 147) 171633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_cachectl (__NR_Linux + 148) 172633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sysmips (__NR_Linux + 149) 173633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_unused150 (__NR_Linux + 150) 174633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getsid (__NR_Linux + 151) 175633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fdatasync (__NR_Linux + 152) 176633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR__sysctl (__NR_Linux + 153) 177633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mlock (__NR_Linux + 154) 178633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_munlock (__NR_Linux + 155) 179633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mlockall (__NR_Linux + 156) 180633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_munlockall (__NR_Linux + 157) 181633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_setparam (__NR_Linux + 158) 182633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_getparam (__NR_Linux + 159) 183633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_setscheduler (__NR_Linux + 160) 184633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_getscheduler (__NR_Linux + 161) 185633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_yield (__NR_Linux + 162) 186633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_get_priority_max (__NR_Linux + 163) 187633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_get_priority_min (__NR_Linux + 164) 188633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_rr_get_interval (__NR_Linux + 165) 189633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_nanosleep (__NR_Linux + 166) 190633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mremap (__NR_Linux + 167) 191633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_accept (__NR_Linux + 168) 192633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_bind (__NR_Linux + 169) 193633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_connect (__NR_Linux + 170) 194633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getpeername (__NR_Linux + 171) 195633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getsockname (__NR_Linux + 172) 196633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getsockopt (__NR_Linux + 173) 197633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_listen (__NR_Linux + 174) 198633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_recv (__NR_Linux + 175) 199633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_recvfrom (__NR_Linux + 176) 200633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_recvmsg (__NR_Linux + 177) 201633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_send (__NR_Linux + 178) 202633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sendmsg (__NR_Linux + 179) 203633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sendto (__NR_Linux + 180) 204633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setsockopt (__NR_Linux + 181) 205633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_shutdown (__NR_Linux + 182) 206633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_socket (__NR_Linux + 183) 207633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_socketpair (__NR_Linux + 184) 208633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setresuid (__NR_Linux + 185) 209633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getresuid (__NR_Linux + 186) 210633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_query_module (__NR_Linux + 187) 211633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_poll (__NR_Linux + 188) 212633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_nfsservctl (__NR_Linux + 189) 213633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setresgid (__NR_Linux + 190) 214633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getresgid (__NR_Linux + 191) 215633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_prctl (__NR_Linux + 192) 216633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rt_sigreturn (__NR_Linux + 193) 217633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rt_sigaction (__NR_Linux + 194) 218633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rt_sigprocmask (__NR_Linux + 195) 219633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rt_sigpending (__NR_Linux + 196) 220633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rt_sigtimedwait (__NR_Linux + 197) 221633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rt_sigqueueinfo (__NR_Linux + 198) 222633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rt_sigsuspend (__NR_Linux + 199) 223633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_pread64 (__NR_Linux + 200) 224633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_pwrite64 (__NR_Linux + 201) 225633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_chown (__NR_Linux + 202) 226633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getcwd (__NR_Linux + 203) 227633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_capget (__NR_Linux + 204) 228633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_capset (__NR_Linux + 205) 229633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sigaltstack (__NR_Linux + 206) 230633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sendfile (__NR_Linux + 207) 231633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getpmsg (__NR_Linux + 208) 232633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_putpmsg (__NR_Linux + 209) 233633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mmap2 (__NR_Linux + 210) 234633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_truncate64 (__NR_Linux + 211) 235633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ftruncate64 (__NR_Linux + 212) 236633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_stat64 (__NR_Linux + 213) 237633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_lstat64 (__NR_Linux + 214) 238633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fstat64 (__NR_Linux + 215) 239633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_pivot_root (__NR_Linux + 216) 240633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mincore (__NR_Linux + 217) 241633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_madvise (__NR_Linux + 218) 242633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getdents64 (__NR_Linux + 219) 243633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fcntl64 (__NR_Linux + 220) 244633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_reserved221 (__NR_Linux + 221) 245633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_gettid (__NR_Linux + 222) 246633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_readahead (__NR_Linux + 223) 247633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setxattr (__NR_Linux + 224) 248633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_lsetxattr (__NR_Linux + 225) 249633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fsetxattr (__NR_Linux + 226) 250633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getxattr (__NR_Linux + 227) 251633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_lgetxattr (__NR_Linux + 228) 252633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fgetxattr (__NR_Linux + 229) 253633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_listxattr (__NR_Linux + 230) 254633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_llistxattr (__NR_Linux + 231) 255633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_flistxattr (__NR_Linux + 232) 256633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_removexattr (__NR_Linux + 233) 257633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_lremovexattr (__NR_Linux + 234) 258633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fremovexattr (__NR_Linux + 235) 259633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_tkill (__NR_Linux + 236) 260633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sendfile64 (__NR_Linux + 237) 261633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_futex (__NR_Linux + 238) 262633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_setaffinity (__NR_Linux + 239) 263633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_getaffinity (__NR_Linux + 240) 264633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_io_setup (__NR_Linux + 241) 265633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_io_destroy (__NR_Linux + 242) 266633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_io_getevents (__NR_Linux + 243) 267633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_io_submit (__NR_Linux + 244) 268633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_io_cancel (__NR_Linux + 245) 269633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_exit_group (__NR_Linux + 246) 270633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_lookup_dcookie (__NR_Linux + 247) 271633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_epoll_create (__NR_Linux + 248) 272633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_epoll_ctl (__NR_Linux + 249) 273633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_epoll_wait (__NR_Linux + 250) 274633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_remap_file_pages (__NR_Linux + 251) 275633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_set_tid_address (__NR_Linux + 252) 276633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_restart_syscall (__NR_Linux + 253) 277633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fadvise64 (__NR_Linux + 254) 278633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_statfs64 (__NR_Linux + 255) 279633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fstatfs64 (__NR_Linux + 256) 280633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timer_create (__NR_Linux + 257) 281633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timer_settime (__NR_Linux + 258) 282633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timer_gettime (__NR_Linux + 259) 283633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timer_getoverrun (__NR_Linux + 260) 284633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timer_delete (__NR_Linux + 261) 285633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_clock_settime (__NR_Linux + 262) 286633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_clock_gettime (__NR_Linux + 263) 287633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_clock_getres (__NR_Linux + 264) 288633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_clock_nanosleep (__NR_Linux + 265) 289633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_tgkill (__NR_Linux + 266) 290633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_utimes (__NR_Linux + 267) 291633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mbind (__NR_Linux + 268) 292633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_get_mempolicy (__NR_Linux + 269) 293633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_set_mempolicy (__NR_Linux + 270) 294633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mq_open (__NR_Linux + 271) 295633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mq_unlink (__NR_Linux + 272) 296633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mq_timedsend (__NR_Linux + 273) 297633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mq_timedreceive (__NR_Linux + 274) 298633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mq_notify (__NR_Linux + 275) 299633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mq_getsetattr (__NR_Linux + 276) 300633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_vserver (__NR_Linux + 277) 301633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_waitid (__NR_Linux + 278) 302633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham/* #define __NR_sys_setaltroot (__NR_Linux + 279) */ 303633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_add_key (__NR_Linux + 280) 304633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_request_key (__NR_Linux + 281) 305633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_keyctl (__NR_Linux + 282) 306633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_set_thread_area (__NR_Linux + 283) 307633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_inotify_init (__NR_Linux + 284) 308633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_inotify_add_watch (__NR_Linux + 285) 309633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_inotify_rm_watch (__NR_Linux + 286) 310633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_migrate_pages (__NR_Linux + 287) 311633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_openat (__NR_Linux + 288) 312633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mkdirat (__NR_Linux + 289) 313633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mknodat (__NR_Linux + 290) 314633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fchownat (__NR_Linux + 291) 315633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_futimesat (__NR_Linux + 292) 316633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fstatat64 (__NR_Linux + 293) 317633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_unlinkat (__NR_Linux + 294) 318633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_renameat (__NR_Linux + 295) 319633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_linkat (__NR_Linux + 296) 320633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_symlinkat (__NR_Linux + 297) 321633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_readlinkat (__NR_Linux + 298) 322633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fchmodat (__NR_Linux + 299) 323633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_faccessat (__NR_Linux + 300) 324633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_pselect6 (__NR_Linux + 301) 325633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ppoll (__NR_Linux + 302) 326633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_unshare (__NR_Linux + 303) 327633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_splice (__NR_Linux + 304) 328633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sync_file_range (__NR_Linux + 305) 329633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_tee (__NR_Linux + 306) 330633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_vmsplice (__NR_Linux + 307) 331633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_move_pages (__NR_Linux + 308) 332633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_set_robust_list (__NR_Linux + 309) 333633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_get_robust_list (__NR_Linux + 310) 334633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_kexec_load (__NR_Linux + 311) 335633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getcpu (__NR_Linux + 312) 336633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_epoll_pwait (__NR_Linux + 313) 337633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ioprio_set (__NR_Linux + 314) 338633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ioprio_get (__NR_Linux + 315) 339633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_utimensat (__NR_Linux + 316) 340633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_signalfd (__NR_Linux + 317) 341633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timerfd (__NR_Linux + 318) 342633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_eventfd (__NR_Linux + 319) 343633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fallocate (__NR_Linux + 320) 344633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timerfd_create (__NR_Linux + 321) 345633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timerfd_gettime (__NR_Linux + 322) 346633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timerfd_settime (__NR_Linux + 323) 347633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_signalfd4 (__NR_Linux + 324) 348633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_eventfd2 (__NR_Linux + 325) 349633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_epoll_create1 (__NR_Linux + 326) 350633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_dup3 (__NR_Linux + 327) 351633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_pipe2 (__NR_Linux + 328) 352633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_inotify_init1 (__NR_Linux + 329) 3538f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_preadv (__NR_Linux + 330) 3548f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_pwritev (__NR_Linux + 331) 3558f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_rt_tgsigqueueinfo (__NR_Linux + 332) 3568f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_perf_event_open (__NR_Linux + 333) 3578f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_accept4 (__NR_Linux + 334) 3588f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_recvmmsg (__NR_Linux + 335) 3598f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_fanotify_init (__NR_Linux + 336) 3608f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_fanotify_mark (__NR_Linux + 337) 3618f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_prlimit64 (__NR_Linux + 338) 3628f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_name_to_handle_at (__NR_Linux + 339) 3638f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_open_by_handle_at (__NR_Linux + 340) 3648f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_clock_adjtime (__NR_Linux + 341) 3658f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_syncfs (__NR_Linux + 342) 3668f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_sendmmsg (__NR_Linux + 343) 3678f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_setns (__NR_Linux + 344) 3688f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_process_vm_readv (__NR_Linux + 345) 3698f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_process_vm_writev (__NR_Linux + 346) 370633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham 371633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham/* 372633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham * Offset of the last Linux o32 flavoured syscall 373633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham */ 3748f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_Linux_syscalls 346 375633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham 376633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ 377633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham 378633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_O32_Linux 4000 3798f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_O32_Linux_syscalls 346 380633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham 381633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#if _MIPS_SIM == _MIPS_SIM_ABI64 382633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham 383633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham/* 384633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham * Linux 64-bit syscalls are in the range from 5000 to 5999. 385633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham */ 386633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_Linux 5000 387633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_read (__NR_Linux + 0) 388633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_write (__NR_Linux + 1) 389633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_open (__NR_Linux + 2) 390633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_close (__NR_Linux + 3) 391633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_stat (__NR_Linux + 4) 392633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fstat (__NR_Linux + 5) 393633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_lstat (__NR_Linux + 6) 394633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_poll (__NR_Linux + 7) 395633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_lseek (__NR_Linux + 8) 396633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mmap (__NR_Linux + 9) 397633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mprotect (__NR_Linux + 10) 398633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_munmap (__NR_Linux + 11) 399633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_brk (__NR_Linux + 12) 400633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rt_sigaction (__NR_Linux + 13) 401633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rt_sigprocmask (__NR_Linux + 14) 402633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ioctl (__NR_Linux + 15) 403633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_pread64 (__NR_Linux + 16) 404633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_pwrite64 (__NR_Linux + 17) 405633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_readv (__NR_Linux + 18) 406633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_writev (__NR_Linux + 19) 407633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_access (__NR_Linux + 20) 408633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_pipe (__NR_Linux + 21) 409633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR__newselect (__NR_Linux + 22) 410633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_yield (__NR_Linux + 23) 411633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mremap (__NR_Linux + 24) 412633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_msync (__NR_Linux + 25) 413633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mincore (__NR_Linux + 26) 414633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_madvise (__NR_Linux + 27) 415633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_shmget (__NR_Linux + 28) 416633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_shmat (__NR_Linux + 29) 417633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_shmctl (__NR_Linux + 30) 418633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_dup (__NR_Linux + 31) 419633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_dup2 (__NR_Linux + 32) 420633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_pause (__NR_Linux + 33) 421633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_nanosleep (__NR_Linux + 34) 422633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getitimer (__NR_Linux + 35) 423633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setitimer (__NR_Linux + 36) 424633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_alarm (__NR_Linux + 37) 425633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getpid (__NR_Linux + 38) 426633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sendfile (__NR_Linux + 39) 427633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_socket (__NR_Linux + 40) 428633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_connect (__NR_Linux + 41) 429633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_accept (__NR_Linux + 42) 430633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sendto (__NR_Linux + 43) 431633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_recvfrom (__NR_Linux + 44) 432633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sendmsg (__NR_Linux + 45) 433633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_recvmsg (__NR_Linux + 46) 434633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_shutdown (__NR_Linux + 47) 435633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_bind (__NR_Linux + 48) 436633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_listen (__NR_Linux + 49) 437633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getsockname (__NR_Linux + 50) 438633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getpeername (__NR_Linux + 51) 439633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_socketpair (__NR_Linux + 52) 440633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setsockopt (__NR_Linux + 53) 441633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getsockopt (__NR_Linux + 54) 442633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_clone (__NR_Linux + 55) 443633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fork (__NR_Linux + 56) 444633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_execve (__NR_Linux + 57) 445633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_exit (__NR_Linux + 58) 446633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_wait4 (__NR_Linux + 59) 447633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_kill (__NR_Linux + 60) 448633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_uname (__NR_Linux + 61) 449633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_semget (__NR_Linux + 62) 450633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_semop (__NR_Linux + 63) 451633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_semctl (__NR_Linux + 64) 452633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_shmdt (__NR_Linux + 65) 453633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_msgget (__NR_Linux + 66) 454633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_msgsnd (__NR_Linux + 67) 455633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_msgrcv (__NR_Linux + 68) 456633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_msgctl (__NR_Linux + 69) 457633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fcntl (__NR_Linux + 70) 458633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_flock (__NR_Linux + 71) 459633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fsync (__NR_Linux + 72) 460633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fdatasync (__NR_Linux + 73) 461633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_truncate (__NR_Linux + 74) 462633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ftruncate (__NR_Linux + 75) 463633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getdents (__NR_Linux + 76) 464633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getcwd (__NR_Linux + 77) 465633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_chdir (__NR_Linux + 78) 466633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fchdir (__NR_Linux + 79) 467633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rename (__NR_Linux + 80) 468633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mkdir (__NR_Linux + 81) 469633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rmdir (__NR_Linux + 82) 470633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_creat (__NR_Linux + 83) 471633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_link (__NR_Linux + 84) 472633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_unlink (__NR_Linux + 85) 473633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_symlink (__NR_Linux + 86) 474633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_readlink (__NR_Linux + 87) 475633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_chmod (__NR_Linux + 88) 476633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fchmod (__NR_Linux + 89) 477633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_chown (__NR_Linux + 90) 478633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fchown (__NR_Linux + 91) 479633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_lchown (__NR_Linux + 92) 480633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_umask (__NR_Linux + 93) 481633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_gettimeofday (__NR_Linux + 94) 482633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getrlimit (__NR_Linux + 95) 483633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getrusage (__NR_Linux + 96) 484633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sysinfo (__NR_Linux + 97) 485633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_times (__NR_Linux + 98) 486633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ptrace (__NR_Linux + 99) 487633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getuid (__NR_Linux + 100) 488633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_syslog (__NR_Linux + 101) 489633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getgid (__NR_Linux + 102) 490633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setuid (__NR_Linux + 103) 491633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setgid (__NR_Linux + 104) 492633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_geteuid (__NR_Linux + 105) 493633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getegid (__NR_Linux + 106) 494633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setpgid (__NR_Linux + 107) 495633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getppid (__NR_Linux + 108) 496633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getpgrp (__NR_Linux + 109) 497633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setsid (__NR_Linux + 110) 498633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setreuid (__NR_Linux + 111) 499633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setregid (__NR_Linux + 112) 500633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getgroups (__NR_Linux + 113) 501633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setgroups (__NR_Linux + 114) 502633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setresuid (__NR_Linux + 115) 503633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getresuid (__NR_Linux + 116) 504633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setresgid (__NR_Linux + 117) 505633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getresgid (__NR_Linux + 118) 506633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getpgid (__NR_Linux + 119) 507633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setfsuid (__NR_Linux + 120) 508633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setfsgid (__NR_Linux + 121) 509633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getsid (__NR_Linux + 122) 510633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_capget (__NR_Linux + 123) 511633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_capset (__NR_Linux + 124) 512633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rt_sigpending (__NR_Linux + 125) 513633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rt_sigtimedwait (__NR_Linux + 126) 514633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rt_sigqueueinfo (__NR_Linux + 127) 515633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rt_sigsuspend (__NR_Linux + 128) 516633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sigaltstack (__NR_Linux + 129) 517633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_utime (__NR_Linux + 130) 518633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mknod (__NR_Linux + 131) 519633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_personality (__NR_Linux + 132) 520633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ustat (__NR_Linux + 133) 521633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_statfs (__NR_Linux + 134) 522633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fstatfs (__NR_Linux + 135) 523633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sysfs (__NR_Linux + 136) 524633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getpriority (__NR_Linux + 137) 525633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setpriority (__NR_Linux + 138) 526633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_setparam (__NR_Linux + 139) 527633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_getparam (__NR_Linux + 140) 528633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_setscheduler (__NR_Linux + 141) 529633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_getscheduler (__NR_Linux + 142) 530633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_get_priority_max (__NR_Linux + 143) 531633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_get_priority_min (__NR_Linux + 144) 532633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_rr_get_interval (__NR_Linux + 145) 533633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mlock (__NR_Linux + 146) 534633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_munlock (__NR_Linux + 147) 535633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mlockall (__NR_Linux + 148) 536633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_munlockall (__NR_Linux + 149) 537633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_vhangup (__NR_Linux + 150) 538633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_pivot_root (__NR_Linux + 151) 539633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR__sysctl (__NR_Linux + 152) 540633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_prctl (__NR_Linux + 153) 541633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_adjtimex (__NR_Linux + 154) 542633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setrlimit (__NR_Linux + 155) 543633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_chroot (__NR_Linux + 156) 544633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sync (__NR_Linux + 157) 545633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_acct (__NR_Linux + 158) 546633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_settimeofday (__NR_Linux + 159) 547633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mount (__NR_Linux + 160) 548633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_umount2 (__NR_Linux + 161) 549633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_swapon (__NR_Linux + 162) 550633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_swapoff (__NR_Linux + 163) 551633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_reboot (__NR_Linux + 164) 552633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sethostname (__NR_Linux + 165) 553633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setdomainname (__NR_Linux + 166) 554633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_create_module (__NR_Linux + 167) 555633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_init_module (__NR_Linux + 168) 556633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_delete_module (__NR_Linux + 169) 557633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_get_kernel_syms (__NR_Linux + 170) 558633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_query_module (__NR_Linux + 171) 559633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_quotactl (__NR_Linux + 172) 560633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_nfsservctl (__NR_Linux + 173) 561633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getpmsg (__NR_Linux + 174) 562633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_putpmsg (__NR_Linux + 175) 563633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_afs_syscall (__NR_Linux + 176) 564633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_reserved177 (__NR_Linux + 177) 565633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_gettid (__NR_Linux + 178) 566633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_readahead (__NR_Linux + 179) 567633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setxattr (__NR_Linux + 180) 568633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_lsetxattr (__NR_Linux + 181) 569633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fsetxattr (__NR_Linux + 182) 570633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getxattr (__NR_Linux + 183) 571633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_lgetxattr (__NR_Linux + 184) 572633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fgetxattr (__NR_Linux + 185) 573633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_listxattr (__NR_Linux + 186) 574633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_llistxattr (__NR_Linux + 187) 575633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_flistxattr (__NR_Linux + 188) 576633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_removexattr (__NR_Linux + 189) 577633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_lremovexattr (__NR_Linux + 190) 578633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fremovexattr (__NR_Linux + 191) 579633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_tkill (__NR_Linux + 192) 580633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_reserved193 (__NR_Linux + 193) 581633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_futex (__NR_Linux + 194) 582633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_setaffinity (__NR_Linux + 195) 583633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_getaffinity (__NR_Linux + 196) 584633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_cacheflush (__NR_Linux + 197) 585633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_cachectl (__NR_Linux + 198) 586633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sysmips (__NR_Linux + 199) 587633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_io_setup (__NR_Linux + 200) 588633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_io_destroy (__NR_Linux + 201) 589633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_io_getevents (__NR_Linux + 202) 590633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_io_submit (__NR_Linux + 203) 591633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_io_cancel (__NR_Linux + 204) 592633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_exit_group (__NR_Linux + 205) 593633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_lookup_dcookie (__NR_Linux + 206) 594633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_epoll_create (__NR_Linux + 207) 595633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_epoll_ctl (__NR_Linux + 208) 596633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_epoll_wait (__NR_Linux + 209) 597633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_remap_file_pages (__NR_Linux + 210) 598633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rt_sigreturn (__NR_Linux + 211) 599633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_set_tid_address (__NR_Linux + 212) 600633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_restart_syscall (__NR_Linux + 213) 601633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_semtimedop (__NR_Linux + 214) 602633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fadvise64 (__NR_Linux + 215) 603633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timer_create (__NR_Linux + 216) 604633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timer_settime (__NR_Linux + 217) 605633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timer_gettime (__NR_Linux + 218) 606633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timer_getoverrun (__NR_Linux + 219) 607633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timer_delete (__NR_Linux + 220) 608633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_clock_settime (__NR_Linux + 221) 609633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_clock_gettime (__NR_Linux + 222) 610633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_clock_getres (__NR_Linux + 223) 611633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_clock_nanosleep (__NR_Linux + 224) 612633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_tgkill (__NR_Linux + 225) 613633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_utimes (__NR_Linux + 226) 614633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mbind (__NR_Linux + 227) 615633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_get_mempolicy (__NR_Linux + 228) 616633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_set_mempolicy (__NR_Linux + 229) 617633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mq_open (__NR_Linux + 230) 618633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mq_unlink (__NR_Linux + 231) 619633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mq_timedsend (__NR_Linux + 232) 620633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mq_timedreceive (__NR_Linux + 233) 621633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mq_notify (__NR_Linux + 234) 622633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mq_getsetattr (__NR_Linux + 235) 623633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_vserver (__NR_Linux + 236) 624633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_waitid (__NR_Linux + 237) 625633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham/* #define __NR_sys_setaltroot (__NR_Linux + 238) */ 626633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_add_key (__NR_Linux + 239) 627633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_request_key (__NR_Linux + 240) 628633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_keyctl (__NR_Linux + 241) 629633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_set_thread_area (__NR_Linux + 242) 630633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_inotify_init (__NR_Linux + 243) 631633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_inotify_add_watch (__NR_Linux + 244) 632633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_inotify_rm_watch (__NR_Linux + 245) 633633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_migrate_pages (__NR_Linux + 246) 634633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_openat (__NR_Linux + 247) 635633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mkdirat (__NR_Linux + 248) 636633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mknodat (__NR_Linux + 249) 637633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fchownat (__NR_Linux + 250) 638633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_futimesat (__NR_Linux + 251) 639633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_newfstatat (__NR_Linux + 252) 640633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_unlinkat (__NR_Linux + 253) 641633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_renameat (__NR_Linux + 254) 642633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_linkat (__NR_Linux + 255) 643633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_symlinkat (__NR_Linux + 256) 644633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_readlinkat (__NR_Linux + 257) 645633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fchmodat (__NR_Linux + 258) 646633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_faccessat (__NR_Linux + 259) 647633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_pselect6 (__NR_Linux + 260) 648633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ppoll (__NR_Linux + 261) 649633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_unshare (__NR_Linux + 262) 650633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_splice (__NR_Linux + 263) 651633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sync_file_range (__NR_Linux + 264) 652633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_tee (__NR_Linux + 265) 653633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_vmsplice (__NR_Linux + 266) 654633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_move_pages (__NR_Linux + 267) 655633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_set_robust_list (__NR_Linux + 268) 656633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_get_robust_list (__NR_Linux + 269) 657633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_kexec_load (__NR_Linux + 270) 658633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getcpu (__NR_Linux + 271) 659633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_epoll_pwait (__NR_Linux + 272) 660633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ioprio_set (__NR_Linux + 273) 661633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ioprio_get (__NR_Linux + 274) 662633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_utimensat (__NR_Linux + 275) 663633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_signalfd (__NR_Linux + 276) 664633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timerfd (__NR_Linux + 277) 665633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_eventfd (__NR_Linux + 278) 666633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fallocate (__NR_Linux + 279) 667633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timerfd_create (__NR_Linux + 280) 668633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timerfd_gettime (__NR_Linux + 281) 669633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timerfd_settime (__NR_Linux + 282) 670633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_signalfd4 (__NR_Linux + 283) 671633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_eventfd2 (__NR_Linux + 284) 672633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_epoll_create1 (__NR_Linux + 285) 673633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_dup3 (__NR_Linux + 286) 674633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_pipe2 (__NR_Linux + 287) 675633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_inotify_init1 (__NR_Linux + 288) 6768f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_preadv (__NR_Linux + 289) 6778f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_pwritev (__NR_Linux + 290) 6788f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_rt_tgsigqueueinfo (__NR_Linux + 291) 6798f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_perf_event_open (__NR_Linux + 292) 6808f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_accept4 (__NR_Linux + 293) 6818f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_recvmmsg (__NR_Linux + 294) 6828f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_fanotify_init (__NR_Linux + 295) 6838f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_fanotify_mark (__NR_Linux + 296) 6848f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_prlimit64 (__NR_Linux + 297) 6858f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_name_to_handle_at (__NR_Linux + 298) 6868f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_open_by_handle_at (__NR_Linux + 299) 6878f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_clock_adjtime (__NR_Linux + 300) 6888f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_syncfs (__NR_Linux + 301) 6898f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_sendmmsg (__NR_Linux + 302) 6908f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_setns (__NR_Linux + 303) 6918f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_process_vm_readv (__NR_Linux + 304) 6928f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_process_vm_writev (__NR_Linux + 305) 693633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham 694633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham/* 695633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham * Offset of the last Linux 64-bit flavoured syscall 696633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham */ 6978f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_Linux_syscalls 305 698633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham 699633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ 700633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham 701633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_64_Linux 5000 7028f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_64_Linux_syscalls 305 703633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham 704633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#if _MIPS_SIM == _MIPS_SIM_NABI32 705633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham 706633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham/* 707633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham * Linux N32 syscalls are in the range from 6000 to 6999. 708633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham */ 709633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_Linux 6000 710633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_read (__NR_Linux + 0) 711633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_write (__NR_Linux + 1) 712633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_open (__NR_Linux + 2) 713633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_close (__NR_Linux + 3) 714633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_stat (__NR_Linux + 4) 715633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fstat (__NR_Linux + 5) 716633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_lstat (__NR_Linux + 6) 717633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_poll (__NR_Linux + 7) 718633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_lseek (__NR_Linux + 8) 719633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mmap (__NR_Linux + 9) 720633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mprotect (__NR_Linux + 10) 721633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_munmap (__NR_Linux + 11) 722633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_brk (__NR_Linux + 12) 723633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rt_sigaction (__NR_Linux + 13) 724633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rt_sigprocmask (__NR_Linux + 14) 725633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ioctl (__NR_Linux + 15) 726633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_pread64 (__NR_Linux + 16) 727633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_pwrite64 (__NR_Linux + 17) 728633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_readv (__NR_Linux + 18) 729633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_writev (__NR_Linux + 19) 730633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_access (__NR_Linux + 20) 731633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_pipe (__NR_Linux + 21) 732633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR__newselect (__NR_Linux + 22) 733633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_yield (__NR_Linux + 23) 734633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mremap (__NR_Linux + 24) 735633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_msync (__NR_Linux + 25) 736633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mincore (__NR_Linux + 26) 737633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_madvise (__NR_Linux + 27) 738633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_shmget (__NR_Linux + 28) 739633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_shmat (__NR_Linux + 29) 740633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_shmctl (__NR_Linux + 30) 741633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_dup (__NR_Linux + 31) 742633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_dup2 (__NR_Linux + 32) 743633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_pause (__NR_Linux + 33) 744633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_nanosleep (__NR_Linux + 34) 745633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getitimer (__NR_Linux + 35) 746633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setitimer (__NR_Linux + 36) 747633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_alarm (__NR_Linux + 37) 748633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getpid (__NR_Linux + 38) 749633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sendfile (__NR_Linux + 39) 750633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_socket (__NR_Linux + 40) 751633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_connect (__NR_Linux + 41) 752633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_accept (__NR_Linux + 42) 753633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sendto (__NR_Linux + 43) 754633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_recvfrom (__NR_Linux + 44) 755633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sendmsg (__NR_Linux + 45) 756633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_recvmsg (__NR_Linux + 46) 757633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_shutdown (__NR_Linux + 47) 758633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_bind (__NR_Linux + 48) 759633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_listen (__NR_Linux + 49) 760633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getsockname (__NR_Linux + 50) 761633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getpeername (__NR_Linux + 51) 762633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_socketpair (__NR_Linux + 52) 763633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setsockopt (__NR_Linux + 53) 764633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getsockopt (__NR_Linux + 54) 765633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_clone (__NR_Linux + 55) 766633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fork (__NR_Linux + 56) 767633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_execve (__NR_Linux + 57) 768633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_exit (__NR_Linux + 58) 769633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_wait4 (__NR_Linux + 59) 770633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_kill (__NR_Linux + 60) 771633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_uname (__NR_Linux + 61) 772633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_semget (__NR_Linux + 62) 773633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_semop (__NR_Linux + 63) 774633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_semctl (__NR_Linux + 64) 775633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_shmdt (__NR_Linux + 65) 776633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_msgget (__NR_Linux + 66) 777633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_msgsnd (__NR_Linux + 67) 778633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_msgrcv (__NR_Linux + 68) 779633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_msgctl (__NR_Linux + 69) 780633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fcntl (__NR_Linux + 70) 781633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_flock (__NR_Linux + 71) 782633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fsync (__NR_Linux + 72) 783633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fdatasync (__NR_Linux + 73) 784633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_truncate (__NR_Linux + 74) 785633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ftruncate (__NR_Linux + 75) 786633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getdents (__NR_Linux + 76) 787633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getcwd (__NR_Linux + 77) 788633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_chdir (__NR_Linux + 78) 789633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fchdir (__NR_Linux + 79) 790633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rename (__NR_Linux + 80) 791633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mkdir (__NR_Linux + 81) 792633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rmdir (__NR_Linux + 82) 793633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_creat (__NR_Linux + 83) 794633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_link (__NR_Linux + 84) 795633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_unlink (__NR_Linux + 85) 796633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_symlink (__NR_Linux + 86) 797633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_readlink (__NR_Linux + 87) 798633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_chmod (__NR_Linux + 88) 799633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fchmod (__NR_Linux + 89) 800633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_chown (__NR_Linux + 90) 801633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fchown (__NR_Linux + 91) 802633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_lchown (__NR_Linux + 92) 803633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_umask (__NR_Linux + 93) 804633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_gettimeofday (__NR_Linux + 94) 805633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getrlimit (__NR_Linux + 95) 806633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getrusage (__NR_Linux + 96) 807633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sysinfo (__NR_Linux + 97) 808633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_times (__NR_Linux + 98) 809633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ptrace (__NR_Linux + 99) 810633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getuid (__NR_Linux + 100) 811633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_syslog (__NR_Linux + 101) 812633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getgid (__NR_Linux + 102) 813633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setuid (__NR_Linux + 103) 814633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setgid (__NR_Linux + 104) 815633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_geteuid (__NR_Linux + 105) 816633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getegid (__NR_Linux + 106) 817633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setpgid (__NR_Linux + 107) 818633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getppid (__NR_Linux + 108) 819633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getpgrp (__NR_Linux + 109) 820633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setsid (__NR_Linux + 110) 821633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setreuid (__NR_Linux + 111) 822633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setregid (__NR_Linux + 112) 823633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getgroups (__NR_Linux + 113) 824633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setgroups (__NR_Linux + 114) 825633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setresuid (__NR_Linux + 115) 826633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getresuid (__NR_Linux + 116) 827633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setresgid (__NR_Linux + 117) 828633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getresgid (__NR_Linux + 118) 829633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getpgid (__NR_Linux + 119) 830633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setfsuid (__NR_Linux + 120) 831633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setfsgid (__NR_Linux + 121) 832633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getsid (__NR_Linux + 122) 833633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_capget (__NR_Linux + 123) 834633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_capset (__NR_Linux + 124) 835633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rt_sigpending (__NR_Linux + 125) 836633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rt_sigtimedwait (__NR_Linux + 126) 837633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rt_sigqueueinfo (__NR_Linux + 127) 838633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rt_sigsuspend (__NR_Linux + 128) 839633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sigaltstack (__NR_Linux + 129) 840633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_utime (__NR_Linux + 130) 841633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mknod (__NR_Linux + 131) 842633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_personality (__NR_Linux + 132) 843633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ustat (__NR_Linux + 133) 844633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_statfs (__NR_Linux + 134) 845633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fstatfs (__NR_Linux + 135) 846633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sysfs (__NR_Linux + 136) 847633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getpriority (__NR_Linux + 137) 848633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setpriority (__NR_Linux + 138) 849633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_setparam (__NR_Linux + 139) 850633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_getparam (__NR_Linux + 140) 851633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_setscheduler (__NR_Linux + 141) 852633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_getscheduler (__NR_Linux + 142) 853633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_get_priority_max (__NR_Linux + 143) 854633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_get_priority_min (__NR_Linux + 144) 855633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_rr_get_interval (__NR_Linux + 145) 856633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mlock (__NR_Linux + 146) 857633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_munlock (__NR_Linux + 147) 858633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mlockall (__NR_Linux + 148) 859633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_munlockall (__NR_Linux + 149) 860633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_vhangup (__NR_Linux + 150) 861633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_pivot_root (__NR_Linux + 151) 862633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR__sysctl (__NR_Linux + 152) 863633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_prctl (__NR_Linux + 153) 864633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_adjtimex (__NR_Linux + 154) 865633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setrlimit (__NR_Linux + 155) 866633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_chroot (__NR_Linux + 156) 867633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sync (__NR_Linux + 157) 868633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_acct (__NR_Linux + 158) 869633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_settimeofday (__NR_Linux + 159) 870633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mount (__NR_Linux + 160) 871633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_umount2 (__NR_Linux + 161) 872633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_swapon (__NR_Linux + 162) 873633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_swapoff (__NR_Linux + 163) 874633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_reboot (__NR_Linux + 164) 875633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sethostname (__NR_Linux + 165) 876633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setdomainname (__NR_Linux + 166) 877633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_create_module (__NR_Linux + 167) 878633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_init_module (__NR_Linux + 168) 879633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_delete_module (__NR_Linux + 169) 880633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_get_kernel_syms (__NR_Linux + 170) 881633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_query_module (__NR_Linux + 171) 882633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_quotactl (__NR_Linux + 172) 883633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_nfsservctl (__NR_Linux + 173) 884633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getpmsg (__NR_Linux + 174) 885633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_putpmsg (__NR_Linux + 175) 886633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_afs_syscall (__NR_Linux + 176) 887633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_reserved177 (__NR_Linux + 177) 888633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_gettid (__NR_Linux + 178) 889633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_readahead (__NR_Linux + 179) 890633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_setxattr (__NR_Linux + 180) 891633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_lsetxattr (__NR_Linux + 181) 892633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fsetxattr (__NR_Linux + 182) 893633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getxattr (__NR_Linux + 183) 894633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_lgetxattr (__NR_Linux + 184) 895633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fgetxattr (__NR_Linux + 185) 896633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_listxattr (__NR_Linux + 186) 897633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_llistxattr (__NR_Linux + 187) 898633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_flistxattr (__NR_Linux + 188) 899633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_removexattr (__NR_Linux + 189) 900633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_lremovexattr (__NR_Linux + 190) 901633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fremovexattr (__NR_Linux + 191) 902633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_tkill (__NR_Linux + 192) 903633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_reserved193 (__NR_Linux + 193) 904633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_futex (__NR_Linux + 194) 905633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_setaffinity (__NR_Linux + 195) 906633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sched_getaffinity (__NR_Linux + 196) 907633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_cacheflush (__NR_Linux + 197) 908633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_cachectl (__NR_Linux + 198) 909633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sysmips (__NR_Linux + 199) 910633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_io_setup (__NR_Linux + 200) 911633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_io_destroy (__NR_Linux + 201) 912633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_io_getevents (__NR_Linux + 202) 913633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_io_submit (__NR_Linux + 203) 914633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_io_cancel (__NR_Linux + 204) 915633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_exit_group (__NR_Linux + 205) 916633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_lookup_dcookie (__NR_Linux + 206) 917633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_epoll_create (__NR_Linux + 207) 918633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_epoll_ctl (__NR_Linux + 208) 919633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_epoll_wait (__NR_Linux + 209) 920633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_remap_file_pages (__NR_Linux + 210) 921633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_rt_sigreturn (__NR_Linux + 211) 922633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fcntl64 (__NR_Linux + 212) 923633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_set_tid_address (__NR_Linux + 213) 924633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_restart_syscall (__NR_Linux + 214) 925633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_semtimedop (__NR_Linux + 215) 926633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fadvise64 (__NR_Linux + 216) 927633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_statfs64 (__NR_Linux + 217) 928633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fstatfs64 (__NR_Linux + 218) 929633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sendfile64 (__NR_Linux + 219) 930633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timer_create (__NR_Linux + 220) 931633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timer_settime (__NR_Linux + 221) 932633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timer_gettime (__NR_Linux + 222) 933633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timer_getoverrun (__NR_Linux + 223) 934633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timer_delete (__NR_Linux + 224) 935633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_clock_settime (__NR_Linux + 225) 936633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_clock_gettime (__NR_Linux + 226) 937633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_clock_getres (__NR_Linux + 227) 938633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_clock_nanosleep (__NR_Linux + 228) 939633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_tgkill (__NR_Linux + 229) 940633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_utimes (__NR_Linux + 230) 941633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mbind (__NR_Linux + 231) 942633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_get_mempolicy (__NR_Linux + 232) 943633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_set_mempolicy (__NR_Linux + 233) 944633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mq_open (__NR_Linux + 234) 945633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mq_unlink (__NR_Linux + 235) 946633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mq_timedsend (__NR_Linux + 236) 947633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mq_timedreceive (__NR_Linux + 237) 948633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mq_notify (__NR_Linux + 238) 949633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mq_getsetattr (__NR_Linux + 239) 950633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_vserver (__NR_Linux + 240) 951633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_waitid (__NR_Linux + 241) 952633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham/* #define __NR_sys_setaltroot (__NR_Linux + 242) */ 953633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_add_key (__NR_Linux + 243) 954633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_request_key (__NR_Linux + 244) 955633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_keyctl (__NR_Linux + 245) 956633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_set_thread_area (__NR_Linux + 246) 957633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_inotify_init (__NR_Linux + 247) 958633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_inotify_add_watch (__NR_Linux + 248) 959633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_inotify_rm_watch (__NR_Linux + 249) 960633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_migrate_pages (__NR_Linux + 250) 961633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_openat (__NR_Linux + 251) 962633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mkdirat (__NR_Linux + 252) 963633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_mknodat (__NR_Linux + 253) 964633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fchownat (__NR_Linux + 254) 965633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_futimesat (__NR_Linux + 255) 966633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_newfstatat (__NR_Linux + 256) 967633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_unlinkat (__NR_Linux + 257) 968633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_renameat (__NR_Linux + 258) 969633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_linkat (__NR_Linux + 259) 970633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_symlinkat (__NR_Linux + 260) 971633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_readlinkat (__NR_Linux + 261) 972633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fchmodat (__NR_Linux + 262) 973633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_faccessat (__NR_Linux + 263) 974633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_pselect6 (__NR_Linux + 264) 975633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ppoll (__NR_Linux + 265) 976633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_unshare (__NR_Linux + 266) 977633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_splice (__NR_Linux + 267) 978633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_sync_file_range (__NR_Linux + 268) 979633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_tee (__NR_Linux + 269) 980633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_vmsplice (__NR_Linux + 270) 981633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_move_pages (__NR_Linux + 271) 982633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_set_robust_list (__NR_Linux + 272) 983633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_get_robust_list (__NR_Linux + 273) 984633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_kexec_load (__NR_Linux + 274) 985633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_getcpu (__NR_Linux + 275) 986633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_epoll_pwait (__NR_Linux + 276) 987633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ioprio_set (__NR_Linux + 277) 988633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_ioprio_get (__NR_Linux + 278) 989633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_utimensat (__NR_Linux + 279) 990633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_signalfd (__NR_Linux + 280) 991633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timerfd (__NR_Linux + 281) 992633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_eventfd (__NR_Linux + 282) 993633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_fallocate (__NR_Linux + 283) 994633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timerfd_create (__NR_Linux + 284) 995633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timerfd_gettime (__NR_Linux + 285) 996633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_timerfd_settime (__NR_Linux + 286) 997633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_signalfd4 (__NR_Linux + 287) 998633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_eventfd2 (__NR_Linux + 288) 999633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_epoll_create1 (__NR_Linux + 289) 1000633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_dup3 (__NR_Linux + 290) 1001633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_pipe2 (__NR_Linux + 291) 1002633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_inotify_init1 (__NR_Linux + 292) 10038f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_preadv (__NR_Linux + 293) 10048f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_pwritev (__NR_Linux + 294) 10058f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_rt_tgsigqueueinfo (__NR_Linux + 295) 10068f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_perf_event_open (__NR_Linux + 296) 10078f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_accept4 (__NR_Linux + 297) 10088f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_recvmmsg (__NR_Linux + 298) 10098f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_getdents64 (__NR_Linux + 299) 10108f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_fanotify_init (__NR_Linux + 300) 10118f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_fanotify_mark (__NR_Linux + 301) 10128f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_prlimit64 (__NR_Linux + 302) 10138f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_name_to_handle_at (__NR_Linux + 303) 10148f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_open_by_handle_at (__NR_Linux + 304) 10158f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_clock_adjtime (__NR_Linux + 305) 10168f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_syncfs (__NR_Linux + 306) 10178f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_sendmmsg (__NR_Linux + 307) 10188f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_setns (__NR_Linux + 308) 10198f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_process_vm_readv (__NR_Linux + 309) 10208f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_process_vm_writev (__NR_Linux + 310) 1021633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham 1022633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham/* 1023633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham * Offset of the last N32 flavoured syscall 1024633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham */ 10258f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_Linux_syscalls 310 1026633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham 1027633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ 1028633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham 1029633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __NR_N32_Linux 6000 10308f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __NR_N32_Linux_syscalls 310 1031633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham 1032633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#ifdef __KERNEL__ 1033633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham 1034633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#ifndef __ASSEMBLY__ 1035633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham 1036633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __ARCH_OMIT_COMPAT_SYS_GETDENTS64 1037633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __ARCH_WANT_IPC_PARSE_VERSION 1038633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __ARCH_WANT_OLD_READDIR 1039633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __ARCH_WANT_SYS_ALARM 1040633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __ARCH_WANT_SYS_GETHOSTNAME 10418f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __ARCH_WANT_SYS_IPC 1042633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __ARCH_WANT_SYS_PAUSE 1043633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __ARCH_WANT_SYS_SGETMASK 1044633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __ARCH_WANT_SYS_UTIME 1045633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __ARCH_WANT_SYS_WAITPID 1046633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __ARCH_WANT_SYS_SOCKETCALL 1047633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __ARCH_WANT_SYS_GETPGRP 1048633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __ARCH_WANT_SYS_LLSEEK 1049633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __ARCH_WANT_SYS_NICE 1050633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __ARCH_WANT_SYS_OLD_GETRLIMIT 10518f7c8760ae4c0d38ca110fd06656b49388ff2ca9Raghu Gandham#define __ARCH_WANT_SYS_OLD_UNAME 1052633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __ARCH_WANT_SYS_OLDUMOUNT 1053633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __ARCH_WANT_SYS_SIGPENDING 1054633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __ARCH_WANT_SYS_SIGPROCMASK 1055633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __ARCH_WANT_SYS_RT_SIGACTION 1056633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham# ifdef CONFIG_32BIT 1057633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham# define __ARCH_WANT_STAT64 1058633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham# define __ARCH_WANT_SYS_TIME 1059633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham# endif 1060633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham# ifdef CONFIG_MIPS32_O32 1061633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham# define __ARCH_WANT_COMPAT_SYS_TIME 1062633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham# endif 1063633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham 1064633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham/* whitelists for checksyscalls */ 1065633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __IGNORE_select 1066633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __IGNORE_vfork 1067633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __IGNORE_time 1068633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __IGNORE_uselib 1069633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __IGNORE_fadvise64_64 1070633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __IGNORE_getdents64 1071633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#if _MIPS_SIM == _MIPS_SIM_NABI32 1072633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __IGNORE_truncate64 1073633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __IGNORE_ftruncate64 1074633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __IGNORE_stat64 1075633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __IGNORE_lstat64 1076633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __IGNORE_fstat64 1077633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define __IGNORE_fstatat64 1078633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#endif 1079633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham 1080633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#endif /* !__ASSEMBLY__ */ 1081633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham 1082633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham/* 1083633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham * "Conditional" syscalls 1084633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham * 1085633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham * What we want is __attribute__((weak,alias("sys_ni_syscall"))), 1086633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham * but it doesn't work on all toolchains, so we just do it by hand 1087633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham */ 1088633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#define cond_syscall(x) asm(".weak\t" #x "\n" #x "\t=\tsys_ni_syscall") 1089633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham 1090633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#endif /* __KERNEL__ */ 1091633c3473533ad9f2cca069b22cc5d95cd4e3510bRaghu Gandham#endif /* _ASM_UNISTD_H */ 1092