1 1.17 thorpej /* $NetBSD: freebsd_syscall.h,v 1.17 1998/01/09 06:10:55 thorpej Exp $ */ 2 1.17 thorpej 3 1.1 mycroft /* 4 1.1 mycroft * System call numbers. 5 1.1 mycroft * 6 1.1 mycroft * DO NOT EDIT-- this file is automatically generated. 7 1.14 veego * created from NetBSD: syscalls.master,v 1.13 1997/11/30 18:06:39 veego Exp 8 1.1 mycroft */ 9 1.1 mycroft 10 1.6 thorpej /* syscall: "syscall" ret: "int" args: */ 11 1.1 mycroft #define FREEBSD_SYS_syscall 0 12 1.6 thorpej 13 1.6 thorpej /* syscall: "exit" ret: "int" args: "int" */ 14 1.1 mycroft #define FREEBSD_SYS_exit 1 15 1.6 thorpej 16 1.6 thorpej /* syscall: "fork" ret: "int" args: */ 17 1.1 mycroft #define FREEBSD_SYS_fork 2 18 1.6 thorpej 19 1.6 thorpej /* syscall: "read" ret: "int" args: "int" "char *" "u_int" */ 20 1.1 mycroft #define FREEBSD_SYS_read 3 21 1.6 thorpej 22 1.6 thorpej /* syscall: "write" ret: "int" args: "int" "char *" "u_int" */ 23 1.1 mycroft #define FREEBSD_SYS_write 4 24 1.6 thorpej 25 1.6 thorpej /* syscall: "open" ret: "int" args: "char *" "int" "int" */ 26 1.1 mycroft #define FREEBSD_SYS_open 5 27 1.6 thorpej 28 1.6 thorpej /* syscall: "close" ret: "int" args: "int" */ 29 1.1 mycroft #define FREEBSD_SYS_close 6 30 1.6 thorpej 31 1.6 thorpej /* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage *" */ 32 1.1 mycroft #define FREEBSD_SYS_wait4 7 33 1.6 thorpej 34 1.6 thorpej /* syscall: "ocreat" ret: "int" args: "char *" "int" */ 35 1.1 mycroft #define FREEBSD_SYS_ocreat 8 36 1.6 thorpej 37 1.6 thorpej /* syscall: "link" ret: "int" args: "char *" "char *" */ 38 1.1 mycroft #define FREEBSD_SYS_link 9 39 1.6 thorpej 40 1.6 thorpej /* syscall: "unlink" ret: "int" args: "char *" */ 41 1.1 mycroft #define FREEBSD_SYS_unlink 10 42 1.6 thorpej 43 1.1 mycroft /* 11 is obsolete execv */ 44 1.6 thorpej /* syscall: "chdir" ret: "int" args: "char *" */ 45 1.1 mycroft #define FREEBSD_SYS_chdir 12 46 1.6 thorpej 47 1.6 thorpej /* syscall: "fchdir" ret: "int" args: "int" */ 48 1.1 mycroft #define FREEBSD_SYS_fchdir 13 49 1.6 thorpej 50 1.6 thorpej /* syscall: "mknod" ret: "int" args: "char *" "int" "int" */ 51 1.1 mycroft #define FREEBSD_SYS_mknod 14 52 1.6 thorpej 53 1.6 thorpej /* syscall: "chmod" ret: "int" args: "char *" "int" */ 54 1.1 mycroft #define FREEBSD_SYS_chmod 15 55 1.6 thorpej 56 1.6 thorpej /* syscall: "chown" ret: "int" args: "char *" "int" "int" */ 57 1.1 mycroft #define FREEBSD_SYS_chown 16 58 1.6 thorpej 59 1.6 thorpej /* syscall: "break" ret: "int" args: "char *" */ 60 1.1 mycroft #define FREEBSD_SYS_break 17 61 1.6 thorpej 62 1.6 thorpej /* syscall: "getfsstat" ret: "int" args: "struct statfs *" "long" "int" */ 63 1.1 mycroft #define FREEBSD_SYS_getfsstat 18 64 1.6 thorpej 65 1.6 thorpej /* syscall: "olseek" ret: "long" args: "int" "long" "int" */ 66 1.1 mycroft #define FREEBSD_SYS_olseek 19 67 1.6 thorpej 68 1.6 thorpej /* syscall: "getpid" ret: "pid_t" args: */ 69 1.1 mycroft #define FREEBSD_SYS_getpid 20 70 1.6 thorpej 71 1.6 thorpej /* syscall: "mount" ret: "int" args: "int" "char *" "int" "caddr_t" */ 72 1.1 mycroft #define FREEBSD_SYS_mount 21 73 1.6 thorpej 74 1.6 thorpej /* syscall: "unmount" ret: "int" args: "char *" "int" */ 75 1.1 mycroft #define FREEBSD_SYS_unmount 22 76 1.6 thorpej 77 1.6 thorpej /* syscall: "setuid" ret: "int" args: "uid_t" */ 78 1.1 mycroft #define FREEBSD_SYS_setuid 23 79 1.6 thorpej 80 1.6 thorpej /* syscall: "getuid" ret: "uid_t" args: */ 81 1.1 mycroft #define FREEBSD_SYS_getuid 24 82 1.6 thorpej 83 1.6 thorpej /* syscall: "geteuid" ret: "uid_t" args: */ 84 1.1 mycroft #define FREEBSD_SYS_geteuid 25 85 1.6 thorpej 86 1.6 thorpej /* syscall: "ptrace" ret: "int" args: "int" "pid_t" "caddr_t" "int" */ 87 1.1 mycroft #define FREEBSD_SYS_ptrace 26 88 1.6 thorpej 89 1.6 thorpej /* syscall: "recvmsg" ret: "int" args: "int" "struct msghdr *" "int" */ 90 1.1 mycroft #define FREEBSD_SYS_recvmsg 27 91 1.6 thorpej 92 1.6 thorpej /* syscall: "sendmsg" ret: "int" args: "int" "caddr_t" "int" */ 93 1.1 mycroft #define FREEBSD_SYS_sendmsg 28 94 1.6 thorpej 95 1.6 thorpej /* syscall: "recvfrom" ret: "int" args: "int" "caddr_t" "size_t" "int" "caddr_t" "int *" */ 96 1.1 mycroft #define FREEBSD_SYS_recvfrom 29 97 1.6 thorpej 98 1.6 thorpej /* syscall: "accept" ret: "int" args: "int" "caddr_t" "int *" */ 99 1.1 mycroft #define FREEBSD_SYS_accept 30 100 1.6 thorpej 101 1.6 thorpej /* syscall: "getpeername" ret: "int" args: "int" "caddr_t" "int *" */ 102 1.1 mycroft #define FREEBSD_SYS_getpeername 31 103 1.6 thorpej 104 1.6 thorpej /* syscall: "getsockname" ret: "int" args: "int" "caddr_t" "int *" */ 105 1.1 mycroft #define FREEBSD_SYS_getsockname 32 106 1.6 thorpej 107 1.6 thorpej /* syscall: "access" ret: "int" args: "char *" "int" */ 108 1.1 mycroft #define FREEBSD_SYS_access 33 109 1.6 thorpej 110 1.6 thorpej /* syscall: "chflags" ret: "int" args: "char *" "int" */ 111 1.1 mycroft #define FREEBSD_SYS_chflags 34 112 1.6 thorpej 113 1.6 thorpej /* syscall: "fchflags" ret: "int" args: "int" "int" */ 114 1.1 mycroft #define FREEBSD_SYS_fchflags 35 115 1.6 thorpej 116 1.6 thorpej /* syscall: "sync" ret: "int" args: */ 117 1.1 mycroft #define FREEBSD_SYS_sync 36 118 1.6 thorpej 119 1.6 thorpej /* syscall: "kill" ret: "int" args: "int" "int" */ 120 1.1 mycroft #define FREEBSD_SYS_kill 37 121 1.6 thorpej 122 1.12 christos /* syscall: "stat43" ret: "int" args: "char *" "struct stat43 *" */ 123 1.12 christos #define FREEBSD_SYS_stat43 38 124 1.6 thorpej 125 1.6 thorpej /* syscall: "getppid" ret: "pid_t" args: */ 126 1.1 mycroft #define FREEBSD_SYS_getppid 39 127 1.6 thorpej 128 1.12 christos /* syscall: "lstat43" ret: "int" args: "char *" "struct stat43 *" */ 129 1.12 christos #define FREEBSD_SYS_lstat43 40 130 1.6 thorpej 131 1.6 thorpej /* syscall: "dup" ret: "int" args: "u_int" */ 132 1.1 mycroft #define FREEBSD_SYS_dup 41 133 1.6 thorpej 134 1.6 thorpej /* syscall: "pipe" ret: "int" args: */ 135 1.1 mycroft #define FREEBSD_SYS_pipe 42 136 1.6 thorpej 137 1.6 thorpej /* syscall: "getegid" ret: "gid_t" args: */ 138 1.1 mycroft #define FREEBSD_SYS_getegid 43 139 1.6 thorpej 140 1.6 thorpej /* syscall: "profil" ret: "int" args: "caddr_t" "u_int" "u_int" "u_int" */ 141 1.1 mycroft #define FREEBSD_SYS_profil 44 142 1.6 thorpej 143 1.6 thorpej /* syscall: "ktrace" ret: "int" args: "char *" "int" "int" "int" */ 144 1.1 mycroft #define FREEBSD_SYS_ktrace 45 145 1.6 thorpej 146 1.6 thorpej /* syscall: "sigaction" ret: "int" args: "int" "struct sigaction *" "struct sigaction *" */ 147 1.1 mycroft #define FREEBSD_SYS_sigaction 46 148 1.6 thorpej 149 1.6 thorpej /* syscall: "getgid" ret: "gid_t" args: */ 150 1.1 mycroft #define FREEBSD_SYS_getgid 47 151 1.6 thorpej 152 1.6 thorpej /* syscall: "sigprocmask" ret: "int" args: "int" "sigset_t" */ 153 1.1 mycroft #define FREEBSD_SYS_sigprocmask 48 154 1.6 thorpej 155 1.6 thorpej /* syscall: "__getlogin" ret: "int" args: "char *" "u_int" */ 156 1.5 christos #define FREEBSD_SYS___getlogin 49 157 1.6 thorpej 158 1.6 thorpej /* syscall: "setlogin" ret: "int" args: "char *" */ 159 1.1 mycroft #define FREEBSD_SYS_setlogin 50 160 1.6 thorpej 161 1.6 thorpej /* syscall: "acct" ret: "int" args: "char *" */ 162 1.1 mycroft #define FREEBSD_SYS_acct 51 163 1.6 thorpej 164 1.6 thorpej /* syscall: "sigpending" ret: "int" args: */ 165 1.1 mycroft #define FREEBSD_SYS_sigpending 52 166 1.6 thorpej 167 1.14 veego /* syscall: "sigaltstack" ret: "int" args: "const struct sigaltstack13 *" "struct sigaltstack13 *" */ 168 1.1 mycroft #define FREEBSD_SYS_sigaltstack 53 169 1.6 thorpej 170 1.6 thorpej /* syscall: "ioctl" ret: "int" args: "int" "u_long" "caddr_t" */ 171 1.1 mycroft #define FREEBSD_SYS_ioctl 54 172 1.6 thorpej 173 1.6 thorpej /* syscall: "reboot" ret: "int" args: "int" */ 174 1.1 mycroft #define FREEBSD_SYS_reboot 55 175 1.6 thorpej 176 1.6 thorpej /* syscall: "revoke" ret: "int" args: "char *" */ 177 1.1 mycroft #define FREEBSD_SYS_revoke 56 178 1.6 thorpej 179 1.6 thorpej /* syscall: "symlink" ret: "int" args: "char *" "char *" */ 180 1.1 mycroft #define FREEBSD_SYS_symlink 57 181 1.6 thorpej 182 1.6 thorpej /* syscall: "readlink" ret: "int" args: "char *" "char *" "int" */ 183 1.1 mycroft #define FREEBSD_SYS_readlink 58 184 1.6 thorpej 185 1.6 thorpej /* syscall: "execve" ret: "int" args: "char *" "char **" "char **" */ 186 1.1 mycroft #define FREEBSD_SYS_execve 59 187 1.6 thorpej 188 1.6 thorpej /* syscall: "umask" ret: "int" args: "int" */ 189 1.1 mycroft #define FREEBSD_SYS_umask 60 190 1.6 thorpej 191 1.6 thorpej /* syscall: "chroot" ret: "int" args: "char *" */ 192 1.1 mycroft #define FREEBSD_SYS_chroot 61 193 1.6 thorpej 194 1.12 christos /* syscall: "fstat43" ret: "int" args: "int" "struct stat43 *" */ 195 1.12 christos #define FREEBSD_SYS_fstat43 62 196 1.6 thorpej 197 1.6 thorpej /* syscall: "ogetkerninfo" ret: "int" args: "int" "char *" "int *" "int" */ 198 1.1 mycroft #define FREEBSD_SYS_ogetkerninfo 63 199 1.6 thorpej 200 1.6 thorpej /* syscall: "ogetpagesize" ret: "int" args: */ 201 1.1 mycroft #define FREEBSD_SYS_ogetpagesize 64 202 1.6 thorpej 203 1.6 thorpej /* syscall: "msync" ret: "int" args: "caddr_t" "size_t" "int" */ 204 1.1 mycroft #define FREEBSD_SYS_msync 65 205 1.6 thorpej 206 1.6 thorpej /* syscall: "vfork" ret: "int" args: */ 207 1.1 mycroft #define FREEBSD_SYS_vfork 66 208 1.6 thorpej 209 1.1 mycroft /* 67 is obsolete vread */ 210 1.1 mycroft /* 68 is obsolete vwrite */ 211 1.6 thorpej /* syscall: "sbrk" ret: "int" args: "int" */ 212 1.1 mycroft #define FREEBSD_SYS_sbrk 69 213 1.6 thorpej 214 1.6 thorpej /* syscall: "sstk" ret: "int" args: "int" */ 215 1.1 mycroft #define FREEBSD_SYS_sstk 70 216 1.6 thorpej 217 1.6 thorpej /* syscall: "ommap" ret: "int" args: "caddr_t" "size_t" "int" "int" "int" "long" */ 218 1.1 mycroft #define FREEBSD_SYS_ommap 71 219 1.6 thorpej 220 1.6 thorpej /* syscall: "vadvise" ret: "int" args: "int" */ 221 1.1 mycroft #define FREEBSD_SYS_vadvise 72 222 1.6 thorpej 223 1.6 thorpej /* syscall: "munmap" ret: "int" args: "caddr_t" "size_t" */ 224 1.1 mycroft #define FREEBSD_SYS_munmap 73 225 1.6 thorpej 226 1.6 thorpej /* syscall: "mprotect" ret: "int" args: "caddr_t" "size_t" "int" */ 227 1.1 mycroft #define FREEBSD_SYS_mprotect 74 228 1.6 thorpej 229 1.6 thorpej /* syscall: "madvise" ret: "int" args: "caddr_t" "size_t" "int" */ 230 1.1 mycroft #define FREEBSD_SYS_madvise 75 231 1.6 thorpej 232 1.1 mycroft /* 76 is obsolete vhangup */ 233 1.1 mycroft /* 77 is obsolete vlimit */ 234 1.6 thorpej /* syscall: "mincore" ret: "int" args: "caddr_t" "size_t" "char *" */ 235 1.1 mycroft #define FREEBSD_SYS_mincore 78 236 1.6 thorpej 237 1.6 thorpej /* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */ 238 1.1 mycroft #define FREEBSD_SYS_getgroups 79 239 1.6 thorpej 240 1.6 thorpej /* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */ 241 1.1 mycroft #define FREEBSD_SYS_setgroups 80 242 1.6 thorpej 243 1.6 thorpej /* syscall: "getpgrp" ret: "int" args: */ 244 1.1 mycroft #define FREEBSD_SYS_getpgrp 81 245 1.6 thorpej 246 1.6 thorpej /* syscall: "setpgid" ret: "int" args: "int" "int" */ 247 1.1 mycroft #define FREEBSD_SYS_setpgid 82 248 1.6 thorpej 249 1.6 thorpej /* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval *" "struct itimerval *" */ 250 1.1 mycroft #define FREEBSD_SYS_setitimer 83 251 1.6 thorpej 252 1.6 thorpej /* syscall: "owait" ret: "int" args: */ 253 1.1 mycroft #define FREEBSD_SYS_owait 84 254 1.6 thorpej 255 1.6 thorpej /* syscall: "swapon" ret: "int" args: "char *" */ 256 1.1 mycroft #define FREEBSD_SYS_swapon 85 257 1.6 thorpej 258 1.6 thorpej /* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval *" */ 259 1.1 mycroft #define FREEBSD_SYS_getitimer 86 260 1.6 thorpej 261 1.6 thorpej /* syscall: "ogethostname" ret: "int" args: "char *" "u_int" */ 262 1.1 mycroft #define FREEBSD_SYS_ogethostname 87 263 1.6 thorpej 264 1.6 thorpej /* syscall: "osethostname" ret: "int" args: "char *" "u_int" */ 265 1.1 mycroft #define FREEBSD_SYS_osethostname 88 266 1.6 thorpej 267 1.6 thorpej /* syscall: "ogetdtablesize" ret: "int" args: */ 268 1.1 mycroft #define FREEBSD_SYS_ogetdtablesize 89 269 1.6 thorpej 270 1.6 thorpej /* syscall: "dup2" ret: "int" args: "u_int" "u_int" */ 271 1.1 mycroft #define FREEBSD_SYS_dup2 90 272 1.6 thorpej 273 1.6 thorpej /* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */ 274 1.1 mycroft #define FREEBSD_SYS_fcntl 92 275 1.6 thorpej 276 1.6 thorpej /* syscall: "select" ret: "int" args: "u_int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */ 277 1.1 mycroft #define FREEBSD_SYS_select 93 278 1.6 thorpej 279 1.6 thorpej /* syscall: "fsync" ret: "int" args: "int" */ 280 1.1 mycroft #define FREEBSD_SYS_fsync 95 281 1.6 thorpej 282 1.6 thorpej /* syscall: "setpriority" ret: "int" args: "int" "int" "int" */ 283 1.1 mycroft #define FREEBSD_SYS_setpriority 96 284 1.6 thorpej 285 1.6 thorpej /* syscall: "socket" ret: "int" args: "int" "int" "int" */ 286 1.1 mycroft #define FREEBSD_SYS_socket 97 287 1.6 thorpej 288 1.6 thorpej /* syscall: "connect" ret: "int" args: "int" "caddr_t" "int" */ 289 1.1 mycroft #define FREEBSD_SYS_connect 98 290 1.6 thorpej 291 1.6 thorpej /* syscall: "oaccept" ret: "int" args: "int" "caddr_t" "int *" */ 292 1.1 mycroft #define FREEBSD_SYS_oaccept 99 293 1.6 thorpej 294 1.6 thorpej /* syscall: "getpriority" ret: "int" args: "int" "int" */ 295 1.1 mycroft #define FREEBSD_SYS_getpriority 100 296 1.6 thorpej 297 1.6 thorpej /* syscall: "osend" ret: "int" args: "int" "caddr_t" "int" "int" */ 298 1.1 mycroft #define FREEBSD_SYS_osend 101 299 1.6 thorpej 300 1.6 thorpej /* syscall: "orecv" ret: "int" args: "int" "caddr_t" "int" "int" */ 301 1.1 mycroft #define FREEBSD_SYS_orecv 102 302 1.6 thorpej 303 1.6 thorpej /* syscall: "sigreturn" ret: "int" args: "struct freebsd_sigcontext *" */ 304 1.1 mycroft #define FREEBSD_SYS_sigreturn 103 305 1.6 thorpej 306 1.6 thorpej /* syscall: "bind" ret: "int" args: "int" "caddr_t" "int" */ 307 1.1 mycroft #define FREEBSD_SYS_bind 104 308 1.6 thorpej 309 1.6 thorpej /* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "caddr_t" "int" */ 310 1.1 mycroft #define FREEBSD_SYS_setsockopt 105 311 1.6 thorpej 312 1.6 thorpej /* syscall: "listen" ret: "int" args: "int" "int" */ 313 1.1 mycroft #define FREEBSD_SYS_listen 106 314 1.6 thorpej 315 1.1 mycroft /* 107 is obsolete vtimes */ 316 1.6 thorpej /* syscall: "osigvec" ret: "int" args: "int" "struct sigvec *" "struct sigvec *" */ 317 1.1 mycroft #define FREEBSD_SYS_osigvec 108 318 1.6 thorpej 319 1.6 thorpej /* syscall: "osigblock" ret: "int" args: "int" */ 320 1.1 mycroft #define FREEBSD_SYS_osigblock 109 321 1.6 thorpej 322 1.6 thorpej /* syscall: "osigsetmask" ret: "int" args: "int" */ 323 1.1 mycroft #define FREEBSD_SYS_osigsetmask 110 324 1.6 thorpej 325 1.6 thorpej /* syscall: "sigsuspend" ret: "int" args: "int" */ 326 1.1 mycroft #define FREEBSD_SYS_sigsuspend 111 327 1.6 thorpej 328 1.6 thorpej /* syscall: "osigstack" ret: "int" args: "struct sigstack *" "struct sigstack *" */ 329 1.1 mycroft #define FREEBSD_SYS_osigstack 112 330 1.6 thorpej 331 1.6 thorpej /* syscall: "orecvmsg" ret: "int" args: "int" "struct omsghdr *" "int" */ 332 1.1 mycroft #define FREEBSD_SYS_orecvmsg 113 333 1.6 thorpej 334 1.6 thorpej /* syscall: "osendmsg" ret: "int" args: "int" "caddr_t" "int" */ 335 1.1 mycroft #define FREEBSD_SYS_osendmsg 114 336 1.6 thorpej 337 1.6 thorpej /* syscall: "vtrace" ret: "int" args: "int" "int" */ 338 1.1 mycroft #define FREEBSD_SYS_vtrace 115 339 1.6 thorpej 340 1.1 mycroft /* 115 is obsolete vtrace */ 341 1.6 thorpej /* syscall: "gettimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */ 342 1.1 mycroft #define FREEBSD_SYS_gettimeofday 116 343 1.6 thorpej 344 1.6 thorpej /* syscall: "getrusage" ret: "int" args: "int" "struct rusage *" */ 345 1.1 mycroft #define FREEBSD_SYS_getrusage 117 346 1.6 thorpej 347 1.6 thorpej /* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "caddr_t" "int *" */ 348 1.1 mycroft #define FREEBSD_SYS_getsockopt 118 349 1.6 thorpej 350 1.1 mycroft /* 119 is obsolete resuba */ 351 1.6 thorpej /* syscall: "readv" ret: "int" args: "int" "struct iovec *" "u_int" */ 352 1.1 mycroft #define FREEBSD_SYS_readv 120 353 1.6 thorpej 354 1.6 thorpej /* syscall: "writev" ret: "int" args: "int" "struct iovec *" "u_int" */ 355 1.1 mycroft #define FREEBSD_SYS_writev 121 356 1.6 thorpej 357 1.6 thorpej /* syscall: "settimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */ 358 1.1 mycroft #define FREEBSD_SYS_settimeofday 122 359 1.6 thorpej 360 1.6 thorpej /* syscall: "fchown" ret: "int" args: "int" "int" "int" */ 361 1.1 mycroft #define FREEBSD_SYS_fchown 123 362 1.6 thorpej 363 1.6 thorpej /* syscall: "fchmod" ret: "int" args: "int" "int" */ 364 1.1 mycroft #define FREEBSD_SYS_fchmod 124 365 1.6 thorpej 366 1.6 thorpej /* syscall: "orecvfrom" ret: "int" args: "int" "caddr_t" "size_t" "int" "caddr_t" "int *" */ 367 1.1 mycroft #define FREEBSD_SYS_orecvfrom 125 368 1.6 thorpej 369 1.6 thorpej /* syscall: "setreuid" ret: "int" args: "int" "int" */ 370 1.4 mycroft #define FREEBSD_SYS_setreuid 126 371 1.6 thorpej 372 1.6 thorpej /* syscall: "setregid" ret: "int" args: "int" "int" */ 373 1.4 mycroft #define FREEBSD_SYS_setregid 127 374 1.6 thorpej 375 1.6 thorpej /* syscall: "rename" ret: "int" args: "char *" "char *" */ 376 1.1 mycroft #define FREEBSD_SYS_rename 128 377 1.6 thorpej 378 1.6 thorpej /* syscall: "otruncate" ret: "int" args: "char *" "long" */ 379 1.1 mycroft #define FREEBSD_SYS_otruncate 129 380 1.6 thorpej 381 1.6 thorpej /* syscall: "oftruncate" ret: "int" args: "int" "long" */ 382 1.2 mycroft #define FREEBSD_SYS_oftruncate 130 383 1.6 thorpej 384 1.6 thorpej /* syscall: "flock" ret: "int" args: "int" "int" */ 385 1.2 mycroft #define FREEBSD_SYS_flock 131 386 1.6 thorpej 387 1.6 thorpej /* syscall: "mkfifo" ret: "int" args: "char *" "int" */ 388 1.1 mycroft #define FREEBSD_SYS_mkfifo 132 389 1.6 thorpej 390 1.6 thorpej /* syscall: "sendto" ret: "int" args: "int" "caddr_t" "size_t" "int" "caddr_t" "int" */ 391 1.1 mycroft #define FREEBSD_SYS_sendto 133 392 1.6 thorpej 393 1.6 thorpej /* syscall: "shutdown" ret: "int" args: "int" "int" */ 394 1.1 mycroft #define FREEBSD_SYS_shutdown 134 395 1.6 thorpej 396 1.6 thorpej /* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */ 397 1.1 mycroft #define FREEBSD_SYS_socketpair 135 398 1.6 thorpej 399 1.6 thorpej /* syscall: "mkdir" ret: "int" args: "char *" "int" */ 400 1.1 mycroft #define FREEBSD_SYS_mkdir 136 401 1.6 thorpej 402 1.6 thorpej /* syscall: "rmdir" ret: "int" args: "char *" */ 403 1.1 mycroft #define FREEBSD_SYS_rmdir 137 404 1.6 thorpej 405 1.6 thorpej /* syscall: "utimes" ret: "int" args: "char *" "struct timeval *" */ 406 1.1 mycroft #define FREEBSD_SYS_utimes 138 407 1.6 thorpej 408 1.1 mycroft /* 139 is obsolete 4.2 sigreturn */ 409 1.6 thorpej /* syscall: "adjtime" ret: "int" args: "struct timeval *" "struct timeval *" */ 410 1.1 mycroft #define FREEBSD_SYS_adjtime 140 411 1.6 thorpej 412 1.6 thorpej /* syscall: "ogetpeername" ret: "int" args: "int" "caddr_t" "int *" */ 413 1.1 mycroft #define FREEBSD_SYS_ogetpeername 141 414 1.6 thorpej 415 1.6 thorpej /* syscall: "ogethostid" ret: "int32_t" args: */ 416 1.1 mycroft #define FREEBSD_SYS_ogethostid 142 417 1.6 thorpej 418 1.6 thorpej /* syscall: "osethostid" ret: "int" args: "int32_t" */ 419 1.1 mycroft #define FREEBSD_SYS_osethostid 143 420 1.6 thorpej 421 1.11 mycroft /* syscall: "ogetrlimit" ret: "int" args: "u_int" "struct orlimit *" */ 422 1.1 mycroft #define FREEBSD_SYS_ogetrlimit 144 423 1.6 thorpej 424 1.11 mycroft /* syscall: "osetrlimit" ret: "int" args: "u_int" "struct orlimit *" */ 425 1.1 mycroft #define FREEBSD_SYS_osetrlimit 145 426 1.6 thorpej 427 1.6 thorpej /* syscall: "okillpg" ret: "int" args: "int" "int" */ 428 1.1 mycroft #define FREEBSD_SYS_okillpg 146 429 1.6 thorpej 430 1.6 thorpej /* syscall: "setsid" ret: "int" args: */ 431 1.1 mycroft #define FREEBSD_SYS_setsid 147 432 1.6 thorpej 433 1.6 thorpej /* syscall: "quotactl" ret: "int" args: "char *" "int" "int" "caddr_t" */ 434 1.1 mycroft #define FREEBSD_SYS_quotactl 148 435 1.6 thorpej 436 1.6 thorpej /* syscall: "oquota" ret: "int" args: */ 437 1.1 mycroft #define FREEBSD_SYS_oquota 149 438 1.6 thorpej 439 1.6 thorpej /* syscall: "ogetsockname" ret: "int" args: "int" "caddr_t" "int *" */ 440 1.1 mycroft #define FREEBSD_SYS_ogetsockname 150 441 1.6 thorpej 442 1.6 thorpej /* syscall: "nfssvc" ret: "int" args: "int" "caddr_t" */ 443 1.1 mycroft #define FREEBSD_SYS_nfssvc 155 444 1.6 thorpej 445 1.6 thorpej /* syscall: "ogetdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */ 446 1.1 mycroft #define FREEBSD_SYS_ogetdirentries 156 447 1.6 thorpej 448 1.6 thorpej /* syscall: "statfs" ret: "int" args: "char *" "struct statfs *" */ 449 1.1 mycroft #define FREEBSD_SYS_statfs 157 450 1.6 thorpej 451 1.6 thorpej /* syscall: "fstatfs" ret: "int" args: "int" "struct statfs *" */ 452 1.1 mycroft #define FREEBSD_SYS_fstatfs 158 453 1.6 thorpej 454 1.6 thorpej /* syscall: "getfh" ret: "int" args: "char *" "fhandle_t *" */ 455 1.1 mycroft #define FREEBSD_SYS_getfh 161 456 1.6 thorpej 457 1.6 thorpej /* syscall: "getdomainname" ret: "int" args: "char *" "int" */ 458 1.1 mycroft #define FREEBSD_SYS_getdomainname 162 459 1.6 thorpej 460 1.6 thorpej /* syscall: "setdomainname" ret: "int" args: "char *" "int" */ 461 1.1 mycroft #define FREEBSD_SYS_setdomainname 163 462 1.6 thorpej 463 1.6 thorpej /* syscall: "uname" ret: "int" args: "struct outsname *" */ 464 1.1 mycroft #define FREEBSD_SYS_uname 164 465 1.6 thorpej 466 1.6 thorpej /* syscall: "sysarch" ret: "int" args: "int" "char *" */ 467 1.1 mycroft #define FREEBSD_SYS_sysarch 165 468 1.6 thorpej 469 1.6 thorpej /* syscall: "rtprio" ret: "int" args: "int" "pid_t" "struct freebsd_rtprio *" */ 470 1.1 mycroft #define FREEBSD_SYS_rtprio 166 471 1.6 thorpej 472 1.6 thorpej /* syscall: "semsys" ret: "int" args: "int" "int" "int" "int" "int" */ 473 1.1 mycroft #define FREEBSD_SYS_semsys 169 474 1.6 thorpej 475 1.6 thorpej /* syscall: "msgsys" ret: "int" args: "int" "int" "int" "int" "int" "int" */ 476 1.1 mycroft #define FREEBSD_SYS_msgsys 170 477 1.6 thorpej 478 1.6 thorpej /* syscall: "shmsys" ret: "int" args: "int" "int" "int" "int" */ 479 1.1 mycroft #define FREEBSD_SYS_shmsys 171 480 1.6 thorpej 481 1.6 thorpej /* syscall: "freebsd_ntp_adjtime" ret: "int" args: "struct freebsd_timex *" */ 482 1.1 mycroft #define FREEBSD_SYS_freebsd_ntp_adjtime 176 483 1.6 thorpej 484 1.6 thorpej /* syscall: "setgid" ret: "int" args: "gid_t" */ 485 1.1 mycroft #define FREEBSD_SYS_setgid 181 486 1.6 thorpej 487 1.6 thorpej /* syscall: "setegid" ret: "int" args: "gid_t" */ 488 1.1 mycroft #define FREEBSD_SYS_setegid 182 489 1.6 thorpej 490 1.6 thorpej /* syscall: "seteuid" ret: "int" args: "uid_t" */ 491 1.1 mycroft #define FREEBSD_SYS_seteuid 183 492 1.6 thorpej 493 1.6 thorpej /* syscall: "lfs_bmapv" ret: "int" args: "fsid_t *" "struct block_info *" "int" */ 494 1.1 mycroft #define FREEBSD_SYS_lfs_bmapv 184 495 1.6 thorpej 496 1.6 thorpej /* syscall: "lfs_markv" ret: "int" args: "fsid_t *" "struct block_info *" "int" */ 497 1.1 mycroft #define FREEBSD_SYS_lfs_markv 185 498 1.6 thorpej 499 1.6 thorpej /* syscall: "lfs_segclean" ret: "int" args: "fsid_t *" "u_long" */ 500 1.1 mycroft #define FREEBSD_SYS_lfs_segclean 186 501 1.6 thorpej 502 1.6 thorpej /* syscall: "lfs_segwait" ret: "int" args: "fsid_t *" "struct timeval *" */ 503 1.1 mycroft #define FREEBSD_SYS_lfs_segwait 187 504 1.6 thorpej 505 1.13 christos /* syscall: "stat" ret: "int" args: "char *" "struct stat12 *" */ 506 1.1 mycroft #define FREEBSD_SYS_stat 188 507 1.6 thorpej 508 1.13 christos /* syscall: "fstat" ret: "int" args: "int" "struct stat12 *" */ 509 1.1 mycroft #define FREEBSD_SYS_fstat 189 510 1.6 thorpej 511 1.13 christos /* syscall: "lstat" ret: "int" args: "char *" "struct stat12 *" */ 512 1.1 mycroft #define FREEBSD_SYS_lstat 190 513 1.6 thorpej 514 1.6 thorpej /* syscall: "pathconf" ret: "int" args: "char *" "int" */ 515 1.1 mycroft #define FREEBSD_SYS_pathconf 191 516 1.6 thorpej 517 1.6 thorpej /* syscall: "fpathconf" ret: "int" args: "int" "int" */ 518 1.1 mycroft #define FREEBSD_SYS_fpathconf 192 519 1.6 thorpej 520 1.6 thorpej /* syscall: "getrlimit" ret: "int" args: "u_int" "struct rlimit *" */ 521 1.1 mycroft #define FREEBSD_SYS_getrlimit 194 522 1.6 thorpej 523 1.6 thorpej /* syscall: "setrlimit" ret: "int" args: "u_int" "struct rlimit *" */ 524 1.1 mycroft #define FREEBSD_SYS_setrlimit 195 525 1.6 thorpej 526 1.6 thorpej /* syscall: "getdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */ 527 1.1 mycroft #define FREEBSD_SYS_getdirentries 196 528 1.6 thorpej 529 1.6 thorpej /* syscall: "mmap" ret: "caddr_t" args: "caddr_t" "size_t" "int" "int" "int" "long" "off_t" */ 530 1.1 mycroft #define FREEBSD_SYS_mmap 197 531 1.6 thorpej 532 1.6 thorpej /* syscall: "__syscall" ret: "int" args: */ 533 1.1 mycroft #define FREEBSD_SYS___syscall 198 534 1.6 thorpej 535 1.6 thorpej /* syscall: "lseek" ret: "off_t" args: "int" "int" "off_t" "int" */ 536 1.1 mycroft #define FREEBSD_SYS_lseek 199 537 1.6 thorpej 538 1.6 thorpej /* syscall: "truncate" ret: "int" args: "char *" "int" "off_t" */ 539 1.1 mycroft #define FREEBSD_SYS_truncate 200 540 1.6 thorpej 541 1.6 thorpej /* syscall: "ftruncate" ret: "int" args: "int" "int" "off_t" */ 542 1.1 mycroft #define FREEBSD_SYS_ftruncate 201 543 1.6 thorpej 544 1.6 thorpej /* syscall: "__sysctl" ret: "int" args: "int *" "u_int" "void *" "size_t *" "void *" "size_t" */ 545 1.1 mycroft #define FREEBSD_SYS___sysctl 202 546 1.6 thorpej 547 1.6 thorpej /* syscall: "mlock" ret: "int" args: "caddr_t" "size_t" */ 548 1.1 mycroft #define FREEBSD_SYS_mlock 203 549 1.6 thorpej 550 1.6 thorpej /* syscall: "munlock" ret: "int" args: "caddr_t" "size_t" */ 551 1.1 mycroft #define FREEBSD_SYS_munlock 204 552 1.6 thorpej 553 1.6 thorpej /* syscall: "undelete" ret: "int" args: "char *" */ 554 1.1 mycroft #define FREEBSD_SYS_undelete 205 555 1.6 thorpej 556 1.10 enami /* syscall: "lchown" ret: "int" args: "char *" "int" "int" */ 557 1.10 enami #define FREEBSD_SYS_lchown 254 558 1.10 enami 559 1.10 enami #define FREEBSD_SYS_MAXSYSCALL 255 560