1*dd0105a6SMichal Simek /* 2*dd0105a6SMichal Simek * Copyright (C) 2007-2008 Michal Simek <monstr@monstr.eu> 3*dd0105a6SMichal Simek * Copyright (C) 2006 Atmark Techno, Inc. 4*dd0105a6SMichal Simek * 5*dd0105a6SMichal Simek * This file is subject to the terms and conditions of the GNU General Public 6*dd0105a6SMichal Simek * License. See the file "COPYING" in the main directory of this archive 7*dd0105a6SMichal Simek * for more details. 8*dd0105a6SMichal Simek */ 9*dd0105a6SMichal Simek 10*dd0105a6SMichal Simek #ifndef _ASM_MICROBLAZE_UNISTD_H 11*dd0105a6SMichal Simek #define _ASM_MICROBLAZE_UNISTD_H 12*dd0105a6SMichal Simek 13*dd0105a6SMichal Simek #define __NR_restart_syscall 0 /* ok */ 14*dd0105a6SMichal Simek #define __NR_exit 1 /* ok */ 15*dd0105a6SMichal Simek #define __NR_fork 2 /* not for no MMU - weird */ 16*dd0105a6SMichal Simek #define __NR_read 3 /* ok */ 17*dd0105a6SMichal Simek #define __NR_write 4 /* ok */ 18*dd0105a6SMichal Simek #define __NR_open 5 /* openat */ 19*dd0105a6SMichal Simek #define __NR_close 6 /* ok */ 20*dd0105a6SMichal Simek #define __NR_waitpid 7 /* waitid */ 21*dd0105a6SMichal Simek #define __NR_creat 8 /* openat */ 22*dd0105a6SMichal Simek #define __NR_link 9 /* linkat */ 23*dd0105a6SMichal Simek #define __NR_unlink 10 /* unlinkat */ 24*dd0105a6SMichal Simek #define __NR_execve 11 /* ok */ 25*dd0105a6SMichal Simek #define __NR_chdir 12 /* ok */ 26*dd0105a6SMichal Simek #define __NR_time 13 /* obsolete -> sys_gettimeofday */ 27*dd0105a6SMichal Simek #define __NR_mknod 14 /* mknodat */ 28*dd0105a6SMichal Simek #define __NR_chmod 15 /* fchmodat */ 29*dd0105a6SMichal Simek #define __NR_lchown 16 /* ok */ 30*dd0105a6SMichal Simek #define __NR_break 17 /* don't know */ 31*dd0105a6SMichal Simek #define __NR_oldstat 18 /* remove */ 32*dd0105a6SMichal Simek #define __NR_lseek 19 /* ok */ 33*dd0105a6SMichal Simek #define __NR_getpid 20 /* ok */ 34*dd0105a6SMichal Simek #define __NR_mount 21 /* ok */ 35*dd0105a6SMichal Simek #define __NR_umount 22 /* ok */ /* use only umount2 */ 36*dd0105a6SMichal Simek #define __NR_setuid 23 /* ok */ 37*dd0105a6SMichal Simek #define __NR_getuid 24 /* ok */ 38*dd0105a6SMichal Simek #define __NR_stime 25 /* obsolete -> sys_settimeofday */ 39*dd0105a6SMichal Simek #define __NR_ptrace 26 /* ok */ 40*dd0105a6SMichal Simek #define __NR_alarm 27 /* obsolete -> sys_setitimer */ 41*dd0105a6SMichal Simek #define __NR_oldfstat 28 /* remove */ 42*dd0105a6SMichal Simek #define __NR_pause 29 /* obsolete -> sys_rt_sigtimedwait */ 43*dd0105a6SMichal Simek #define __NR_utime 30 /* obsolete -> sys_utimesat */ 44*dd0105a6SMichal Simek #define __NR_stty 31 /* remove */ 45*dd0105a6SMichal Simek #define __NR_gtty 32 /* remove */ 46*dd0105a6SMichal Simek #define __NR_access 33 /* faccessat */ 47*dd0105a6SMichal Simek /* can be implemented by sys_setpriority */ 48*dd0105a6SMichal Simek #define __NR_nice 34 49*dd0105a6SMichal Simek #define __NR_ftime 35 /* remove */ 50*dd0105a6SMichal Simek #define __NR_sync 36 /* ok */ 51*dd0105a6SMichal Simek #define __NR_kill 37 /* ok */ 52*dd0105a6SMichal Simek #define __NR_rename 38 /* renameat */ 53*dd0105a6SMichal Simek #define __NR_mkdir 39 /* mkdirat */ 54*dd0105a6SMichal Simek #define __NR_rmdir 40 /* unlinkat */ 55*dd0105a6SMichal Simek #define __NR_dup 41 /* ok */ 56*dd0105a6SMichal Simek #define __NR_pipe 42 /* ok */ 57*dd0105a6SMichal Simek #define __NR_times 43 /* ok */ 58*dd0105a6SMichal Simek #define __NR_prof 44 /* remove */ 59*dd0105a6SMichal Simek #define __NR_brk 45 /* ok -mmu, nommu specific */ 60*dd0105a6SMichal Simek #define __NR_setgid 46 /* ok */ 61*dd0105a6SMichal Simek #define __NR_getgid 47 /* ok */ 62*dd0105a6SMichal Simek #define __NR_signal 48 /* obsolete -> sys_rt_sigaction */ 63*dd0105a6SMichal Simek #define __NR_geteuid 49 /* ok */ 64*dd0105a6SMichal Simek #define __NR_getegid 50 /* ok */ 65*dd0105a6SMichal Simek #define __NR_acct 51 /* add it and then I can disable it */ 66*dd0105a6SMichal Simek #define __NR_umount2 52 /* remove */ 67*dd0105a6SMichal Simek #define __NR_lock 53 /* remove */ 68*dd0105a6SMichal Simek #define __NR_ioctl 54 /* ok */ 69*dd0105a6SMichal Simek #define __NR_fcntl 55 /* ok -> 64bit version*/ 70*dd0105a6SMichal Simek #define __NR_mpx 56 /* remove */ 71*dd0105a6SMichal Simek #define __NR_setpgid 57 /* ok */ 72*dd0105a6SMichal Simek #define __NR_ulimit 58 /* remove */ 73*dd0105a6SMichal Simek #define __NR_oldolduname 59 /* remove */ 74*dd0105a6SMichal Simek #define __NR_umask 60 /* ok */ 75*dd0105a6SMichal Simek #define __NR_chroot 61 /* ok */ 76*dd0105a6SMichal Simek #define __NR_ustat 62 /* obsolete -> statfs64 */ 77*dd0105a6SMichal Simek #define __NR_dup2 63 /* ok */ 78*dd0105a6SMichal Simek #define __NR_getppid 64 /* ok */ 79*dd0105a6SMichal Simek #define __NR_getpgrp 65 /* obsolete -> sys_getpgid */ 80*dd0105a6SMichal Simek #define __NR_setsid 66 /* ok */ 81*dd0105a6SMichal Simek #define __NR_sigaction 67 /* obsolete -> rt_sigaction */ 82*dd0105a6SMichal Simek #define __NR_sgetmask 68 /* obsolete -> sys_rt_sigprocmask */ 83*dd0105a6SMichal Simek #define __NR_ssetmask 69 /* obsolete ->sys_rt_sigprocmask */ 84*dd0105a6SMichal Simek #define __NR_setreuid 70 /* ok */ 85*dd0105a6SMichal Simek #define __NR_setregid 71 /* ok */ 86*dd0105a6SMichal Simek #define __NR_sigsuspend 72 /* obsolete -> rt_sigsuspend */ 87*dd0105a6SMichal Simek #define __NR_sigpending 73 /* obsolete -> sys_rt_sigpending */ 88*dd0105a6SMichal Simek #define __NR_sethostname 74 /* ok */ 89*dd0105a6SMichal Simek #define __NR_setrlimit 75 /* ok */ 90*dd0105a6SMichal Simek #define __NR_getrlimit 76 /* ok Back compatible 2G limited rlimit */ 91*dd0105a6SMichal Simek #define __NR_getrusage 77 /* ok */ 92*dd0105a6SMichal Simek #define __NR_gettimeofday 78 /* ok */ 93*dd0105a6SMichal Simek #define __NR_settimeofday 79 /* ok */ 94*dd0105a6SMichal Simek #define __NR_getgroups 80 /* ok */ 95*dd0105a6SMichal Simek #define __NR_setgroups 81 /* ok */ 96*dd0105a6SMichal Simek #define __NR_select 82 /* obsolete -> sys_pselect7 */ 97*dd0105a6SMichal Simek #define __NR_symlink 83 /* symlinkat */ 98*dd0105a6SMichal Simek #define __NR_oldlstat 84 /* remove */ 99*dd0105a6SMichal Simek #define __NR_readlink 85 /* obsolete -> sys_readlinkat */ 100*dd0105a6SMichal Simek #define __NR_uselib 86 /* remove */ 101*dd0105a6SMichal Simek #define __NR_swapon 87 /* ok */ 102*dd0105a6SMichal Simek #define __NR_reboot 88 /* ok */ 103*dd0105a6SMichal Simek #define __NR_readdir 89 /* remove ? */ 104*dd0105a6SMichal Simek #define __NR_mmap 90 /* obsolete -> sys_mmap2 */ 105*dd0105a6SMichal Simek #define __NR_munmap 91 /* ok - mmu and nommu */ 106*dd0105a6SMichal Simek #define __NR_truncate 92 /* ok or truncate64 */ 107*dd0105a6SMichal Simek #define __NR_ftruncate 93 /* ok or ftruncate64 */ 108*dd0105a6SMichal Simek #define __NR_fchmod 94 /* ok */ 109*dd0105a6SMichal Simek #define __NR_fchown 95 /* ok */ 110*dd0105a6SMichal Simek #define __NR_getpriority 96 /* ok */ 111*dd0105a6SMichal Simek #define __NR_setpriority 97 /* ok */ 112*dd0105a6SMichal Simek #define __NR_profil 98 /* remove */ 113*dd0105a6SMichal Simek #define __NR_statfs 99 /* ok or statfs64 */ 114*dd0105a6SMichal Simek #define __NR_fstatfs 100 /* ok or fstatfs64 */ 115*dd0105a6SMichal Simek #define __NR_ioperm 101 /* remove */ 116*dd0105a6SMichal Simek #define __NR_socketcall 102 /* remove */ 117*dd0105a6SMichal Simek #define __NR_syslog 103 /* ok */ 118*dd0105a6SMichal Simek #define __NR_setitimer 104 /* ok */ 119*dd0105a6SMichal Simek #define __NR_getitimer 105 /* ok */ 120*dd0105a6SMichal Simek #define __NR_stat 106 /* remove */ 121*dd0105a6SMichal Simek #define __NR_lstat 107 /* remove */ 122*dd0105a6SMichal Simek #define __NR_fstat 108 /* remove */ 123*dd0105a6SMichal Simek #define __NR_olduname 109 /* remove */ 124*dd0105a6SMichal Simek #define __NR_iopl 110 /* remove */ 125*dd0105a6SMichal Simek #define __NR_vhangup 111 /* ok */ 126*dd0105a6SMichal Simek #define __NR_idle 112 /* remove */ 127*dd0105a6SMichal Simek #define __NR_vm86old 113 /* remove */ 128*dd0105a6SMichal Simek #define __NR_wait4 114 /* obsolete -> waitid */ 129*dd0105a6SMichal Simek #define __NR_swapoff 115 /* ok */ 130*dd0105a6SMichal Simek #define __NR_sysinfo 116 /* ok */ 131*dd0105a6SMichal Simek #define __NR_ipc 117 /* remove - direct call */ 132*dd0105a6SMichal Simek #define __NR_fsync 118 /* ok */ 133*dd0105a6SMichal Simek #define __NR_sigreturn 119 /* obsolete -> sys_rt_sigreturn */ 134*dd0105a6SMichal Simek #define __NR_clone 120 /* ok */ 135*dd0105a6SMichal Simek #define __NR_setdomainname 121 /* ok */ 136*dd0105a6SMichal Simek #define __NR_uname 122 /* remove */ 137*dd0105a6SMichal Simek #define __NR_modify_ldt 123 /* remove */ 138*dd0105a6SMichal Simek #define __NR_adjtimex 124 /* ok */ 139*dd0105a6SMichal Simek #define __NR_mprotect 125 /* remove */ 140*dd0105a6SMichal Simek #define __NR_sigprocmask 126 /* obsolete -> sys_rt_sigprocmask */ 141*dd0105a6SMichal Simek #define __NR_create_module 127 /* remove */ 142*dd0105a6SMichal Simek #define __NR_init_module 128 /* ok */ 143*dd0105a6SMichal Simek #define __NR_delete_module 129 /* ok */ 144*dd0105a6SMichal Simek #define __NR_get_kernel_syms 130 /* remove */ 145*dd0105a6SMichal Simek #define __NR_quotactl 131 /* ok */ 146*dd0105a6SMichal Simek #define __NR_getpgid 132 /* ok */ 147*dd0105a6SMichal Simek #define __NR_fchdir 133 /* ok */ 148*dd0105a6SMichal Simek #define __NR_bdflush 134 /* remove */ 149*dd0105a6SMichal Simek #define __NR_sysfs 135 /* needed for busybox */ 150*dd0105a6SMichal Simek #define __NR_personality 136 /* ok */ 151*dd0105a6SMichal Simek #define __NR_afs_syscall 137 /* Syscall for Andrew File System */ 152*dd0105a6SMichal Simek #define __NR_setfsuid 138 /* ok */ 153*dd0105a6SMichal Simek #define __NR_setfsgid 139 /* ok */ 154*dd0105a6SMichal Simek #define __NR__llseek 140 /* remove only lseek */ 155*dd0105a6SMichal Simek #define __NR_getdents 141 /* ok or getdents64 */ 156*dd0105a6SMichal Simek #define __NR__newselect 142 /* remove */ 157*dd0105a6SMichal Simek #define __NR_flock 143 /* ok */ 158*dd0105a6SMichal Simek #define __NR_msync 144 /* remove */ 159*dd0105a6SMichal Simek #define __NR_readv 145 /* ok */ 160*dd0105a6SMichal Simek #define __NR_writev 146 /* ok */ 161*dd0105a6SMichal Simek #define __NR_getsid 147 /* ok */ 162*dd0105a6SMichal Simek #define __NR_fdatasync 148 /* ok */ 163*dd0105a6SMichal Simek #define __NR__sysctl 149 /* remove */ 164*dd0105a6SMichal Simek #define __NR_mlock 150 /* ok - nommu or mmu */ 165*dd0105a6SMichal Simek #define __NR_munlock 151 /* ok - nommu or mmu */ 166*dd0105a6SMichal Simek #define __NR_mlockall 152 /* ok - nommu or mmu */ 167*dd0105a6SMichal Simek #define __NR_munlockall 153 /* ok - nommu or mmu */ 168*dd0105a6SMichal Simek #define __NR_sched_setparam 154 /* ok */ 169*dd0105a6SMichal Simek #define __NR_sched_getparam 155 /* ok */ 170*dd0105a6SMichal Simek #define __NR_sched_setscheduler 156 /* ok */ 171*dd0105a6SMichal Simek #define __NR_sched_getscheduler 157 /* ok */ 172*dd0105a6SMichal Simek #define __NR_sched_yield 158 /* ok */ 173*dd0105a6SMichal Simek #define __NR_sched_get_priority_max 159 /* ok */ 174*dd0105a6SMichal Simek #define __NR_sched_get_priority_min 160 /* ok */ 175*dd0105a6SMichal Simek #define __NR_sched_rr_get_interval 161 /* ok */ 176*dd0105a6SMichal Simek #define __NR_nanosleep 162 /* ok */ 177*dd0105a6SMichal Simek #define __NR_mremap 163 /* ok - nommu or mmu */ 178*dd0105a6SMichal Simek #define __NR_setresuid 164 /* ok */ 179*dd0105a6SMichal Simek #define __NR_getresuid 165 /* ok */ 180*dd0105a6SMichal Simek #define __NR_vm86 166 /* remove */ 181*dd0105a6SMichal Simek #define __NR_query_module 167 /* ok */ 182*dd0105a6SMichal Simek #define __NR_poll 168 /* obsolete -> sys_ppoll */ 183*dd0105a6SMichal Simek #define __NR_nfsservctl 169 /* ok */ 184*dd0105a6SMichal Simek #define __NR_setresgid 170 /* ok */ 185*dd0105a6SMichal Simek #define __NR_getresgid 171 /* ok */ 186*dd0105a6SMichal Simek #define __NR_prctl 172 /* ok */ 187*dd0105a6SMichal Simek #define __NR_rt_sigreturn 173 /* ok */ 188*dd0105a6SMichal Simek #define __NR_rt_sigaction 174 /* ok */ 189*dd0105a6SMichal Simek #define __NR_rt_sigprocmask 175 /* ok */ 190*dd0105a6SMichal Simek #define __NR_rt_sigpending 176 /* ok */ 191*dd0105a6SMichal Simek #define __NR_rt_sigtimedwait 177 /* ok */ 192*dd0105a6SMichal Simek #define __NR_rt_sigqueueinfo 178 /* ok */ 193*dd0105a6SMichal Simek #define __NR_rt_sigsuspend 179 /* ok */ 194*dd0105a6SMichal Simek #define __NR_pread64 180 /* ok */ 195*dd0105a6SMichal Simek #define __NR_pwrite64 181 /* ok */ 196*dd0105a6SMichal Simek #define __NR_chown 182 /* obsolete -> fchownat */ 197*dd0105a6SMichal Simek #define __NR_getcwd 183 /* ok */ 198*dd0105a6SMichal Simek #define __NR_capget 184 /* ok */ 199*dd0105a6SMichal Simek #define __NR_capset 185 /* ok */ 200*dd0105a6SMichal Simek #define __NR_sigaltstack 186 /* remove */ 201*dd0105a6SMichal Simek #define __NR_sendfile 187 /* ok -> exist 64bit version*/ 202*dd0105a6SMichal Simek #define __NR_getpmsg 188 /* remove */ 203*dd0105a6SMichal Simek /* remove - some people actually want streams */ 204*dd0105a6SMichal Simek #define __NR_putpmsg 189 205*dd0105a6SMichal Simek /* for noMMU - group with clone -> maybe remove */ 206*dd0105a6SMichal Simek #define __NR_vfork 190 207*dd0105a6SMichal Simek #define __NR_ugetrlimit 191 /* remove - SuS compliant getrlimit */ 208*dd0105a6SMichal Simek #define __NR_mmap2 192 /* ok */ 209*dd0105a6SMichal Simek #define __NR_truncate64 193 /* ok */ 210*dd0105a6SMichal Simek #define __NR_ftruncate64 194 /* ok */ 211*dd0105a6SMichal Simek #define __NR_stat64 195 /* remove _ARCH_WANT_STAT64 */ 212*dd0105a6SMichal Simek #define __NR_lstat64 196 /* remove _ARCH_WANT_STAT64 */ 213*dd0105a6SMichal Simek #define __NR_fstat64 197 /* remove _ARCH_WANT_STAT64 */ 214*dd0105a6SMichal Simek #define __NR_lchown32 198 /* ok - without 32 */ 215*dd0105a6SMichal Simek #define __NR_getuid32 199 /* ok - without 32 */ 216*dd0105a6SMichal Simek #define __NR_getgid32 200 /* ok - without 32 */ 217*dd0105a6SMichal Simek #define __NR_geteuid32 201 /* ok - without 32 */ 218*dd0105a6SMichal Simek #define __NR_getegid32 202 /* ok - without 32 */ 219*dd0105a6SMichal Simek #define __NR_setreuid32 203 /* ok - without 32 */ 220*dd0105a6SMichal Simek #define __NR_setregid32 204 /* ok - without 32 */ 221*dd0105a6SMichal Simek #define __NR_getgroups32 205 /* ok - without 32 */ 222*dd0105a6SMichal Simek #define __NR_setgroups32 206 /* ok - without 32 */ 223*dd0105a6SMichal Simek #define __NR_fchown32 207 /* ok - without 32 */ 224*dd0105a6SMichal Simek #define __NR_setresuid32 208 /* ok - without 32 */ 225*dd0105a6SMichal Simek #define __NR_getresuid32 209 /* ok - without 32 */ 226*dd0105a6SMichal Simek #define __NR_setresgid32 210 /* ok - without 32 */ 227*dd0105a6SMichal Simek #define __NR_getresgid32 211 /* ok - without 32 */ 228*dd0105a6SMichal Simek #define __NR_chown32 212 /* ok - without 32 -obsolete -> fchownat */ 229*dd0105a6SMichal Simek #define __NR_setuid32 213 /* ok - without 32 */ 230*dd0105a6SMichal Simek #define __NR_setgid32 214 /* ok - without 32 */ 231*dd0105a6SMichal Simek #define __NR_setfsuid32 215 /* ok - without 32 */ 232*dd0105a6SMichal Simek #define __NR_setfsgid32 216 /* ok - without 32 */ 233*dd0105a6SMichal Simek #define __NR_pivot_root 217 /* ok */ 234*dd0105a6SMichal Simek #define __NR_mincore 218 /* ok */ 235*dd0105a6SMichal Simek #define __NR_madvise 219 /* ok */ 236*dd0105a6SMichal Simek #define __NR_getdents64 220 /* ok */ 237*dd0105a6SMichal Simek #define __NR_fcntl64 221 /* ok */ 238*dd0105a6SMichal Simek /* 223 is unused */ 239*dd0105a6SMichal Simek #define __NR_gettid 224 /* ok */ 240*dd0105a6SMichal Simek #define __NR_readahead 225 /* ok */ 241*dd0105a6SMichal Simek #define __NR_setxattr 226 /* ok */ 242*dd0105a6SMichal Simek #define __NR_lsetxattr 227 /* ok */ 243*dd0105a6SMichal Simek #define __NR_fsetxattr 228 /* ok */ 244*dd0105a6SMichal Simek #define __NR_getxattr 229 /* ok */ 245*dd0105a6SMichal Simek #define __NR_lgetxattr 230 /* ok */ 246*dd0105a6SMichal Simek #define __NR_fgetxattr 231 /* ok */ 247*dd0105a6SMichal Simek #define __NR_listxattr 232 /* ok */ 248*dd0105a6SMichal Simek #define __NR_llistxattr 233 /* ok */ 249*dd0105a6SMichal Simek #define __NR_flistxattr 234 /* ok */ 250*dd0105a6SMichal Simek #define __NR_removexattr 235 /* ok */ 251*dd0105a6SMichal Simek #define __NR_lremovexattr 236 /* ok */ 252*dd0105a6SMichal Simek #define __NR_fremovexattr 237 /* ok */ 253*dd0105a6SMichal Simek #define __NR_tkill 238 /* ok */ 254*dd0105a6SMichal Simek #define __NR_sendfile64 239 /* ok */ 255*dd0105a6SMichal Simek #define __NR_futex 240 /* ok */ 256*dd0105a6SMichal Simek #define __NR_sched_setaffinity 241 /* ok */ 257*dd0105a6SMichal Simek #define __NR_sched_getaffinity 242 /* ok */ 258*dd0105a6SMichal Simek #define __NR_set_thread_area 243 /* remove */ 259*dd0105a6SMichal Simek #define __NR_get_thread_area 244 /* remove */ 260*dd0105a6SMichal Simek #define __NR_io_setup 245 /* ok */ 261*dd0105a6SMichal Simek #define __NR_io_destroy 246 /* ok */ 262*dd0105a6SMichal Simek #define __NR_io_getevents 247 /* ok */ 263*dd0105a6SMichal Simek #define __NR_io_submit 248 /* ok */ 264*dd0105a6SMichal Simek #define __NR_io_cancel 249 /* ok */ 265*dd0105a6SMichal Simek #define __NR_fadvise64 250 /* remove -> sys_fadvise64_64 */ 266*dd0105a6SMichal Simek /* 251 is available for reuse (was briefly sys_set_zone_reclaim) */ 267*dd0105a6SMichal Simek #define __NR_exit_group 252 /* ok */ 268*dd0105a6SMichal Simek #define __NR_lookup_dcookie 253 /* ok */ 269*dd0105a6SMichal Simek #define __NR_epoll_create 254 /* ok */ 270*dd0105a6SMichal Simek #define __NR_epoll_ctl 255 /* ok */ 271*dd0105a6SMichal Simek #define __NR_epoll_wait 256 /* obsolete -> sys_epoll_pwait */ 272*dd0105a6SMichal Simek #define __NR_remap_file_pages 257 /* only for mmu */ 273*dd0105a6SMichal Simek #define __NR_set_tid_address 258 /* ok */ 274*dd0105a6SMichal Simek #define __NR_timer_create 259 /* ok */ 275*dd0105a6SMichal Simek #define __NR_timer_settime (__NR_timer_create+1) /* 260 */ /* ok */ 276*dd0105a6SMichal Simek #define __NR_timer_gettime (__NR_timer_create+2) /* 261 */ /* ok */ 277*dd0105a6SMichal Simek #define __NR_timer_getoverrun (__NR_timer_create+3) /* 262 */ /* ok */ 278*dd0105a6SMichal Simek #define __NR_timer_delete (__NR_timer_create+4) /* 263 */ /* ok */ 279*dd0105a6SMichal Simek #define __NR_clock_settime (__NR_timer_create+5) /* 264 */ /* ok */ 280*dd0105a6SMichal Simek #define __NR_clock_gettime (__NR_timer_create+6) /* 265 */ /* ok */ 281*dd0105a6SMichal Simek #define __NR_clock_getres (__NR_timer_create+7) /* 266 */ /* ok */ 282*dd0105a6SMichal Simek #define __NR_clock_nanosleep (__NR_timer_create+8) /* 267 */ /* ok */ 283*dd0105a6SMichal Simek #define __NR_statfs64 268 /* ok */ 284*dd0105a6SMichal Simek #define __NR_fstatfs64 269 /* ok */ 285*dd0105a6SMichal Simek #define __NR_tgkill 270 /* ok */ 286*dd0105a6SMichal Simek #define __NR_utimes 271 /* obsolete -> sys_futimesat */ 287*dd0105a6SMichal Simek #define __NR_fadvise64_64 272 /* ok */ 288*dd0105a6SMichal Simek #define __NR_vserver 273 /* ok */ 289*dd0105a6SMichal Simek #define __NR_mbind 274 /* only for mmu */ 290*dd0105a6SMichal Simek #define __NR_get_mempolicy 275 /* only for mmu */ 291*dd0105a6SMichal Simek #define __NR_set_mempolicy 276 /* only for mmu */ 292*dd0105a6SMichal Simek #define __NR_mq_open 277 /* ok */ 293*dd0105a6SMichal Simek #define __NR_mq_unlink (__NR_mq_open+1) /* 278 */ /* ok */ 294*dd0105a6SMichal Simek #define __NR_mq_timedsend (__NR_mq_open+2) /* 279 */ /* ok */ 295*dd0105a6SMichal Simek #define __NR_mq_timedreceive (__NR_mq_open+3) /* 280 */ /* ok */ 296*dd0105a6SMichal Simek #define __NR_mq_notify (__NR_mq_open+4) /* 281 */ /* ok */ 297*dd0105a6SMichal Simek #define __NR_mq_getsetattr (__NR_mq_open+5) /* 282 */ /* ok */ 298*dd0105a6SMichal Simek #define __NR_kexec_load 283 /* ok */ 299*dd0105a6SMichal Simek #define __NR_waitid 284 /* ok */ 300*dd0105a6SMichal Simek /* #define __NR_sys_setaltroot 285 */ 301*dd0105a6SMichal Simek #define __NR_add_key 286 /* ok */ 302*dd0105a6SMichal Simek #define __NR_request_key 287 /* ok */ 303*dd0105a6SMichal Simek #define __NR_keyctl 288 /* ok */ 304*dd0105a6SMichal Simek #define __NR_ioprio_set 289 /* ok */ 305*dd0105a6SMichal Simek #define __NR_ioprio_get 290 /* ok */ 306*dd0105a6SMichal Simek #define __NR_inotify_init 291 /* ok */ 307*dd0105a6SMichal Simek #define __NR_inotify_add_watch 292 /* ok */ 308*dd0105a6SMichal Simek #define __NR_inotify_rm_watch 293 /* ok */ 309*dd0105a6SMichal Simek #define __NR_migrate_pages 294 /* mmu */ 310*dd0105a6SMichal Simek #define __NR_openat 295 /* ok */ 311*dd0105a6SMichal Simek #define __NR_mkdirat 296 /* ok */ 312*dd0105a6SMichal Simek #define __NR_mknodat 297 /* ok */ 313*dd0105a6SMichal Simek #define __NR_fchownat 298 /* ok */ 314*dd0105a6SMichal Simek #define __NR_futimesat 299 /* obsolete -> sys_utimesat */ 315*dd0105a6SMichal Simek #define __NR_fstatat64 300 /* stat64 */ 316*dd0105a6SMichal Simek #define __NR_unlinkat 301 /* ok */ 317*dd0105a6SMichal Simek #define __NR_renameat 302 /* ok */ 318*dd0105a6SMichal Simek #define __NR_linkat 303 /* ok */ 319*dd0105a6SMichal Simek #define __NR_symlinkat 304 /* ok */ 320*dd0105a6SMichal Simek #define __NR_readlinkat 305 /* ok */ 321*dd0105a6SMichal Simek #define __NR_fchmodat 306 /* ok */ 322*dd0105a6SMichal Simek #define __NR_faccessat 307 /* ok */ 323*dd0105a6SMichal Simek #define __NR_pselect6 308 /* obsolete -> sys_pselect7 */ 324*dd0105a6SMichal Simek #define __NR_ppoll 309 /* ok */ 325*dd0105a6SMichal Simek #define __NR_unshare 310 /* ok */ 326*dd0105a6SMichal Simek #define __NR_set_robust_list 311 /* ok */ 327*dd0105a6SMichal Simek #define __NR_get_robust_list 312 /* ok */ 328*dd0105a6SMichal Simek #define __NR_splice 313 /* ok */ 329*dd0105a6SMichal Simek #define __NR_sync_file_range 314 /* ok */ 330*dd0105a6SMichal Simek #define __NR_tee 315 /* ok */ 331*dd0105a6SMichal Simek #define __NR_vmsplice 316 /* ok */ 332*dd0105a6SMichal Simek #define __NR_move_pages 317 /* mmu */ 333*dd0105a6SMichal Simek #define __NR_getcpu 318 /* ok */ 334*dd0105a6SMichal Simek #define __NR_epoll_pwait 319 /* ok */ 335*dd0105a6SMichal Simek #define __NR_utimensat 320 /* ok */ 336*dd0105a6SMichal Simek #define __NR_signalfd 321 /* ok */ 337*dd0105a6SMichal Simek #define __NR_timerfd_create 322 /* ok */ 338*dd0105a6SMichal Simek #define __NR_eventfd 323 /* ok */ 339*dd0105a6SMichal Simek #define __NR_fallocate 324 /* ok */ 340*dd0105a6SMichal Simek #define __NR_semtimedop 325 /* ok - semaphore group */ 341*dd0105a6SMichal Simek #define __NR_timerfd_settime 326 /* ok */ 342*dd0105a6SMichal Simek #define __NR_timerfd_gettime 327 /* ok */ 343*dd0105a6SMichal Simek /* sysv ipc syscalls */ 344*dd0105a6SMichal Simek #define __NR_semctl 328 /* ok */ 345*dd0105a6SMichal Simek #define __NR_semget 329 /* ok */ 346*dd0105a6SMichal Simek #define __NR_semop 330 /* ok */ 347*dd0105a6SMichal Simek #define __NR_msgctl 331 /* ok */ 348*dd0105a6SMichal Simek #define __NR_msgget 332 /* ok */ 349*dd0105a6SMichal Simek #define __NR_msgrcv 333 /* ok */ 350*dd0105a6SMichal Simek #define __NR_msgsnd 334 /* ok */ 351*dd0105a6SMichal Simek #define __NR_shmat 335 /* ok */ 352*dd0105a6SMichal Simek #define __NR_shmctl 336 /* ok */ 353*dd0105a6SMichal Simek #define __NR_shmdt 337 /* ok */ 354*dd0105a6SMichal Simek #define __NR_shmget 338 /* ok */ 355*dd0105a6SMichal Simek 356*dd0105a6SMichal Simek 357*dd0105a6SMichal Simek #define __NR_signalfd4 339 /* new */ 358*dd0105a6SMichal Simek #define __NR_eventfd2 340 /* new */ 359*dd0105a6SMichal Simek #define __NR_epoll_create1 341 /* new */ 360*dd0105a6SMichal Simek #define __NR_dup3 342 /* new */ 361*dd0105a6SMichal Simek #define __NR_pipe2 343 /* new */ 362*dd0105a6SMichal Simek #define __NR_inotify_init1 344 /* new */ 363*dd0105a6SMichal Simek #define __NR_socket 345 /* new */ 364*dd0105a6SMichal Simek #define __NR_socketpair 346 /* new */ 365*dd0105a6SMichal Simek #define __NR_bind 347 /* new */ 366*dd0105a6SMichal Simek #define __NR_listen 348 /* new */ 367*dd0105a6SMichal Simek #define __NR_accept 349 /* new */ 368*dd0105a6SMichal Simek #define __NR_connect 350 /* new */ 369*dd0105a6SMichal Simek #define __NR_getsockname 351 /* new */ 370*dd0105a6SMichal Simek #define __NR_getpeername 352 /* new */ 371*dd0105a6SMichal Simek #define __NR_sendto 353 /* new */ 372*dd0105a6SMichal Simek #define __NR_send 354 /* new */ 373*dd0105a6SMichal Simek #define __NR_recvfrom 355 /* new */ 374*dd0105a6SMichal Simek #define __NR_recv 356 /* new */ 375*dd0105a6SMichal Simek #define __NR_setsockopt 357 /* new */ 376*dd0105a6SMichal Simek #define __NR_getsockopt 358 /* new */ 377*dd0105a6SMichal Simek #define __NR_shutdown 359 /* new */ 378*dd0105a6SMichal Simek #define __NR_sendmsg 360 /* new */ 379*dd0105a6SMichal Simek #define __NR_recvmsg 361 /* new */ 380*dd0105a6SMichal Simek #define __NR_accept04 362 /* new */ 381*dd0105a6SMichal Simek 382*dd0105a6SMichal Simek #define __NR_syscalls 363 383*dd0105a6SMichal Simek 384*dd0105a6SMichal Simek #ifdef __KERNEL__ 385*dd0105a6SMichal Simek #ifndef __ASSEMBLY__ 386*dd0105a6SMichal Simek 387*dd0105a6SMichal Simek #define __ARCH_WANT_IPC_PARSE_VERSION 388*dd0105a6SMichal Simek /* #define __ARCH_WANT_OLD_READDIR */ 389*dd0105a6SMichal Simek /* #define __ARCH_WANT_OLD_STAT */ 390*dd0105a6SMichal Simek #define __ARCH_WANT_STAT64 391*dd0105a6SMichal Simek #define __ARCH_WANT_SYS_ALARM 392*dd0105a6SMichal Simek #define __ARCH_WANT_SYS_GETHOSTNAME 393*dd0105a6SMichal Simek #define __ARCH_WANT_SYS_PAUSE 394*dd0105a6SMichal Simek #define __ARCH_WANT_SYS_SGETMASK 395*dd0105a6SMichal Simek #define __ARCH_WANT_SYS_SIGNAL 396*dd0105a6SMichal Simek #define __ARCH_WANT_SYS_TIME 397*dd0105a6SMichal Simek #define __ARCH_WANT_SYS_UTIME 398*dd0105a6SMichal Simek #define __ARCH_WANT_SYS_WAITPID 399*dd0105a6SMichal Simek #define __ARCH_WANT_SYS_SOCKETCALL 400*dd0105a6SMichal Simek #define __ARCH_WANT_SYS_FADVISE64 401*dd0105a6SMichal Simek #define __ARCH_WANT_SYS_GETPGRP 402*dd0105a6SMichal Simek #define __ARCH_WANT_SYS_LLSEEK 403*dd0105a6SMichal Simek #define __ARCH_WANT_SYS_NICE 404*dd0105a6SMichal Simek /* #define __ARCH_WANT_SYS_OLD_GETRLIMIT */ 405*dd0105a6SMichal Simek #define __ARCH_WANT_SYS_OLDUMOUNT 406*dd0105a6SMichal Simek #define __ARCH_WANT_SYS_SIGPENDING 407*dd0105a6SMichal Simek #define __ARCH_WANT_SYS_SIGPROCMASK 408*dd0105a6SMichal Simek #define __ARCH_WANT_SYS_RT_SIGACTION 409*dd0105a6SMichal Simek /* #define __ARCH_WANT_SYS_RT_SIGSUSPEND */ 410*dd0105a6SMichal Simek 411*dd0105a6SMichal Simek /* 412*dd0105a6SMichal Simek * "Conditional" syscalls 413*dd0105a6SMichal Simek * 414*dd0105a6SMichal Simek * What we want is __attribute__((weak,alias("sys_ni_syscall"))), 415*dd0105a6SMichal Simek * but it doesn't work on all toolchains, so we just do it by hand 416*dd0105a6SMichal Simek */ 417*dd0105a6SMichal Simek #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall"); 418*dd0105a6SMichal Simek 419*dd0105a6SMichal Simek #endif /* __ASSEMBLY__ */ 420*dd0105a6SMichal Simek #endif /* __KERNEL__ */ 421*dd0105a6SMichal Simek #endif /* _ASM_MICROBLAZE_UNISTD_H */ 422