1 /* $OpenBSD: ibcs2_syscall.h,v 1.9 2004/07/09 23:55:31 millert Exp $ */ 2 3 /* 4 * System call numbers. 5 * 6 * DO NOT EDIT-- this file is automatically generated. 7 * created from OpenBSD: syscalls.master,v 1.8 2002/03/14 03:16:03 millert Exp 8 */ 9 10 /* syscall: "syscall" ret: "int" args: */ 11 #define IBCS2_SYS_syscall 0 12 13 /* syscall: "exit" ret: "int" args: "int" */ 14 #define IBCS2_SYS_exit 1 15 16 /* syscall: "fork" ret: "int" args: */ 17 #define IBCS2_SYS_fork 2 18 19 /* syscall: "read" ret: "int" args: "int" "char *" "u_int" */ 20 #define IBCS2_SYS_read 3 21 22 /* syscall: "write" ret: "int" args: "int" "char *" "u_int" */ 23 #define IBCS2_SYS_write 4 24 25 /* syscall: "open" ret: "int" args: "char *" "int" "int" */ 26 #define IBCS2_SYS_open 5 27 28 /* syscall: "close" ret: "int" args: "int" */ 29 #define IBCS2_SYS_close 6 30 31 /* syscall: "waitsys" ret: "int" args: "int" "int" "int" */ 32 #define IBCS2_SYS_waitsys 7 33 34 /* syscall: "creat" ret: "int" args: "char *" "int" */ 35 #define IBCS2_SYS_creat 8 36 37 /* syscall: "link" ret: "int" args: "char *" "char *" */ 38 #define IBCS2_SYS_link 9 39 40 /* syscall: "unlink" ret: "int" args: "char *" */ 41 #define IBCS2_SYS_unlink 10 42 43 /* syscall: "execv" ret: "int" args: "char *" "char **" */ 44 #define IBCS2_SYS_execv 11 45 46 /* syscall: "chdir" ret: "int" args: "char *" */ 47 #define IBCS2_SYS_chdir 12 48 49 /* syscall: "time" ret: "int" args: "ibcs2_time_t *" */ 50 #define IBCS2_SYS_time 13 51 52 /* syscall: "mknod" ret: "int" args: "char *" "int" "int" */ 53 #define IBCS2_SYS_mknod 14 54 55 /* syscall: "chmod" ret: "int" args: "char *" "int" */ 56 #define IBCS2_SYS_chmod 15 57 58 /* syscall: "chown" ret: "int" args: "char *" "int" "int" */ 59 #define IBCS2_SYS_chown 16 60 61 /* syscall: "obreak" ret: "int" args: "caddr_t" */ 62 #define IBCS2_SYS_obreak 17 63 64 /* syscall: "stat" ret: "int" args: "char *" "struct ibcs2_stat *" */ 65 #define IBCS2_SYS_stat 18 66 67 /* syscall: "lseek" ret: "long" args: "int" "long" "int" */ 68 #define IBCS2_SYS_lseek 19 69 70 /* syscall: "getpid" ret: "pid_t" args: */ 71 #define IBCS2_SYS_getpid 20 72 73 /* syscall: "mount" ret: "int" args: "char *" "char *" "int" "int" "char *" "int" */ 74 #define IBCS2_SYS_mount 21 75 76 /* syscall: "umount" ret: "int" args: "char *" */ 77 #define IBCS2_SYS_umount 22 78 79 /* syscall: "setuid" ret: "int" args: "int" */ 80 #define IBCS2_SYS_setuid 23 81 82 /* syscall: "getuid" ret: "uid_t" args: */ 83 #define IBCS2_SYS_getuid 24 84 85 /* syscall: "stime" ret: "int" args: "long *" */ 86 #define IBCS2_SYS_stime 25 87 88 /* syscall: "alarm" ret: "int" args: "unsigned" */ 89 #define IBCS2_SYS_alarm 27 90 91 /* syscall: "fstat" ret: "int" args: "int" "struct ibcs2_stat *" */ 92 #define IBCS2_SYS_fstat 28 93 94 /* syscall: "pause" ret: "int" args: */ 95 #define IBCS2_SYS_pause 29 96 97 /* syscall: "utime" ret: "int" args: "char *" "struct ibcs2_utimbuf *" */ 98 #define IBCS2_SYS_utime 30 99 100 /* syscall: "access" ret: "int" args: "char *" "int" */ 101 #define IBCS2_SYS_access 33 102 103 /* syscall: "nice" ret: "int" args: "int" */ 104 #define IBCS2_SYS_nice 34 105 106 /* syscall: "statfs" ret: "int" args: "char *" "struct ibcs2_statfs *" "int" "int" */ 107 #define IBCS2_SYS_statfs 35 108 109 /* syscall: "sync" ret: "int" args: */ 110 #define IBCS2_SYS_sync 36 111 112 /* syscall: "kill" ret: "int" args: "int" "int" */ 113 #define IBCS2_SYS_kill 37 114 115 /* syscall: "fstatfs" ret: "int" args: "int" "struct ibcs2_statfs *" "int" "int" */ 116 #define IBCS2_SYS_fstatfs 38 117 118 /* syscall: "pgrpsys" ret: "int" args: "int" "caddr_t" "int" "int" */ 119 #define IBCS2_SYS_pgrpsys 39 120 121 /* syscall: "dup" ret: "int" args: "u_int" */ 122 #define IBCS2_SYS_dup 41 123 124 /* syscall: "opipe" ret: "int" args: */ 125 #define IBCS2_SYS_opipe 42 126 127 /* syscall: "times" ret: "int" args: "struct tms *" */ 128 #define IBCS2_SYS_times 43 129 130 /* syscall: "plock" ret: "int" args: "int" */ 131 #define IBCS2_SYS_plock 45 132 133 /* syscall: "setgid" ret: "int" args: "int" */ 134 #define IBCS2_SYS_setgid 46 135 136 /* syscall: "getgid" ret: "gid_t" args: */ 137 #define IBCS2_SYS_getgid 47 138 139 /* syscall: "sigsys" ret: "int" args: "int" "ibcs2_sig_t" */ 140 #define IBCS2_SYS_sigsys 48 141 142 /* syscall: "msgsys" ret: "int" args: "int" "int" "int" "int" "int" "int" */ 143 #define IBCS2_SYS_msgsys 49 144 145 /* syscall: "sysi86" ret: "int" args: "int" "int" */ 146 #define IBCS2_SYS_sysi86 50 147 148 /* syscall: "shmsys" ret: "int" args: "int" "int" "int" "int" */ 149 #define IBCS2_SYS_shmsys 52 150 151 /* syscall: "semsys" ret: "int" args: "int" "int" "int" "int" "int" */ 152 #define IBCS2_SYS_semsys 53 153 154 /* syscall: "ioctl" ret: "int" args: "int" "int" "caddr_t" */ 155 #define IBCS2_SYS_ioctl 54 156 157 /* syscall: "uadmin" ret: "int" args: "int" "int" "caddr_t" */ 158 #define IBCS2_SYS_uadmin 55 159 160 /* syscall: "utssys" ret: "int" args: "int" "int" "int" */ 161 #define IBCS2_SYS_utssys 57 162 163 /* syscall: "execve" ret: "int" args: "char *" "char **" "char **" */ 164 #define IBCS2_SYS_execve 59 165 166 /* syscall: "umask" ret: "int" args: "int" */ 167 #define IBCS2_SYS_umask 60 168 169 /* syscall: "chroot" ret: "int" args: "char *" */ 170 #define IBCS2_SYS_chroot 61 171 172 /* syscall: "fcntl" ret: "int" args: "int" "int" "char *" */ 173 #define IBCS2_SYS_fcntl 62 174 175 /* syscall: "ulimit" ret: "long" args: "int" "int" */ 176 #define IBCS2_SYS_ulimit 63 177 178 /* 70 is obsolete rfs_advfs */ 179 /* 71 is obsolete rfs_unadvfs */ 180 /* 72 is obsolete rfs_rmount */ 181 /* 73 is obsolete rfs_rumount */ 182 /* 74 is obsolete rfs_rfstart */ 183 /* 75 is obsolete rfs_sigret */ 184 /* 76 is obsolete rfs_rdebug */ 185 /* 77 is obsolete rfs_rfstop */ 186 /* syscall: "rmdir" ret: "int" args: "char *" */ 187 #define IBCS2_SYS_rmdir 79 188 189 /* syscall: "mkdir" ret: "int" args: "char *" "int" */ 190 #define IBCS2_SYS_mkdir 80 191 192 /* syscall: "getdents" ret: "int" args: "int" "char *" "int" */ 193 #define IBCS2_SYS_getdents 81 194 195 /* syscall: "sysfs" ret: "int" args: "int" "caddr_t" "char *" */ 196 #define IBCS2_SYS_sysfs 84 197 198 /* syscall: "getmsg" ret: "int" args: "int" "struct ibcs2_stropts *" "struct ibcs2_stropts *" "int *" */ 199 #define IBCS2_SYS_getmsg 85 200 201 /* syscall: "putmsg" ret: "int" args: "int" "struct ibcs2_stropts *" "struct ibcs2_stropts *" "int" */ 202 #define IBCS2_SYS_putmsg 86 203 204 /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_long" "int" */ 205 #define IBCS2_SYS_poll 87 206 207 /* syscall: "symlink" ret: "int" args: "char *" "char *" */ 208 #define IBCS2_SYS_symlink 90 209 210 /* syscall: "lstat" ret: "int" args: "char *" "struct ibcs2_stat *" */ 211 #define IBCS2_SYS_lstat 91 212 213 /* syscall: "readlink" ret: "int" args: "char *" "char *" "int" */ 214 #define IBCS2_SYS_readlink 92 215 216 /* syscall: "sigreturn" ret: "int" args: "struct sigcontext *" */ 217 #define IBCS2_SYS_sigreturn 103 218 219 /* syscall: "rdchk" ret: "int" args: "int" */ 220 #define IBCS2_SYS_rdchk 135 221 222 /* syscall: "chsize" ret: "int" args: "int" "long" */ 223 #define IBCS2_SYS_chsize 138 224 225 /* syscall: "ftime" ret: "int" args: "struct xenix_timeb *" */ 226 #define IBCS2_SYS_ftime 139 227 228 /* syscall: "nap" ret: "int" args: "int" */ 229 #define IBCS2_SYS_nap 140 230 231 /* syscall: "select" ret: "int" args: "u_int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */ 232 #define IBCS2_SYS_select 164 233 234 /* syscall: "eaccess" ret: "int" args: "char *" "int" */ 235 #define IBCS2_SYS_eaccess 165 236 237 /* syscall: "sigaction" ret: "int" args: "int" "struct ibcs2_sigaction *" "struct ibcs2_sigaction *" */ 238 #define IBCS2_SYS_sigaction 167 239 240 /* syscall: "sigprocmask" ret: "int" args: "int" "ibcs2_sigset_t *" "ibcs2_sigset_t *" */ 241 #define IBCS2_SYS_sigprocmask 168 242 243 /* syscall: "sigpending" ret: "int" args: "ibcs2_sigset_t *" */ 244 #define IBCS2_SYS_sigpending 169 245 246 /* syscall: "sigsuspend" ret: "int" args: "ibcs2_sigset_t *" */ 247 #define IBCS2_SYS_sigsuspend 170 248 249 /* syscall: "getgroups" ret: "int" args: "int" "ibcs2_gid_t *" */ 250 #define IBCS2_SYS_getgroups 171 251 252 /* syscall: "setgroups" ret: "int" args: "int" "ibcs2_gid_t *" */ 253 #define IBCS2_SYS_setgroups 172 254 255 /* syscall: "sysconf" ret: "int" args: "int" */ 256 #define IBCS2_SYS_sysconf 173 257 258 /* syscall: "pathconf" ret: "int" args: "char *" "int" */ 259 #define IBCS2_SYS_pathconf 174 260 261 /* syscall: "fpathconf" ret: "int" args: "int" "int" */ 262 #define IBCS2_SYS_fpathconf 175 263 264 /* syscall: "rename" ret: "int" args: "char *" "char *" */ 265 #define IBCS2_SYS_rename 176 266 267 #define IBCS2_SYS_MAXSYSCALL 177