1 1.37 cgd /* $NetBSD: freebsd_syscall.h,v 1.52 2003/11/26 19:23:29 jdolecek 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.52 jdolecek * created from NetBSD: syscalls.master,v 1.42 2003/11/26 19:22:57 jdolecek 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.28 christos /* syscall: "open" ret: "int" args: "const 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.28 christos /* syscall: "ocreat" ret: "int" args: "const char *" "int" */ 35 1.1 mycroft #define FREEBSD_SYS_ocreat 8 36 1.6 thorpej 37 1.28 christos /* syscall: "link" ret: "int" args: "const char *" "const char *" */ 38 1.1 mycroft #define FREEBSD_SYS_link 9 39 1.6 thorpej 40 1.28 christos /* syscall: "unlink" ret: "int" args: "const char *" */ 41 1.1 mycroft #define FREEBSD_SYS_unlink 10 42 1.6 thorpej 43 1.1 mycroft /* 11 is obsolete execv */ 44 1.28 christos /* syscall: "chdir" ret: "int" args: "const 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.28 christos /* syscall: "mknod" ret: "int" args: "const char *" "int" "int" */ 51 1.1 mycroft #define FREEBSD_SYS_mknod 14 52 1.6 thorpej 53 1.28 christos /* syscall: "chmod" ret: "int" args: "const char *" "int" */ 54 1.1 mycroft #define FREEBSD_SYS_chmod 15 55 1.6 thorpej 56 1.28 christos /* syscall: "chown" ret: "int" args: "const 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.40 mycroft /* syscall: "getpid_with_ppid" ret: "pid_t" args: */ 69 1.40 mycroft #define FREEBSD_SYS_getpid_with_ppid 20 70 1.6 thorpej 71 1.28 christos /* syscall: "mount" ret: "int" args: "int" "const char *" "int" "caddr_t" */ 72 1.1 mycroft #define FREEBSD_SYS_mount 21 73 1.6 thorpej 74 1.28 christos /* syscall: "unmount" ret: "int" args: "const 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.40 mycroft /* syscall: "getuid_with_euid" ret: "uid_t" args: */ 81 1.40 mycroft #define FREEBSD_SYS_getuid_with_euid 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.28 christos /* syscall: "access" ret: "int" args: "const char *" "int" */ 108 1.1 mycroft #define FREEBSD_SYS_access 33 109 1.6 thorpej 110 1.28 christos /* syscall: "chflags" ret: "int" args: "const 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.28 christos /* syscall: "stat43" ret: "int" args: "const 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.28 christos /* syscall: "lstat43" ret: "int" args: "const 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.51 pooka #ifdef KTRACE 144 1.6 thorpej /* syscall: "ktrace" ret: "int" args: "char *" "int" "int" "int" */ 145 1.1 mycroft #define FREEBSD_SYS_ktrace 45 146 1.6 thorpej 147 1.51 pooka #else 148 1.41 jdolecek /* 45 is excluded ktrace */ 149 1.51 pooka #endif 150 1.25 mycroft /* syscall: "sigaction" ret: "int" args: "int" "const struct sigaction13 *" "struct sigaction13 *" */ 151 1.1 mycroft #define FREEBSD_SYS_sigaction 46 152 1.6 thorpej 153 1.40 mycroft /* syscall: "getgid_with_egid" ret: "gid_t" args: */ 154 1.40 mycroft #define FREEBSD_SYS_getgid_with_egid 47 155 1.6 thorpej 156 1.25 mycroft /* syscall: "sigprocmask" ret: "int" args: "int" "int" */ 157 1.1 mycroft #define FREEBSD_SYS_sigprocmask 48 158 1.6 thorpej 159 1.6 thorpej /* syscall: "__getlogin" ret: "int" args: "char *" "u_int" */ 160 1.5 christos #define FREEBSD_SYS___getlogin 49 161 1.6 thorpej 162 1.49 thorpej /* syscall: "__setlogin" ret: "int" args: "char *" */ 163 1.49 thorpej #define FREEBSD_SYS___setlogin 50 164 1.6 thorpej 165 1.6 thorpej /* syscall: "acct" ret: "int" args: "char *" */ 166 1.1 mycroft #define FREEBSD_SYS_acct 51 167 1.6 thorpej 168 1.6 thorpej /* syscall: "sigpending" ret: "int" args: */ 169 1.1 mycroft #define FREEBSD_SYS_sigpending 52 170 1.6 thorpej 171 1.14 veego /* syscall: "sigaltstack" ret: "int" args: "const struct sigaltstack13 *" "struct sigaltstack13 *" */ 172 1.1 mycroft #define FREEBSD_SYS_sigaltstack 53 173 1.6 thorpej 174 1.6 thorpej /* syscall: "ioctl" ret: "int" args: "int" "u_long" "caddr_t" */ 175 1.1 mycroft #define FREEBSD_SYS_ioctl 54 176 1.6 thorpej 177 1.28 christos /* syscall: "oreboot" ret: "int" args: "int" */ 178 1.28 christos #define FREEBSD_SYS_oreboot 55 179 1.6 thorpej 180 1.28 christos /* syscall: "revoke" ret: "int" args: "const char *" */ 181 1.1 mycroft #define FREEBSD_SYS_revoke 56 182 1.6 thorpej 183 1.28 christos /* syscall: "symlink" ret: "int" args: "const char *" "const char *" */ 184 1.1 mycroft #define FREEBSD_SYS_symlink 57 185 1.6 thorpej 186 1.28 christos /* syscall: "readlink" ret: "int" args: "const char *" "char *" "int" */ 187 1.1 mycroft #define FREEBSD_SYS_readlink 58 188 1.6 thorpej 189 1.28 christos /* syscall: "execve" ret: "int" args: "const char *" "char **" "char **" */ 190 1.1 mycroft #define FREEBSD_SYS_execve 59 191 1.6 thorpej 192 1.6 thorpej /* syscall: "umask" ret: "int" args: "int" */ 193 1.1 mycroft #define FREEBSD_SYS_umask 60 194 1.6 thorpej 195 1.28 christos /* syscall: "chroot" ret: "int" args: "const char *" */ 196 1.1 mycroft #define FREEBSD_SYS_chroot 61 197 1.6 thorpej 198 1.12 christos /* syscall: "fstat43" ret: "int" args: "int" "struct stat43 *" */ 199 1.12 christos #define FREEBSD_SYS_fstat43 62 200 1.6 thorpej 201 1.6 thorpej /* syscall: "ogetkerninfo" ret: "int" args: "int" "char *" "int *" "int" */ 202 1.1 mycroft #define FREEBSD_SYS_ogetkerninfo 63 203 1.6 thorpej 204 1.6 thorpej /* syscall: "ogetpagesize" ret: "int" args: */ 205 1.1 mycroft #define FREEBSD_SYS_ogetpagesize 64 206 1.6 thorpej 207 1.6 thorpej /* syscall: "msync" ret: "int" args: "caddr_t" "size_t" "int" */ 208 1.1 mycroft #define FREEBSD_SYS_msync 65 209 1.6 thorpej 210 1.6 thorpej /* syscall: "vfork" ret: "int" args: */ 211 1.1 mycroft #define FREEBSD_SYS_vfork 66 212 1.6 thorpej 213 1.1 mycroft /* 67 is obsolete vread */ 214 1.1 mycroft /* 68 is obsolete vwrite */ 215 1.30 kleink /* syscall: "sbrk" ret: "int" args: "intptr_t" */ 216 1.1 mycroft #define FREEBSD_SYS_sbrk 69 217 1.6 thorpej 218 1.6 thorpej /* syscall: "sstk" ret: "int" args: "int" */ 219 1.1 mycroft #define FREEBSD_SYS_sstk 70 220 1.6 thorpej 221 1.6 thorpej /* syscall: "ommap" ret: "int" args: "caddr_t" "size_t" "int" "int" "int" "long" */ 222 1.1 mycroft #define FREEBSD_SYS_ommap 71 223 1.6 thorpej 224 1.6 thorpej /* syscall: "vadvise" ret: "int" args: "int" */ 225 1.1 mycroft #define FREEBSD_SYS_vadvise 72 226 1.6 thorpej 227 1.6 thorpej /* syscall: "munmap" ret: "int" args: "caddr_t" "size_t" */ 228 1.1 mycroft #define FREEBSD_SYS_munmap 73 229 1.6 thorpej 230 1.6 thorpej /* syscall: "mprotect" ret: "int" args: "caddr_t" "size_t" "int" */ 231 1.1 mycroft #define FREEBSD_SYS_mprotect 74 232 1.6 thorpej 233 1.6 thorpej /* syscall: "madvise" ret: "int" args: "caddr_t" "size_t" "int" */ 234 1.1 mycroft #define FREEBSD_SYS_madvise 75 235 1.6 thorpej 236 1.1 mycroft /* 76 is obsolete vhangup */ 237 1.1 mycroft /* 77 is obsolete vlimit */ 238 1.6 thorpej /* syscall: "mincore" ret: "int" args: "caddr_t" "size_t" "char *" */ 239 1.1 mycroft #define FREEBSD_SYS_mincore 78 240 1.6 thorpej 241 1.6 thorpej /* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */ 242 1.1 mycroft #define FREEBSD_SYS_getgroups 79 243 1.6 thorpej 244 1.6 thorpej /* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */ 245 1.1 mycroft #define FREEBSD_SYS_setgroups 80 246 1.6 thorpej 247 1.6 thorpej /* syscall: "getpgrp" ret: "int" args: */ 248 1.1 mycroft #define FREEBSD_SYS_getpgrp 81 249 1.6 thorpej 250 1.6 thorpej /* syscall: "setpgid" ret: "int" args: "int" "int" */ 251 1.1 mycroft #define FREEBSD_SYS_setpgid 82 252 1.6 thorpej 253 1.6 thorpej /* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval *" "struct itimerval *" */ 254 1.1 mycroft #define FREEBSD_SYS_setitimer 83 255 1.6 thorpej 256 1.6 thorpej /* syscall: "owait" ret: "int" args: */ 257 1.1 mycroft #define FREEBSD_SYS_owait 84 258 1.6 thorpej 259 1.6 thorpej /* syscall: "swapon" ret: "int" args: "char *" */ 260 1.1 mycroft #define FREEBSD_SYS_swapon 85 261 1.6 thorpej 262 1.6 thorpej /* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval *" */ 263 1.1 mycroft #define FREEBSD_SYS_getitimer 86 264 1.6 thorpej 265 1.6 thorpej /* syscall: "ogethostname" ret: "int" args: "char *" "u_int" */ 266 1.1 mycroft #define FREEBSD_SYS_ogethostname 87 267 1.6 thorpej 268 1.6 thorpej /* syscall: "osethostname" ret: "int" args: "char *" "u_int" */ 269 1.1 mycroft #define FREEBSD_SYS_osethostname 88 270 1.6 thorpej 271 1.6 thorpej /* syscall: "ogetdtablesize" ret: "int" args: */ 272 1.1 mycroft #define FREEBSD_SYS_ogetdtablesize 89 273 1.6 thorpej 274 1.6 thorpej /* syscall: "dup2" ret: "int" args: "u_int" "u_int" */ 275 1.1 mycroft #define FREEBSD_SYS_dup2 90 276 1.6 thorpej 277 1.6 thorpej /* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */ 278 1.1 mycroft #define FREEBSD_SYS_fcntl 92 279 1.6 thorpej 280 1.6 thorpej /* syscall: "select" ret: "int" args: "u_int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */ 281 1.1 mycroft #define FREEBSD_SYS_select 93 282 1.6 thorpej 283 1.6 thorpej /* syscall: "fsync" ret: "int" args: "int" */ 284 1.1 mycroft #define FREEBSD_SYS_fsync 95 285 1.6 thorpej 286 1.6 thorpej /* syscall: "setpriority" ret: "int" args: "int" "int" "int" */ 287 1.1 mycroft #define FREEBSD_SYS_setpriority 96 288 1.6 thorpej 289 1.6 thorpej /* syscall: "socket" ret: "int" args: "int" "int" "int" */ 290 1.1 mycroft #define FREEBSD_SYS_socket 97 291 1.6 thorpej 292 1.6 thorpej /* syscall: "connect" ret: "int" args: "int" "caddr_t" "int" */ 293 1.1 mycroft #define FREEBSD_SYS_connect 98 294 1.6 thorpej 295 1.6 thorpej /* syscall: "oaccept" ret: "int" args: "int" "caddr_t" "int *" */ 296 1.1 mycroft #define FREEBSD_SYS_oaccept 99 297 1.6 thorpej 298 1.6 thorpej /* syscall: "getpriority" ret: "int" args: "int" "int" */ 299 1.1 mycroft #define FREEBSD_SYS_getpriority 100 300 1.6 thorpej 301 1.6 thorpej /* syscall: "osend" ret: "int" args: "int" "caddr_t" "int" "int" */ 302 1.1 mycroft #define FREEBSD_SYS_osend 101 303 1.6 thorpej 304 1.6 thorpej /* syscall: "orecv" ret: "int" args: "int" "caddr_t" "int" "int" */ 305 1.1 mycroft #define FREEBSD_SYS_orecv 102 306 1.6 thorpej 307 1.6 thorpej /* syscall: "sigreturn" ret: "int" args: "struct freebsd_sigcontext *" */ 308 1.1 mycroft #define FREEBSD_SYS_sigreturn 103 309 1.6 thorpej 310 1.6 thorpej /* syscall: "bind" ret: "int" args: "int" "caddr_t" "int" */ 311 1.1 mycroft #define FREEBSD_SYS_bind 104 312 1.6 thorpej 313 1.6 thorpej /* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "caddr_t" "int" */ 314 1.1 mycroft #define FREEBSD_SYS_setsockopt 105 315 1.6 thorpej 316 1.6 thorpej /* syscall: "listen" ret: "int" args: "int" "int" */ 317 1.1 mycroft #define FREEBSD_SYS_listen 106 318 1.6 thorpej 319 1.1 mycroft /* 107 is obsolete vtimes */ 320 1.6 thorpej /* syscall: "osigvec" ret: "int" args: "int" "struct sigvec *" "struct sigvec *" */ 321 1.1 mycroft #define FREEBSD_SYS_osigvec 108 322 1.6 thorpej 323 1.6 thorpej /* syscall: "osigblock" ret: "int" args: "int" */ 324 1.1 mycroft #define FREEBSD_SYS_osigblock 109 325 1.6 thorpej 326 1.6 thorpej /* syscall: "osigsetmask" ret: "int" args: "int" */ 327 1.1 mycroft #define FREEBSD_SYS_osigsetmask 110 328 1.6 thorpej 329 1.6 thorpej /* syscall: "sigsuspend" ret: "int" args: "int" */ 330 1.1 mycroft #define FREEBSD_SYS_sigsuspend 111 331 1.6 thorpej 332 1.6 thorpej /* syscall: "osigstack" ret: "int" args: "struct sigstack *" "struct sigstack *" */ 333 1.1 mycroft #define FREEBSD_SYS_osigstack 112 334 1.6 thorpej 335 1.6 thorpej /* syscall: "orecvmsg" ret: "int" args: "int" "struct omsghdr *" "int" */ 336 1.1 mycroft #define FREEBSD_SYS_orecvmsg 113 337 1.6 thorpej 338 1.6 thorpej /* syscall: "osendmsg" ret: "int" args: "int" "caddr_t" "int" */ 339 1.1 mycroft #define FREEBSD_SYS_osendmsg 114 340 1.6 thorpej 341 1.51 pooka #ifdef TRACE 342 1.6 thorpej /* syscall: "vtrace" ret: "int" args: "int" "int" */ 343 1.1 mycroft #define FREEBSD_SYS_vtrace 115 344 1.6 thorpej 345 1.51 pooka #else 346 1.1 mycroft /* 115 is obsolete vtrace */ 347 1.51 pooka #endif 348 1.6 thorpej /* syscall: "gettimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */ 349 1.1 mycroft #define FREEBSD_SYS_gettimeofday 116 350 1.6 thorpej 351 1.6 thorpej /* syscall: "getrusage" ret: "int" args: "int" "struct rusage *" */ 352 1.1 mycroft #define FREEBSD_SYS_getrusage 117 353 1.6 thorpej 354 1.6 thorpej /* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "caddr_t" "int *" */ 355 1.1 mycroft #define FREEBSD_SYS_getsockopt 118 356 1.6 thorpej 357 1.1 mycroft /* 119 is obsolete resuba */ 358 1.6 thorpej /* syscall: "readv" ret: "int" args: "int" "struct iovec *" "u_int" */ 359 1.1 mycroft #define FREEBSD_SYS_readv 120 360 1.6 thorpej 361 1.6 thorpej /* syscall: "writev" ret: "int" args: "int" "struct iovec *" "u_int" */ 362 1.1 mycroft #define FREEBSD_SYS_writev 121 363 1.6 thorpej 364 1.6 thorpej /* syscall: "settimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */ 365 1.1 mycroft #define FREEBSD_SYS_settimeofday 122 366 1.6 thorpej 367 1.6 thorpej /* syscall: "fchown" ret: "int" args: "int" "int" "int" */ 368 1.1 mycroft #define FREEBSD_SYS_fchown 123 369 1.6 thorpej 370 1.6 thorpej /* syscall: "fchmod" ret: "int" args: "int" "int" */ 371 1.1 mycroft #define FREEBSD_SYS_fchmod 124 372 1.6 thorpej 373 1.6 thorpej /* syscall: "orecvfrom" ret: "int" args: "int" "caddr_t" "size_t" "int" "caddr_t" "int *" */ 374 1.1 mycroft #define FREEBSD_SYS_orecvfrom 125 375 1.6 thorpej 376 1.6 thorpej /* syscall: "setreuid" ret: "int" args: "int" "int" */ 377 1.4 mycroft #define FREEBSD_SYS_setreuid 126 378 1.6 thorpej 379 1.6 thorpej /* syscall: "setregid" ret: "int" args: "int" "int" */ 380 1.4 mycroft #define FREEBSD_SYS_setregid 127 381 1.6 thorpej 382 1.28 christos /* syscall: "rename" ret: "int" args: "const char *" "const char *" */ 383 1.1 mycroft #define FREEBSD_SYS_rename 128 384 1.6 thorpej 385 1.28 christos /* syscall: "otruncate" ret: "int" args: "const char *" "long" */ 386 1.1 mycroft #define FREEBSD_SYS_otruncate 129 387 1.6 thorpej 388 1.6 thorpej /* syscall: "oftruncate" ret: "int" args: "int" "long" */ 389 1.2 mycroft #define FREEBSD_SYS_oftruncate 130 390 1.6 thorpej 391 1.6 thorpej /* syscall: "flock" ret: "int" args: "int" "int" */ 392 1.2 mycroft #define FREEBSD_SYS_flock 131 393 1.6 thorpej 394 1.28 christos /* syscall: "mkfifo" ret: "int" args: "const char *" "int" */ 395 1.1 mycroft #define FREEBSD_SYS_mkfifo 132 396 1.6 thorpej 397 1.6 thorpej /* syscall: "sendto" ret: "int" args: "int" "caddr_t" "size_t" "int" "caddr_t" "int" */ 398 1.1 mycroft #define FREEBSD_SYS_sendto 133 399 1.6 thorpej 400 1.6 thorpej /* syscall: "shutdown" ret: "int" args: "int" "int" */ 401 1.1 mycroft #define FREEBSD_SYS_shutdown 134 402 1.6 thorpej 403 1.6 thorpej /* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */ 404 1.1 mycroft #define FREEBSD_SYS_socketpair 135 405 1.6 thorpej 406 1.28 christos /* syscall: "mkdir" ret: "int" args: "const char *" "int" */ 407 1.1 mycroft #define FREEBSD_SYS_mkdir 136 408 1.6 thorpej 409 1.28 christos /* syscall: "rmdir" ret: "int" args: "const char *" */ 410 1.1 mycroft #define FREEBSD_SYS_rmdir 137 411 1.6 thorpej 412 1.6 thorpej /* syscall: "utimes" ret: "int" args: "char *" "struct timeval *" */ 413 1.1 mycroft #define FREEBSD_SYS_utimes 138 414 1.6 thorpej 415 1.1 mycroft /* 139 is obsolete 4.2 sigreturn */ 416 1.6 thorpej /* syscall: "adjtime" ret: "int" args: "struct timeval *" "struct timeval *" */ 417 1.1 mycroft #define FREEBSD_SYS_adjtime 140 418 1.6 thorpej 419 1.6 thorpej /* syscall: "ogetpeername" ret: "int" args: "int" "caddr_t" "int *" */ 420 1.1 mycroft #define FREEBSD_SYS_ogetpeername 141 421 1.6 thorpej 422 1.6 thorpej /* syscall: "ogethostid" ret: "int32_t" args: */ 423 1.1 mycroft #define FREEBSD_SYS_ogethostid 142 424 1.6 thorpej 425 1.6 thorpej /* syscall: "osethostid" ret: "int" args: "int32_t" */ 426 1.1 mycroft #define FREEBSD_SYS_osethostid 143 427 1.6 thorpej 428 1.11 mycroft /* syscall: "ogetrlimit" ret: "int" args: "u_int" "struct orlimit *" */ 429 1.1 mycroft #define FREEBSD_SYS_ogetrlimit 144 430 1.6 thorpej 431 1.11 mycroft /* syscall: "osetrlimit" ret: "int" args: "u_int" "struct orlimit *" */ 432 1.1 mycroft #define FREEBSD_SYS_osetrlimit 145 433 1.6 thorpej 434 1.6 thorpej /* syscall: "okillpg" ret: "int" args: "int" "int" */ 435 1.1 mycroft #define FREEBSD_SYS_okillpg 146 436 1.6 thorpej 437 1.6 thorpej /* syscall: "setsid" ret: "int" args: */ 438 1.1 mycroft #define FREEBSD_SYS_setsid 147 439 1.6 thorpej 440 1.6 thorpej /* syscall: "quotactl" ret: "int" args: "char *" "int" "int" "caddr_t" */ 441 1.1 mycroft #define FREEBSD_SYS_quotactl 148 442 1.6 thorpej 443 1.6 thorpej /* syscall: "oquota" ret: "int" args: */ 444 1.1 mycroft #define FREEBSD_SYS_oquota 149 445 1.6 thorpej 446 1.6 thorpej /* syscall: "ogetsockname" ret: "int" args: "int" "caddr_t" "int *" */ 447 1.1 mycroft #define FREEBSD_SYS_ogetsockname 150 448 1.6 thorpej 449 1.51 pooka #if defined(NFS) || defined(NFSSERVER) 450 1.6 thorpej /* syscall: "nfssvc" ret: "int" args: "int" "caddr_t" */ 451 1.1 mycroft #define FREEBSD_SYS_nfssvc 155 452 1.6 thorpej 453 1.51 pooka #else 454 1.51 pooka #endif 455 1.6 thorpej /* syscall: "ogetdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */ 456 1.1 mycroft #define FREEBSD_SYS_ogetdirentries 156 457 1.6 thorpej 458 1.28 christos /* syscall: "statfs" ret: "int" args: "const char *" "struct statfs *" */ 459 1.1 mycroft #define FREEBSD_SYS_statfs 157 460 1.6 thorpej 461 1.6 thorpej /* syscall: "fstatfs" ret: "int" args: "int" "struct statfs *" */ 462 1.1 mycroft #define FREEBSD_SYS_fstatfs 158 463 1.6 thorpej 464 1.51 pooka #ifdef NFS 465 1.28 christos /* syscall: "getfh" ret: "int" args: "const char *" "fhandle_t *" */ 466 1.1 mycroft #define FREEBSD_SYS_getfh 161 467 1.6 thorpej 468 1.51 pooka #else 469 1.51 pooka #endif 470 1.6 thorpej /* syscall: "getdomainname" ret: "int" args: "char *" "int" */ 471 1.1 mycroft #define FREEBSD_SYS_getdomainname 162 472 1.6 thorpej 473 1.6 thorpej /* syscall: "setdomainname" ret: "int" args: "char *" "int" */ 474 1.1 mycroft #define FREEBSD_SYS_setdomainname 163 475 1.6 thorpej 476 1.6 thorpej /* syscall: "uname" ret: "int" args: "struct outsname *" */ 477 1.1 mycroft #define FREEBSD_SYS_uname 164 478 1.6 thorpej 479 1.6 thorpej /* syscall: "sysarch" ret: "int" args: "int" "char *" */ 480 1.1 mycroft #define FREEBSD_SYS_sysarch 165 481 1.6 thorpej 482 1.6 thorpej /* syscall: "rtprio" ret: "int" args: "int" "pid_t" "struct freebsd_rtprio *" */ 483 1.1 mycroft #define FREEBSD_SYS_rtprio 166 484 1.6 thorpej 485 1.51 pooka #if defined(SYSVSEM) && !defined(_LP64) 486 1.6 thorpej /* syscall: "semsys" ret: "int" args: "int" "int" "int" "int" "int" */ 487 1.1 mycroft #define FREEBSD_SYS_semsys 169 488 1.6 thorpej 489 1.51 pooka #else 490 1.51 pooka #endif 491 1.51 pooka #if defined(SYSVMSG) && !defined(_LP64) 492 1.6 thorpej /* syscall: "msgsys" ret: "int" args: "int" "int" "int" "int" "int" "int" */ 493 1.1 mycroft #define FREEBSD_SYS_msgsys 170 494 1.6 thorpej 495 1.51 pooka #else 496 1.51 pooka #endif 497 1.51 pooka #if defined(SYSVSHM) && !defined(_LP64) 498 1.6 thorpej /* syscall: "shmsys" ret: "int" args: "int" "int" "int" "int" */ 499 1.1 mycroft #define FREEBSD_SYS_shmsys 171 500 1.6 thorpej 501 1.51 pooka #else 502 1.51 pooka #endif 503 1.33 tv /* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "int" "off_t" */ 504 1.33 tv #define FREEBSD_SYS_pread 173 505 1.33 tv 506 1.33 tv /* syscall: "pwrite" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "off_t" */ 507 1.33 tv #define FREEBSD_SYS_pwrite 174 508 1.33 tv 509 1.51 pooka #ifdef NTP 510 1.6 thorpej /* syscall: "freebsd_ntp_adjtime" ret: "int" args: "struct freebsd_timex *" */ 511 1.1 mycroft #define FREEBSD_SYS_freebsd_ntp_adjtime 176 512 1.6 thorpej 513 1.51 pooka #else 514 1.35 bjh21 /* 176 is excluded ntp_adjtime */ 515 1.51 pooka #endif 516 1.6 thorpej /* syscall: "setgid" ret: "int" args: "gid_t" */ 517 1.1 mycroft #define FREEBSD_SYS_setgid 181 518 1.6 thorpej 519 1.6 thorpej /* syscall: "setegid" ret: "int" args: "gid_t" */ 520 1.1 mycroft #define FREEBSD_SYS_setegid 182 521 1.6 thorpej 522 1.6 thorpej /* syscall: "seteuid" ret: "int" args: "uid_t" */ 523 1.1 mycroft #define FREEBSD_SYS_seteuid 183 524 1.6 thorpej 525 1.51 pooka #ifdef LFS 526 1.6 thorpej /* syscall: "lfs_bmapv" ret: "int" args: "fsid_t *" "struct block_info *" "int" */ 527 1.1 mycroft #define FREEBSD_SYS_lfs_bmapv 184 528 1.6 thorpej 529 1.6 thorpej /* syscall: "lfs_markv" ret: "int" args: "fsid_t *" "struct block_info *" "int" */ 530 1.1 mycroft #define FREEBSD_SYS_lfs_markv 185 531 1.6 thorpej 532 1.6 thorpej /* syscall: "lfs_segclean" ret: "int" args: "fsid_t *" "u_long" */ 533 1.1 mycroft #define FREEBSD_SYS_lfs_segclean 186 534 1.6 thorpej 535 1.6 thorpej /* syscall: "lfs_segwait" ret: "int" args: "fsid_t *" "struct timeval *" */ 536 1.1 mycroft #define FREEBSD_SYS_lfs_segwait 187 537 1.6 thorpej 538 1.51 pooka #else 539 1.51 pooka #endif 540 1.28 christos /* syscall: "stat" ret: "int" args: "const char *" "struct stat12 *" */ 541 1.1 mycroft #define FREEBSD_SYS_stat 188 542 1.6 thorpej 543 1.13 christos /* syscall: "fstat" ret: "int" args: "int" "struct stat12 *" */ 544 1.1 mycroft #define FREEBSD_SYS_fstat 189 545 1.6 thorpej 546 1.28 christos /* syscall: "lstat" ret: "int" args: "const char *" "struct stat12 *" */ 547 1.1 mycroft #define FREEBSD_SYS_lstat 190 548 1.6 thorpej 549 1.28 christos /* syscall: "pathconf" ret: "int" args: "const char *" "int" */ 550 1.1 mycroft #define FREEBSD_SYS_pathconf 191 551 1.6 thorpej 552 1.6 thorpej /* syscall: "fpathconf" ret: "int" args: "int" "int" */ 553 1.1 mycroft #define FREEBSD_SYS_fpathconf 192 554 1.6 thorpej 555 1.6 thorpej /* syscall: "getrlimit" ret: "int" args: "u_int" "struct rlimit *" */ 556 1.1 mycroft #define FREEBSD_SYS_getrlimit 194 557 1.6 thorpej 558 1.6 thorpej /* syscall: "setrlimit" ret: "int" args: "u_int" "struct rlimit *" */ 559 1.1 mycroft #define FREEBSD_SYS_setrlimit 195 560 1.6 thorpej 561 1.6 thorpej /* syscall: "getdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */ 562 1.1 mycroft #define FREEBSD_SYS_getdirentries 196 563 1.6 thorpej 564 1.6 thorpej /* syscall: "mmap" ret: "caddr_t" args: "caddr_t" "size_t" "int" "int" "int" "long" "off_t" */ 565 1.1 mycroft #define FREEBSD_SYS_mmap 197 566 1.6 thorpej 567 1.6 thorpej /* syscall: "__syscall" ret: "int" args: */ 568 1.1 mycroft #define FREEBSD_SYS___syscall 198 569 1.6 thorpej 570 1.6 thorpej /* syscall: "lseek" ret: "off_t" args: "int" "int" "off_t" "int" */ 571 1.1 mycroft #define FREEBSD_SYS_lseek 199 572 1.6 thorpej 573 1.28 christos /* syscall: "truncate" ret: "int" args: "const char *" "int" "off_t" */ 574 1.1 mycroft #define FREEBSD_SYS_truncate 200 575 1.6 thorpej 576 1.6 thorpej /* syscall: "ftruncate" ret: "int" args: "int" "int" "off_t" */ 577 1.1 mycroft #define FREEBSD_SYS_ftruncate 201 578 1.6 thorpej 579 1.6 thorpej /* syscall: "__sysctl" ret: "int" args: "int *" "u_int" "void *" "size_t *" "void *" "size_t" */ 580 1.1 mycroft #define FREEBSD_SYS___sysctl 202 581 1.6 thorpej 582 1.6 thorpej /* syscall: "mlock" ret: "int" args: "caddr_t" "size_t" */ 583 1.1 mycroft #define FREEBSD_SYS_mlock 203 584 1.6 thorpej 585 1.6 thorpej /* syscall: "munlock" ret: "int" args: "caddr_t" "size_t" */ 586 1.1 mycroft #define FREEBSD_SYS_munlock 204 587 1.6 thorpej 588 1.51 pooka #ifdef FREEBSD_BASED_ON_44LITE_R2 589 1.6 thorpej /* syscall: "undelete" ret: "int" args: "char *" */ 590 1.1 mycroft #define FREEBSD_SYS_undelete 205 591 1.22 christos 592 1.51 pooka #else 593 1.51 pooka #endif 594 1.28 christos /* syscall: "futimes" ret: "int" args: "int" "const struct timeval *" */ 595 1.28 christos #define FREEBSD_SYS_futimes 206 596 1.28 christos 597 1.28 christos /* syscall: "getpgid" ret: "pid_t" args: "pid_t" */ 598 1.28 christos #define FREEBSD_SYS_getpgid 207 599 1.28 christos 600 1.51 pooka #if 0 601 1.28 christos /* syscall: "reboot" ret: "int" args: "int" "char *" */ 602 1.28 christos #define FREEBSD_SYS_reboot 208 603 1.28 christos 604 1.51 pooka #else 605 1.51 pooka #endif 606 1.28 christos /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */ 607 1.28 christos #define FREEBSD_SYS_poll 209 608 1.28 christos 609 1.51 pooka #ifdef SYSVSEM 610 1.31 thorpej /* syscall: "__semctl" ret: "int" args: "int" "int" "int" "union __semun *" */ 611 1.28 christos #define FREEBSD_SYS___semctl 220 612 1.28 christos 613 1.28 christos /* syscall: "semget" ret: "int" args: "key_t" "int" "int" */ 614 1.28 christos #define FREEBSD_SYS_semget 221 615 1.28 christos 616 1.28 christos /* syscall: "semop" ret: "int" args: "int" "struct sembuf *" "u_int" */ 617 1.28 christos #define FREEBSD_SYS_semop 222 618 1.28 christos 619 1.28 christos /* syscall: "semconfig" ret: "int" args: "int" */ 620 1.28 christos #define FREEBSD_SYS_semconfig 223 621 1.28 christos 622 1.51 pooka #else 623 1.51 pooka #endif 624 1.51 pooka #ifdef SYSVMSG 625 1.31 thorpej /* syscall: "msgctl" ret: "int" args: "int" "int" "struct msqid14_ds *" */ 626 1.28 christos #define FREEBSD_SYS_msgctl 224 627 1.28 christos 628 1.28 christos /* syscall: "msgget" ret: "int" args: "key_t" "int" */ 629 1.28 christos #define FREEBSD_SYS_msgget 225 630 1.28 christos 631 1.28 christos /* syscall: "msgsnd" ret: "int" args: "int" "void *" "size_t" "int" */ 632 1.28 christos #define FREEBSD_SYS_msgsnd 226 633 1.28 christos 634 1.28 christos /* syscall: "msgrcv" ret: "int" args: "int" "void *" "size_t" "long" "int" */ 635 1.28 christos #define FREEBSD_SYS_msgrcv 227 636 1.28 christos 637 1.51 pooka #else 638 1.51 pooka #endif 639 1.51 pooka #ifdef SYSVSHM 640 1.28 christos /* syscall: "shmat" ret: "int" args: "int" "void *" "int" */ 641 1.28 christos #define FREEBSD_SYS_shmat 228 642 1.28 christos 643 1.31 thorpej /* syscall: "shmctl" ret: "int" args: "int" "int" "struct shmid_ds14 *" */ 644 1.28 christos #define FREEBSD_SYS_shmctl 229 645 1.28 christos 646 1.28 christos /* syscall: "shmdt" ret: "int" args: "void *" */ 647 1.28 christos #define FREEBSD_SYS_shmdt 230 648 1.28 christos 649 1.28 christos /* syscall: "shmget" ret: "int" args: "key_t" "int" "int" */ 650 1.28 christos #define FREEBSD_SYS_shmget 231 651 1.28 christos 652 1.51 pooka #else 653 1.51 pooka #endif 654 1.28 christos /* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct timespec *" */ 655 1.28 christos #define FREEBSD_SYS_clock_gettime 232 656 1.28 christos 657 1.28 christos /* syscall: "clock_settime" ret: "int" args: "clockid_t" "const struct timespec *" */ 658 1.28 christos #define FREEBSD_SYS_clock_settime 233 659 1.28 christos 660 1.28 christos /* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct timespec *" */ 661 1.28 christos #define FREEBSD_SYS_clock_getres 234 662 1.28 christos 663 1.28 christos /* syscall: "nanosleep" ret: "int" args: "const struct timespec *" "struct timespec *" */ 664 1.28 christos #define FREEBSD_SYS_nanosleep 240 665 1.28 christos 666 1.44 jdolecek /* syscall: "minherit" ret: "int" args: "void *" "size_t" "int" */ 667 1.44 jdolecek #define FREEBSD_SYS_minherit 250 668 1.47 pooka 669 1.47 pooka /* syscall: "rfork" ret: "int" args: "int" */ 670 1.47 pooka #define FREEBSD_SYS_rfork 251 671 1.44 jdolecek 672 1.22 christos /* syscall: "issetugid" ret: "int" args: */ 673 1.22 christos #define FREEBSD_SYS_issetugid 253 674 1.6 thorpej 675 1.28 christos /* syscall: "lchown" ret: "int" args: "const char *" "int" "int" */ 676 1.10 enami #define FREEBSD_SYS_lchown 254 677 1.10 enami 678 1.28 christos /* syscall: "getdents" ret: "int" args: "int" "char *" "size_t" */ 679 1.28 christos #define FREEBSD_SYS_getdents 272 680 1.28 christos 681 1.28 christos /* syscall: "lchmod" ret: "int" args: "const char *" "mode_t" */ 682 1.28 christos #define FREEBSD_SYS_lchmod 274 683 1.28 christos 684 1.28 christos /* syscall: "netbsd_lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */ 685 1.28 christos #define FREEBSD_SYS_netbsd_lchown 275 686 1.28 christos 687 1.28 christos /* syscall: "lutimes" ret: "int" args: "const char *" "const struct timeval *" */ 688 1.28 christos #define FREEBSD_SYS_lutimes 276 689 1.28 christos 690 1.28 christos /* syscall: "__msync13" ret: "int" args: "void *" "size_t" "int" */ 691 1.28 christos #define FREEBSD_SYS___msync13 277 692 1.28 christos 693 1.28 christos /* syscall: "__stat13" ret: "int" args: "const char *" "struct stat *" */ 694 1.28 christos #define FREEBSD_SYS___stat13 278 695 1.28 christos 696 1.28 christos /* syscall: "__fstat13" ret: "int" args: "int" "struct stat *" */ 697 1.28 christos #define FREEBSD_SYS___fstat13 279 698 1.28 christos 699 1.28 christos /* syscall: "__lstat13" ret: "int" args: "const char *" "struct stat *" */ 700 1.28 christos #define FREEBSD_SYS___lstat13 280 701 1.44 jdolecek 702 1.44 jdolecek /* syscall: "fhstatfs" ret: "int" args: "const fhandle_t *" "struct statfs *" */ 703 1.44 jdolecek #define FREEBSD_SYS_fhstatfs 297 704 1.44 jdolecek 705 1.44 jdolecek /* syscall: "fhopen" ret: "int" args: "const fhandle_t *" "int" */ 706 1.44 jdolecek #define FREEBSD_SYS_fhopen 298 707 1.44 jdolecek 708 1.44 jdolecek /* syscall: "fhstat" ret: "int" args: "const fhandle_t *" "struct stat *" */ 709 1.44 jdolecek #define FREEBSD_SYS_fhstat 299 710 1.28 christos 711 1.33 tv /* syscall: "getsid" ret: "pid_t" args: "pid_t" */ 712 1.33 tv #define FREEBSD_SYS_getsid 310 713 1.33 tv 714 1.48 gmcgarry /* syscall: "yield" ret: "void" args: */ 715 1.48 gmcgarry #define FREEBSD_SYS_yield 321 716 1.48 gmcgarry 717 1.33 tv /* syscall: "mlockall" ret: "int" args: "int" */ 718 1.33 tv #define FREEBSD_SYS_mlockall 324 719 1.33 tv 720 1.33 tv /* syscall: "munlockall" ret: "int" args: */ 721 1.33 tv #define FREEBSD_SYS_munlockall 325 722 1.33 tv 723 1.33 tv /* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */ 724 1.33 tv #define FREEBSD_SYS___getcwd 326 725 1.48 gmcgarry 726 1.48 gmcgarry /* syscall: "sched_setparam" ret: "int" args: "pid_t" "const struct freebsd_sched_param *" */ 727 1.48 gmcgarry #define FREEBSD_SYS_sched_setparam 327 728 1.48 gmcgarry 729 1.48 gmcgarry /* syscall: "sched_getparam" ret: "int" args: "pid_t" "struct freebsd_sched_param *" */ 730 1.48 gmcgarry #define FREEBSD_SYS_sched_getparam 328 731 1.48 gmcgarry 732 1.48 gmcgarry /* syscall: "sched_setscheduler" ret: "int" args: "pid_t" "int" "const struct sched_param *" */ 733 1.48 gmcgarry #define FREEBSD_SYS_sched_setscheduler 329 734 1.48 gmcgarry 735 1.48 gmcgarry /* syscall: "sched_getscheduler" ret: "int" args: "pid_t" */ 736 1.48 gmcgarry #define FREEBSD_SYS_sched_getscheduler 330 737 1.48 gmcgarry 738 1.48 gmcgarry /* syscall: "sched_yield" ret: "int" args: */ 739 1.48 gmcgarry #define FREEBSD_SYS_sched_yield 331 740 1.48 gmcgarry 741 1.48 gmcgarry /* syscall: "sched_get_priority_max" ret: "int" args: "int" */ 742 1.48 gmcgarry #define FREEBSD_SYS_sched_get_priority_max 332 743 1.48 gmcgarry 744 1.48 gmcgarry /* syscall: "sched_get_priority_min" ret: "int" args: "int" */ 745 1.48 gmcgarry #define FREEBSD_SYS_sched_get_priority_min 333 746 1.41 jdolecek 747 1.41 jdolecek /* syscall: "utrace" ret: "int" args: "void *" "size_t" */ 748 1.41 jdolecek #define FREEBSD_SYS_utrace 335 749 1.34 onoe 750 1.34 onoe /* syscall: "__sigprocmask14" ret: "int" args: "int" "const sigset_t *" "sigset_t *" */ 751 1.34 onoe #define FREEBSD_SYS___sigprocmask14 340 752 1.34 onoe 753 1.34 onoe /* syscall: "__sigsuspend14" ret: "int" args: "const sigset_t *" */ 754 1.34 onoe #define FREEBSD_SYS___sigsuspend14 341 755 1.34 onoe 756 1.34 onoe /* syscall: "sigaction4" ret: "int" args: "int" "const struct freebsd_sigaction4 *" "struct freebsd_sigaction4 *" */ 757 1.34 onoe #define FREEBSD_SYS_sigaction4 342 758 1.34 onoe 759 1.34 onoe /* syscall: "__sigpending14" ret: "int" args: "const sigset_t *" */ 760 1.34 onoe #define FREEBSD_SYS___sigpending14 343 761 1.33 tv 762 1.52 jdolecek /* syscall: "lchflags" ret: "int" args: "const char *" "u_long" */ 763 1.52 jdolecek #define FREEBSD_SYS_lchflags 391 764 1.52 jdolecek 765 1.52 jdolecek #if defined(P1003_1B_SEMAPHORE) || !defined(_KERNEL) 766 1.52 jdolecek /* syscall: "_ksem_close" ret: "int" args: "semid_t" */ 767 1.52 jdolecek #define FREEBSD_SYS__ksem_close 400 768 1.52 jdolecek 769 1.52 jdolecek /* syscall: "_ksem_post" ret: "int" args: "semid_t" */ 770 1.52 jdolecek #define FREEBSD_SYS__ksem_post 401 771 1.52 jdolecek 772 1.52 jdolecek /* syscall: "_ksem_wait" ret: "int" args: "semid_t" */ 773 1.52 jdolecek #define FREEBSD_SYS__ksem_wait 402 774 1.52 jdolecek 775 1.52 jdolecek /* syscall: "_ksem_trywait" ret: "int" args: "semid_t" */ 776 1.52 jdolecek #define FREEBSD_SYS__ksem_trywait 403 777 1.52 jdolecek 778 1.52 jdolecek /* syscall: "_ksem_unlink" ret: "int" args: "const char *" */ 779 1.52 jdolecek #define FREEBSD_SYS__ksem_unlink 406 780 1.52 jdolecek 781 1.52 jdolecek /* syscall: "_ksem_getvalue" ret: "int" args: "semid_t" "unsigned int *" */ 782 1.52 jdolecek #define FREEBSD_SYS__ksem_getvalue 407 783 1.52 jdolecek 784 1.52 jdolecek /* syscall: "_ksem_destroy" ret: "int" args: "semid_t" */ 785 1.52 jdolecek #define FREEBSD_SYS__ksem_destroy 408 786 1.52 jdolecek 787 1.52 jdolecek #else 788 1.52 jdolecek /* 400 is excluded ksem_close */ 789 1.52 jdolecek /* 401 is excluded ksem_post */ 790 1.52 jdolecek /* 402 is excluded ksem_wait */ 791 1.52 jdolecek /* 403 is excluded ksem_trywait */ 792 1.52 jdolecek /* 404 is excluded ksem_init */ 793 1.52 jdolecek /* 405 is excluded ksem_open */ 794 1.52 jdolecek /* 406 is excluded ksem_unlink */ 795 1.52 jdolecek /* 407 is excluded ksem_getvalue */ 796 1.52 jdolecek /* 408 is excluded ksem_destroy */ 797 1.52 jdolecek #endif 798 1.52 jdolecek #define FREEBSD_SYS_MAXSYSCALL 440 799 1.39 mycroft #define FREEBSD_SYS_NSYSENT 512 800