The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/sys/syscall.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* $NetBSD: syscall.h,v 1.148 2004/03/26 15:29:28 drochner Exp $ */
    2 
    3 /*
    4  * System call numbers.
    5  *
    6  * DO NOT EDIT-- this file is automatically generated.
    7  * created from NetBSD: syscalls.master,v 1.138 2004/03/26 15:18:54 drochner Exp 
    8  */
    9 
   10 /* syscall: "syscall" ret: "int" args: "int" "..." */
   11 #define SYS_syscall     0
   12 
   13 /* syscall: "exit" ret: "void" args: "int" */
   14 #define SYS_exit        1
   15 
   16 /* syscall: "fork" ret: "int" args: */
   17 #define SYS_fork        2
   18 
   19 /* syscall: "read" ret: "ssize_t" args: "int" "void *" "size_t" */
   20 #define SYS_read        3
   21 
   22 /* syscall: "write" ret: "ssize_t" args: "int" "const void *" "size_t" */
   23 #define SYS_write       4
   24 
   25 /* syscall: "open" ret: "int" args: "const char *" "int" "..." */
   26 #define SYS_open        5
   27 
   28 /* syscall: "close" ret: "int" args: "int" */
   29 #define SYS_close       6
   30 
   31 /* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage *" */
   32 #define SYS_wait4       7
   33 
   34 /* syscall: "compat_43_ocreat" ret: "int" args: "const char *" "mode_t" */
   35 #define SYS_compat_43_ocreat    8
   36 
   37 /* syscall: "link" ret: "int" args: "const char *" "const char *" */
   38 #define SYS_link        9
   39 
   40 /* syscall: "unlink" ret: "int" args: "const char *" */
   41 #define SYS_unlink      10
   42 
   43                                 /* 11 is obsolete execv */
   44 /* syscall: "chdir" ret: "int" args: "const char *" */
   45 #define SYS_chdir       12
   46 
   47 /* syscall: "fchdir" ret: "int" args: "int" */
   48 #define SYS_fchdir      13
   49 
   50 /* syscall: "mknod" ret: "int" args: "const char *" "mode_t" "dev_t" */
   51 #define SYS_mknod       14
   52 
   53 /* syscall: "chmod" ret: "int" args: "const char *" "mode_t" */
   54 #define SYS_chmod       15
   55 
   56 /* syscall: "chown" ret: "int" args: "const char *" "uid_t" "gid_t" */
   57 #define SYS_chown       16
   58 
   59 /* syscall: "break" ret: "int" args: "char *" */
   60 #define SYS_break       17
   61 
   62 /* syscall: "getfsstat" ret: "int" args: "struct statfs *" "long" "int" */
   63 #define SYS_getfsstat   18
   64 
   65 /* syscall: "compat_43_olseek" ret: "long" args: "int" "long" "int" */
   66 #define SYS_compat_43_olseek    19
   67 
   68 #ifdef COMPAT_43
   69 /* syscall: "getpid" ret: "pid_t" args: */
   70 #define SYS_getpid      20
   71 
   72 #else
   73 /* syscall: "getpid" ret: "pid_t" args: */
   74 #define SYS_getpid      20
   75 
   76 #endif
   77 /* syscall: "mount" ret: "int" args: "const char *" "const char *" "int" "void *" */
   78 #define SYS_mount       21
   79 
   80 /* syscall: "unmount" ret: "int" args: "const char *" "int" */
   81 #define SYS_unmount     22
   82 
   83 /* syscall: "setuid" ret: "int" args: "uid_t" */
   84 #define SYS_setuid      23
   85 
   86 #ifdef COMPAT_43
   87 /* syscall: "getuid" ret: "uid_t" args: */
   88 #define SYS_getuid      24
   89 
   90 #else
   91 /* syscall: "getuid" ret: "uid_t" args: */
   92 #define SYS_getuid      24
   93 
   94 #endif
   95 /* syscall: "geteuid" ret: "uid_t" args: */
   96 #define SYS_geteuid     25
   97 
   98 /* syscall: "ptrace" ret: "int" args: "int" "pid_t" "caddr_t" "int" */
   99 #define SYS_ptrace      26
  100 
  101 /* syscall: "recvmsg" ret: "ssize_t" args: "int" "struct msghdr *" "int" */
  102 #define SYS_recvmsg     27
  103 
  104 /* syscall: "sendmsg" ret: "ssize_t" args: "int" "const struct msghdr *" "int" */
  105 #define SYS_sendmsg     28
  106 
  107 /* syscall: "recvfrom" ret: "ssize_t" args: "int" "void *" "size_t" "int" "struct sockaddr *" "unsigned int *" */
  108 #define SYS_recvfrom    29
  109 
  110 /* syscall: "accept" ret: "int" args: "int" "struct sockaddr *" "unsigned int *" */
  111 #define SYS_accept      30
  112 
  113 /* syscall: "getpeername" ret: "int" args: "int" "struct sockaddr *" "unsigned int *" */
  114 #define SYS_getpeername 31
  115 
  116 /* syscall: "getsockname" ret: "int" args: "int" "struct sockaddr *" "unsigned int *" */
  117 #define SYS_getsockname 32
  118 
  119 /* syscall: "access" ret: "int" args: "const char *" "int" */
  120 #define SYS_access      33
  121 
  122 /* syscall: "chflags" ret: "int" args: "const char *" "u_long" */
  123 #define SYS_chflags     34
  124 
  125 /* syscall: "fchflags" ret: "int" args: "int" "u_long" */
  126 #define SYS_fchflags    35
  127 
  128 /* syscall: "sync" ret: "void" args: */
  129 #define SYS_sync        36
  130 
  131 /* syscall: "kill" ret: "int" args: "int" "int" */
  132 #define SYS_kill        37
  133 
  134 /* syscall: "compat_43_stat43" ret: "int" args: "const char *" "struct stat43 *" */
  135 #define SYS_compat_43_stat43    38
  136 
  137 /* syscall: "getppid" ret: "pid_t" args: */
  138 #define SYS_getppid     39
  139 
  140 /* syscall: "compat_43_lstat43" ret: "int" args: "const char *" "struct stat43 *" */
  141 #define SYS_compat_43_lstat43   40
  142 
  143 /* syscall: "dup" ret: "int" args: "int" */
  144 #define SYS_dup 41
  145 
  146 /* syscall: "pipe" ret: "int" args: */
  147 #define SYS_pipe        42
  148 
  149 /* syscall: "getegid" ret: "gid_t" args: */
  150 #define SYS_getegid     43
  151 
  152 /* syscall: "profil" ret: "int" args: "caddr_t" "size_t" "u_long" "u_int" */
  153 #define SYS_profil      44
  154 
  155 #if defined(KTRACE) || !defined(_KERNEL)
  156 /* syscall: "ktrace" ret: "int" args: "const char *" "int" "int" "int" */
  157 #define SYS_ktrace      45
  158 
  159 #else
  160                                 /* 45 is excluded ktrace */
  161 #endif
  162 /* syscall: "compat_13_sigaction13" ret: "int" args: "int" "const struct sigaction13 *" "struct sigaction13 *" */
  163 #define SYS_compat_13_sigaction13       46
  164 
  165 #ifdef COMPAT_43
  166 /* syscall: "getgid" ret: "gid_t" args: */
  167 #define SYS_getgid      47
  168 
  169 #else
  170 /* syscall: "getgid" ret: "gid_t" args: */
  171 #define SYS_getgid      47
  172 
  173 #endif
  174 /* syscall: "compat_13_sigprocmask13" ret: "int" args: "int" "int" */
  175 #define SYS_compat_13_sigprocmask13     48
  176 
  177 /* syscall: "__getlogin" ret: "int" args: "char *" "size_t" */
  178 #define SYS___getlogin  49
  179 
  180 /* syscall: "__setlogin" ret: "int" args: "const char *" */
  181 #define SYS___setlogin  50
  182 
  183 /* syscall: "acct" ret: "int" args: "const char *" */
  184 #define SYS_acct        51
  185 
  186 /* syscall: "compat_13_sigpending13" ret: "int" args: */
  187 #define SYS_compat_13_sigpending13      52
  188 
  189 /* syscall: "compat_13_sigaltstack13" ret: "int" args: "const struct sigaltstack13 *" "struct sigaltstack13 *" */
  190 #define SYS_compat_13_sigaltstack13     53
  191 
  192 /* syscall: "ioctl" ret: "int" args: "int" "u_long" "..." */
  193 #define SYS_ioctl       54
  194 
  195 /* syscall: "compat_12_oreboot" ret: "int" args: "int" */
  196 #define SYS_compat_12_oreboot   55
  197 
  198 /* syscall: "revoke" ret: "int" args: "const char *" */
  199 #define SYS_revoke      56
  200 
  201 /* syscall: "symlink" ret: "int" args: "const char *" "const char *" */
  202 #define SYS_symlink     57
  203 
  204 /* syscall: "readlink" ret: "int" args: "const char *" "char *" "size_t" */
  205 #define SYS_readlink    58
  206 
  207 /* syscall: "execve" ret: "int" args: "const char *" "char *const *" "char *const *" */
  208 #define SYS_execve      59
  209 
  210 /* syscall: "umask" ret: "mode_t" args: "mode_t" */
  211 #define SYS_umask       60
  212 
  213 /* syscall: "chroot" ret: "int" args: "const char *" */
  214 #define SYS_chroot      61
  215 
  216 /* syscall: "compat_43_fstat43" ret: "int" args: "int" "struct stat43 *" */
  217 #define SYS_compat_43_fstat43   62
  218 
  219 /* syscall: "compat_43_ogetkerninfo" ret: "int" args: "int" "char *" "int *" "int" */
  220 #define SYS_compat_43_ogetkerninfo      63
  221 
  222 /* syscall: "compat_43_ogetpagesize" ret: "int" args: */
  223 #define SYS_compat_43_ogetpagesize      64
  224 
  225 /* syscall: "compat_12_msync" ret: "int" args: "caddr_t" "size_t" */
  226 #define SYS_compat_12_msync     65
  227 
  228 /* syscall: "vfork" ret: "int" args: */
  229 #define SYS_vfork       66
  230 
  231                                 /* 67 is obsolete vread */
  232                                 /* 68 is obsolete vwrite */
  233 /* syscall: "sbrk" ret: "int" args: "intptr_t" */
  234 #define SYS_sbrk        69
  235 
  236 /* syscall: "sstk" ret: "int" args: "int" */
  237 #define SYS_sstk        70
  238 
  239 /* syscall: "compat_43_ommap" ret: "int" args: "caddr_t" "size_t" "int" "int" "int" "long" */
  240 #define SYS_compat_43_ommap     71
  241 
  242 /* syscall: "vadvise" ret: "int" args: "int" */
  243 #define SYS_vadvise     72
  244 
  245 /* syscall: "munmap" ret: "int" args: "void *" "size_t" */
  246 #define SYS_munmap      73
  247 
  248 /* syscall: "mprotect" ret: "int" args: "void *" "size_t" "int" */
  249 #define SYS_mprotect    74
  250 
  251 /* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */
  252 #define SYS_madvise     75
  253 
  254                                 /* 76 is obsolete vhangup */
  255                                 /* 77 is obsolete vlimit */
  256 /* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */
  257 #define SYS_mincore     78
  258 
  259 /* syscall: "getgroups" ret: "int" args: "int" "gid_t *" */
  260 #define SYS_getgroups   79
  261 
  262 /* syscall: "setgroups" ret: "int" args: "int" "const gid_t *" */
  263 #define SYS_setgroups   80
  264 
  265 /* syscall: "getpgrp" ret: "int" args: */
  266 #define SYS_getpgrp     81
  267 
  268 /* syscall: "setpgid" ret: "int" args: "int" "int" */
  269 #define SYS_setpgid     82
  270 
  271 /* syscall: "setitimer" ret: "int" args: "int" "const struct itimerval *" "struct itimerval *" */
  272 #define SYS_setitimer   83
  273 
  274 /* syscall: "compat_43_owait" ret: "int" args: */
  275 #define SYS_compat_43_owait     84
  276 
  277 /* syscall: "compat_12_oswapon" ret: "int" args: "const char *" */
  278 #define SYS_compat_12_oswapon   85
  279 
  280 /* syscall: "getitimer" ret: "int" args: "int" "struct itimerval *" */
  281 #define SYS_getitimer   86
  282 
  283 /* syscall: "compat_43_ogethostname" ret: "int" args: "char *" "u_int" */
  284 #define SYS_compat_43_ogethostname      87
  285 
  286 /* syscall: "compat_43_osethostname" ret: "int" args: "char *" "u_int" */
  287 #define SYS_compat_43_osethostname      88
  288 
  289 /* syscall: "compat_43_ogetdtablesize" ret: "int" args: */
  290 #define SYS_compat_43_ogetdtablesize    89
  291 
  292 /* syscall: "dup2" ret: "int" args: "int" "int" */
  293 #define SYS_dup2        90
  294 
  295 /* syscall: "fcntl" ret: "int" args: "int" "int" "..." */
  296 #define SYS_fcntl       92
  297 
  298 /* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */
  299 #define SYS_select      93
  300 
  301 /* syscall: "fsync" ret: "int" args: "int" */
  302 #define SYS_fsync       95
  303 
  304 /* syscall: "setpriority" ret: "int" args: "int" "int" "int" */
  305 #define SYS_setpriority 96
  306 
  307 /* syscall: "socket" ret: "int" args: "int" "int" "int" */
  308 #define SYS_socket      97
  309 
  310 /* syscall: "connect" ret: "int" args: "int" "const struct sockaddr *" "unsigned int" */
  311 #define SYS_connect     98
  312 
  313 /* syscall: "compat_43_oaccept" ret: "int" args: "int" "caddr_t" "int *" */
  314 #define SYS_compat_43_oaccept   99
  315 
  316 /* syscall: "getpriority" ret: "int" args: "int" "int" */
  317 #define SYS_getpriority 100
  318 
  319 /* syscall: "compat_43_osend" ret: "int" args: "int" "caddr_t" "int" "int" */
  320 #define SYS_compat_43_osend     101
  321 
  322 /* syscall: "compat_43_orecv" ret: "int" args: "int" "caddr_t" "int" "int" */
  323 #define SYS_compat_43_orecv     102
  324 
  325 /* syscall: "compat_13_sigreturn13" ret: "int" args: "struct sigcontext13 *" */
  326 #define SYS_compat_13_sigreturn13       103
  327 
  328 /* syscall: "bind" ret: "int" args: "int" "const struct sockaddr *" "unsigned int" */
  329 #define SYS_bind        104
  330 
  331 /* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "const void *" "unsigned int" */
  332 #define SYS_setsockopt  105
  333 
  334 /* syscall: "listen" ret: "int" args: "int" "int" */
  335 #define SYS_listen      106
  336 
  337                                 /* 107 is obsolete vtimes */
  338 /* syscall: "compat_43_osigvec" ret: "int" args: "int" "struct sigvec *" "struct sigvec *" */
  339 #define SYS_compat_43_osigvec   108
  340 
  341 /* syscall: "compat_43_osigblock" ret: "int" args: "int" */
  342 #define SYS_compat_43_osigblock 109
  343 
  344 /* syscall: "compat_43_osigsetmask" ret: "int" args: "int" */
  345 #define SYS_compat_43_osigsetmask       110
  346 
  347 /* syscall: "compat_13_sigsuspend13" ret: "int" args: "int" */
  348 #define SYS_compat_13_sigsuspend13      111
  349 
  350 /* syscall: "compat_43_osigstack" ret: "int" args: "struct sigstack *" "struct sigstack *" */
  351 #define SYS_compat_43_osigstack 112
  352 
  353 /* syscall: "compat_43_orecvmsg" ret: "int" args: "int" "struct omsghdr *" "int" */
  354 #define SYS_compat_43_orecvmsg  113
  355 
  356 /* syscall: "compat_43_osendmsg" ret: "int" args: "int" "caddr_t" "int" */
  357 #define SYS_compat_43_osendmsg  114
  358 
  359                                 /* 115 is obsolete vtrace */
  360 /* syscall: "gettimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
  361 #define SYS_gettimeofday        116
  362 
  363 /* syscall: "getrusage" ret: "int" args: "int" "struct rusage *" */
  364 #define SYS_getrusage   117
  365 
  366 /* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "unsigned int *" */
  367 #define SYS_getsockopt  118
  368 
  369                                 /* 119 is obsolete resuba */
  370 /* syscall: "readv" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
  371 #define SYS_readv       120
  372 
  373 /* syscall: "writev" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
  374 #define SYS_writev      121
  375 
  376 /* syscall: "settimeofday" ret: "int" args: "const struct timeval *" "const struct timezone *" */
  377 #define SYS_settimeofday        122
  378 
  379 /* syscall: "fchown" ret: "int" args: "int" "uid_t" "gid_t" */
  380 #define SYS_fchown      123
  381 
  382 /* syscall: "fchmod" ret: "int" args: "int" "mode_t" */
  383 #define SYS_fchmod      124
  384 
  385 /* syscall: "compat_43_orecvfrom" ret: "int" args: "int" "caddr_t" "size_t" "int" "caddr_t" "int *" */
  386 #define SYS_compat_43_orecvfrom 125
  387 
  388 /* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */
  389 #define SYS_setreuid    126
  390 
  391 /* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */
  392 #define SYS_setregid    127
  393 
  394 /* syscall: "rename" ret: "int" args: "const char *" "const char *" */
  395 #define SYS_rename      128
  396 
  397 /* syscall: "compat_43_otruncate" ret: "int" args: "const char *" "long" */
  398 #define SYS_compat_43_otruncate 129
  399 
  400 /* syscall: "compat_43_oftruncate" ret: "int" args: "int" "long" */
  401 #define SYS_compat_43_oftruncate        130
  402 
  403 /* syscall: "flock" ret: "int" args: "int" "int" */
  404 #define SYS_flock       131
  405 
  406 /* syscall: "mkfifo" ret: "int" args: "const char *" "mode_t" */
  407 #define SYS_mkfifo      132
  408 
  409 /* syscall: "sendto" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "const struct sockaddr *" "unsigned int" */
  410 #define SYS_sendto      133
  411 
  412 /* syscall: "shutdown" ret: "int" args: "int" "int" */
  413 #define SYS_shutdown    134
  414 
  415 /* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
  416 #define SYS_socketpair  135
  417 
  418 /* syscall: "mkdir" ret: "int" args: "const char *" "mode_t" */
  419 #define SYS_mkdir       136
  420 
  421 /* syscall: "rmdir" ret: "int" args: "const char *" */
  422 #define SYS_rmdir       137
  423 
  424 /* syscall: "utimes" ret: "int" args: "const char *" "const struct timeval *" */
  425 #define SYS_utimes      138
  426 
  427                                 /* 139 is obsolete 4.2 sigreturn */
  428 /* syscall: "adjtime" ret: "int" args: "const struct timeval *" "struct timeval *" */
  429 #define SYS_adjtime     140
  430 
  431 /* syscall: "compat_43_ogetpeername" ret: "int" args: "int" "caddr_t" "int *" */
  432 #define SYS_compat_43_ogetpeername      141
  433 
  434 /* syscall: "compat_43_ogethostid" ret: "int32_t" args: */
  435 #define SYS_compat_43_ogethostid        142
  436 
  437 /* syscall: "compat_43_osethostid" ret: "int" args: "int32_t" */
  438 #define SYS_compat_43_osethostid        143
  439 
  440 /* syscall: "compat_43_ogetrlimit" ret: "int" args: "int" "struct orlimit *" */
  441 #define SYS_compat_43_ogetrlimit        144
  442 
  443 /* syscall: "compat_43_osetrlimit" ret: "int" args: "int" "const struct orlimit *" */
  444 #define SYS_compat_43_osetrlimit        145
  445 
  446 /* syscall: "compat_43_okillpg" ret: "int" args: "int" "int" */
  447 #define SYS_compat_43_okillpg   146
  448 
  449 /* syscall: "setsid" ret: "int" args: */
  450 #define SYS_setsid      147
  451 
  452 /* syscall: "quotactl" ret: "int" args: "const char *" "int" "int" "caddr_t" */
  453 #define SYS_quotactl    148
  454 
  455 /* syscall: "compat_43_oquota" ret: "int" args: */
  456 #define SYS_compat_43_oquota    149
  457 
  458 /* syscall: "compat_43_ogetsockname" ret: "int" args: "int" "caddr_t" "int *" */
  459 #define SYS_compat_43_ogetsockname      150
  460 
  461 #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
  462 /* syscall: "nfssvc" ret: "int" args: "int" "void *" */
  463 #define SYS_nfssvc      155
  464 
  465 #else
  466                                 /* 155 is excluded nfssvc */
  467 #endif
  468 /* syscall: "compat_43_ogetdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */
  469 #define SYS_compat_43_ogetdirentries    156
  470 
  471 /* syscall: "statfs" ret: "int" args: "const char *" "struct statfs *" */
  472 #define SYS_statfs      157
  473 
  474 /* syscall: "fstatfs" ret: "int" args: "int" "struct statfs *" */
  475 #define SYS_fstatfs     158
  476 
  477 /* syscall: "getfh" ret: "int" args: "const char *" "fhandle_t *" */
  478 #define SYS_getfh       161
  479 
  480 /* syscall: "compat_09_ogetdomainname" ret: "int" args: "char *" "int" */
  481 #define SYS_compat_09_ogetdomainname    162
  482 
  483 /* syscall: "compat_09_osetdomainname" ret: "int" args: "char *" "int" */
  484 #define SYS_compat_09_osetdomainname    163
  485 
  486 /* syscall: "compat_09_ouname" ret: "int" args: "struct outsname *" */
  487 #define SYS_compat_09_ouname    164
  488 
  489 /* syscall: "sysarch" ret: "int" args: "int" "void *" */
  490 #define SYS_sysarch     165
  491 
  492 #if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64)
  493 /* syscall: "compat_10_osemsys" ret: "int" args: "int" "int" "int" "int" "int" */
  494 #define SYS_compat_10_osemsys   169
  495 
  496 #else
  497                                 /* 169 is excluded 1.0 semsys */
  498 #endif
  499 #if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64)
  500 /* syscall: "compat_10_omsgsys" ret: "int" args: "int" "int" "int" "int" "int" "int" */
  501 #define SYS_compat_10_omsgsys   170
  502 
  503 #else
  504                                 /* 170 is excluded 1.0 msgsys */
  505 #endif
  506 #if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64)
  507 /* syscall: "compat_10_oshmsys" ret: "int" args: "int" "int" "int" "int" */
  508 #define SYS_compat_10_oshmsys   171
  509 
  510 #else
  511                                 /* 171 is excluded 1.0 shmsys */
  512 #endif
  513 /* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "int" "off_t" */
  514 #define SYS_pread       173
  515 
  516 /* syscall: "pwrite" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "off_t" */
  517 #define SYS_pwrite      174
  518 
  519 /* syscall: "ntp_gettime" ret: "int" args: "struct ntptimeval *" */
  520 #define SYS_ntp_gettime 175
  521 
  522 #if defined(NTP) || !defined(_KERNEL)
  523 /* syscall: "ntp_adjtime" ret: "int" args: "struct timex *" */
  524 #define SYS_ntp_adjtime 176
  525 
  526 #else
  527                                 /* 176 is excluded ntp_adjtime */
  528 #endif
  529 /* syscall: "setgid" ret: "int" args: "gid_t" */
  530 #define SYS_setgid      181
  531 
  532 /* syscall: "setegid" ret: "int" args: "gid_t" */
  533 #define SYS_setegid     182
  534 
  535 /* syscall: "seteuid" ret: "int" args: "uid_t" */
  536 #define SYS_seteuid     183
  537 
  538 #if defined(LFS) || !defined(_KERNEL)
  539 /* syscall: "lfs_bmapv" ret: "int" args: "fsid_t *" "struct block_info *" "int" */
  540 #define SYS_lfs_bmapv   184
  541 
  542 /* syscall: "lfs_markv" ret: "int" args: "fsid_t *" "struct block_info *" "int" */
  543 #define SYS_lfs_markv   185
  544 
  545 /* syscall: "lfs_segclean" ret: "int" args: "fsid_t *" "u_long" */
  546 #define SYS_lfs_segclean        186
  547 
  548 /* syscall: "lfs_segwait" ret: "int" args: "fsid_t *" "struct timeval *" */
  549 #define SYS_lfs_segwait 187
  550 
  551 #else
  552                                 /* 184 is excluded lfs_bmapv */
  553                                 /* 185 is excluded lfs_markv */
  554                                 /* 186 is excluded lfs_segclean */
  555                                 /* 187 is excluded lfs_segwait */
  556 #endif
  557 /* syscall: "compat_12_stat12" ret: "int" args: "const char *" "struct stat12 *" */
  558 #define SYS_compat_12_stat12    188
  559 
  560 /* syscall: "compat_12_fstat12" ret: "int" args: "int" "struct stat12 *" */
  561 #define SYS_compat_12_fstat12   189
  562 
  563 /* syscall: "compat_12_lstat12" ret: "int" args: "const char *" "struct stat12 *" */
  564 #define SYS_compat_12_lstat12   190
  565 
  566 /* syscall: "pathconf" ret: "long" args: "const char *" "int" */
  567 #define SYS_pathconf    191
  568 
  569 /* syscall: "fpathconf" ret: "long" args: "int" "int" */
  570 #define SYS_fpathconf   192
  571 
  572 /* syscall: "getrlimit" ret: "int" args: "int" "struct rlimit *" */
  573 #define SYS_getrlimit   194
  574 
  575 /* syscall: "setrlimit" ret: "int" args: "int" "const struct rlimit *" */
  576 #define SYS_setrlimit   195
  577 
  578 /* syscall: "compat_12_getdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */
  579 #define SYS_compat_12_getdirentries     196
  580 
  581 /* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "long" "off_t" */
  582 #define SYS_mmap        197
  583 
  584 /* syscall: "__syscall" ret: "quad_t" args: "quad_t" "..." */
  585 #define SYS___syscall   198
  586 
  587 /* syscall: "lseek" ret: "off_t" args: "int" "int" "off_t" "int" */
  588 #define SYS_lseek       199
  589 
  590 /* syscall: "truncate" ret: "int" args: "const char *" "int" "off_t" */
  591 #define SYS_truncate    200
  592 
  593 /* syscall: "ftruncate" ret: "int" args: "int" "int" "off_t" */
  594 #define SYS_ftruncate   201
  595 
  596 /* syscall: "__sysctl" ret: "int" args: "int *" "u_int" "void *" "size_t *" "void *" "size_t" */
  597 #define SYS___sysctl    202
  598 
  599 /* syscall: "mlock" ret: "int" args: "const void *" "size_t" */
  600 #define SYS_mlock       203
  601 
  602 /* syscall: "munlock" ret: "int" args: "const void *" "size_t" */
  603 #define SYS_munlock     204
  604 
  605 /* syscall: "undelete" ret: "int" args: "const char *" */
  606 #define SYS_undelete    205
  607 
  608 /* syscall: "futimes" ret: "int" args: "int" "const struct timeval *" */
  609 #define SYS_futimes     206
  610 
  611 /* syscall: "getpgid" ret: "pid_t" args: "pid_t" */
  612 #define SYS_getpgid     207
  613 
  614 /* syscall: "reboot" ret: "int" args: "int" "char *" */
  615 #define SYS_reboot      208
  616 
  617 /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
  618 #define SYS_poll        209
  619 
  620 #if defined(LKM) || !defined(_KERNEL)
  621 #else   /* !LKM */
  622                                 /* 210 is excluded lkmnosys */
  623                                 /* 211 is excluded lkmnosys */
  624                                 /* 212 is excluded lkmnosys */
  625                                 /* 213 is excluded lkmnosys */
  626                                 /* 214 is excluded lkmnosys */
  627                                 /* 215 is excluded lkmnosys */
  628                                 /* 216 is excluded lkmnosys */
  629                                 /* 217 is excluded lkmnosys */
  630                                 /* 218 is excluded lkmnosys */
  631                                 /* 219 is excluded lkmnosys */
  632 #endif  /* !LKM */
  633 #if defined(SYSVSEM) || !defined(_KERNEL)
  634 /* syscall: "compat_14___semctl" ret: "int" args: "int" "int" "int" "union __semun *" */
  635 #define SYS_compat_14___semctl  220
  636 
  637 /* syscall: "semget" ret: "int" args: "key_t" "int" "int" */
  638 #define SYS_semget      221
  639 
  640 /* syscall: "semop" ret: "int" args: "int" "struct sembuf *" "size_t" */
  641 #define SYS_semop       222
  642 
  643 /* syscall: "semconfig" ret: "int" args: "int" */
  644 #define SYS_semconfig   223
  645 
  646 #else
  647                                 /* 220 is excluded compat_14_semctl */
  648                                 /* 221 is excluded semget */
  649                                 /* 222 is excluded semop */
  650                                 /* 223 is excluded semconfig */
  651 #endif
  652 #if defined(SYSVMSG) || !defined(_KERNEL)
  653 /* syscall: "compat_14_msgctl" ret: "int" args: "int" "int" "struct msqid_ds14 *" */
  654 #define SYS_compat_14_msgctl    224
  655 
  656 /* syscall: "msgget" ret: "int" args: "key_t" "int" */
  657 #define SYS_msgget      225
  658 
  659 /* syscall: "msgsnd" ret: "int" args: "int" "const void *" "size_t" "int" */
  660 #define SYS_msgsnd      226
  661 
  662 /* syscall: "msgrcv" ret: "ssize_t" args: "int" "void *" "size_t" "long" "int" */
  663 #define SYS_msgrcv      227
  664 
  665 #else
  666                                 /* 224 is excluded compat_14_msgctl */
  667                                 /* 225 is excluded msgget */
  668                                 /* 226 is excluded msgsnd */
  669                                 /* 227 is excluded msgrcv */
  670 #endif
  671 #if defined(SYSVSHM) || !defined(_KERNEL)
  672 /* syscall: "shmat" ret: "void *" args: "int" "const void *" "int" */
  673 #define SYS_shmat       228
  674 
  675 /* syscall: "compat_14_shmctl" ret: "int" args: "int" "int" "struct shmid_ds14 *" */
  676 #define SYS_compat_14_shmctl    229
  677 
  678 /* syscall: "shmdt" ret: "int" args: "const void *" */
  679 #define SYS_shmdt       230
  680 
  681 /* syscall: "shmget" ret: "int" args: "key_t" "size_t" "int" */
  682 #define SYS_shmget      231
  683 
  684 #else
  685                                 /* 228 is excluded shmat */
  686                                 /* 229 is excluded compat_14_shmctl */
  687                                 /* 230 is excluded shmdt */
  688                                 /* 231 is excluded shmget */
  689 #endif
  690 /* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct timespec *" */
  691 #define SYS_clock_gettime       232
  692 
  693 /* syscall: "clock_settime" ret: "int" args: "clockid_t" "const struct timespec *" */
  694 #define SYS_clock_settime       233
  695 
  696 /* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct timespec *" */
  697 #define SYS_clock_getres        234
  698 
  699 /* syscall: "timer_create" ret: "int" args: "clockid_t" "struct sigevent *" "timer_t *" */
  700 #define SYS_timer_create        235
  701 
  702 /* syscall: "timer_delete" ret: "int" args: "timer_t" */
  703 #define SYS_timer_delete        236
  704 
  705 /* syscall: "timer_settime" ret: "int" args: "timer_t" "int" "const struct itimerspec *" "struct itimerspec *" */
  706 #define SYS_timer_settime       237
  707 
  708 /* syscall: "timer_gettime" ret: "int" args: "timer_t" "struct itimerspec *" */
  709 #define SYS_timer_gettime       238
  710 
  711 /* syscall: "timer_getoverrun" ret: "int" args: "timer_t" */
  712 #define SYS_timer_getoverrun    239
  713 
  714 /* syscall: "nanosleep" ret: "int" args: "const struct timespec *" "struct timespec *" */
  715 #define SYS_nanosleep   240
  716 
  717 /* syscall: "fdatasync" ret: "int" args: "int" */
  718 #define SYS_fdatasync   241
  719 
  720 /* syscall: "mlockall" ret: "int" args: "int" */
  721 #define SYS_mlockall    242
  722 
  723 /* syscall: "munlockall" ret: "int" args: */
  724 #define SYS_munlockall  243
  725 
  726 /* syscall: "__sigtimedwait" ret: "int" args: "const sigset_t *" "siginfo_t *" "struct timespec *" */
  727 #define SYS___sigtimedwait      244
  728 
  729 #if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL) && defined(_LIBC))
  730 /* syscall: "_ksem_init" ret: "int" args: "unsigned int" "semid_t *" */
  731 #define SYS__ksem_init  247
  732 
  733 /* syscall: "_ksem_open" ret: "int" args: "const char *" "int" "mode_t" "unsigned int" "semid_t *" */
  734 #define SYS__ksem_open  248
  735 
  736 /* syscall: "_ksem_unlink" ret: "int" args: "const char *" */
  737 #define SYS__ksem_unlink        249
  738 
  739 /* syscall: "_ksem_close" ret: "int" args: "semid_t" */
  740 #define SYS__ksem_close 250
  741 
  742 /* syscall: "_ksem_post" ret: "int" args: "semid_t" */
  743 #define SYS__ksem_post  251
  744 
  745 /* syscall: "_ksem_wait" ret: "int" args: "semid_t" */
  746 #define SYS__ksem_wait  252
  747 
  748 /* syscall: "_ksem_trywait" ret: "int" args: "semid_t" */
  749 #define SYS__ksem_trywait       253
  750 
  751 /* syscall: "_ksem_getvalue" ret: "int" args: "semid_t" "unsigned int *" */
  752 #define SYS__ksem_getvalue      254
  753 
  754 /* syscall: "_ksem_destroy" ret: "int" args: "semid_t" */
  755 #define SYS__ksem_destroy       255
  756 
  757 #else
  758                                 /* 247 is excluded sys__ksem_init */
  759                                 /* 248 is excluded sys__ksem_open */
  760                                 /* 249 is excluded sys__ksem_unlink */
  761                                 /* 250 is excluded sys__ksem_close */
  762                                 /* 251 is excluded sys__ksem_post */
  763                                 /* 252 is excluded sys__ksem_wait */
  764                                 /* 253 is excluded sys__ksem_trywait */
  765                                 /* 254 is excluded sys__ksem_getvalue */
  766                                 /* 255 is excluded sys__ksem_destroy */
  767 #endif
  768 /* syscall: "__posix_rename" ret: "int" args: "const char *" "const char *" */
  769 #define SYS___posix_rename      270
  770 
  771 /* syscall: "swapctl" ret: "int" args: "int" "const void *" "int" */
  772 #define SYS_swapctl     271
  773 
  774 /* syscall: "getdents" ret: "int" args: "int" "char *" "size_t" */
  775 #define SYS_getdents    272
  776 
  777 /* syscall: "minherit" ret: "int" args: "void *" "size_t" "int" */
  778 #define SYS_minherit    273
  779 
  780 /* syscall: "lchmod" ret: "int" args: "const char *" "mode_t" */
  781 #define SYS_lchmod      274
  782 
  783 /* syscall: "lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */
  784 #define SYS_lchown      275
  785 
  786 /* syscall: "lutimes" ret: "int" args: "const char *" "const struct timeval *" */
  787 #define SYS_lutimes     276
  788 
  789 /* syscall: "__msync13" ret: "int" args: "void *" "size_t" "int" */
  790 #define SYS___msync13   277
  791 
  792 /* syscall: "__stat13" ret: "int" args: "const char *" "struct stat *" */
  793 #define SYS___stat13    278
  794 
  795 /* syscall: "__fstat13" ret: "int" args: "int" "struct stat *" */
  796 #define SYS___fstat13   279
  797 
  798 /* syscall: "__lstat13" ret: "int" args: "const char *" "struct stat *" */
  799 #define SYS___lstat13   280
  800 
  801 /* syscall: "__sigaltstack14" ret: "int" args: "const struct sigaltstack *" "struct sigaltstack *" */
  802 #define SYS___sigaltstack14     281
  803 
  804 /* syscall: "__vfork14" ret: "int" args: */
  805 #define SYS___vfork14   282
  806 
  807 /* syscall: "__posix_chown" ret: "int" args: "const char *" "uid_t" "gid_t" */
  808 #define SYS___posix_chown       283
  809 
  810 /* syscall: "__posix_fchown" ret: "int" args: "int" "uid_t" "gid_t" */
  811 #define SYS___posix_fchown      284
  812 
  813 /* syscall: "__posix_lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */
  814 #define SYS___posix_lchown      285
  815 
  816 /* syscall: "getsid" ret: "pid_t" args: "pid_t" */
  817 #define SYS_getsid      286
  818 
  819 /* syscall: "__clone" ret: "pid_t" args: "int" "void *" */
  820 #define SYS___clone     287
  821 
  822 #if defined(KTRACE) || !defined(_KERNEL)
  823 /* syscall: "fktrace" ret: "int" args: "const int" "int" "int" "int" */
  824 #define SYS_fktrace     288
  825 
  826 #else
  827                                 /* 288 is excluded ktrace */
  828 #endif
  829 /* syscall: "preadv" ret: "ssize_t" args: "int" "const struct iovec *" "int" "int" "off_t" */
  830 #define SYS_preadv      289
  831 
  832 /* syscall: "pwritev" ret: "ssize_t" args: "int" "const struct iovec *" "int" "int" "off_t" */
  833 #define SYS_pwritev     290
  834 
  835 /* syscall: "compat_16___sigaction14" ret: "int" args: "int" "const struct sigaction *" "struct sigaction *" */
  836 #define SYS_compat_16___sigaction14     291
  837 
  838 /* syscall: "__sigpending14" ret: "int" args: "sigset_t *" */
  839 #define SYS___sigpending14      292
  840 
  841 /* syscall: "__sigprocmask14" ret: "int" args: "int" "const sigset_t *" "sigset_t *" */
  842 #define SYS___sigprocmask14     293
  843 
  844 /* syscall: "__sigsuspend14" ret: "int" args: "const sigset_t *" */
  845 #define SYS___sigsuspend14      294
  846 
  847 /* syscall: "compat_16___sigreturn14" ret: "int" args: "struct sigcontext *" */
  848 #define SYS_compat_16___sigreturn14     295
  849 
  850 /* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */
  851 #define SYS___getcwd    296
  852 
  853 /* syscall: "fchroot" ret: "int" args: "int" */
  854 #define SYS_fchroot     297
  855 
  856 /* syscall: "fhopen" ret: "int" args: "const fhandle_t *" "int" */
  857 #define SYS_fhopen      298
  858 
  859 /* syscall: "fhstat" ret: "int" args: "const fhandle_t *" "struct stat *" */
  860 #define SYS_fhstat      299
  861 
  862 /* syscall: "fhstatfs" ret: "int" args: "const fhandle_t *" "struct statfs *" */
  863 #define SYS_fhstatfs    300
  864 
  865 #if defined(SYSVSEM) || !defined(_KERNEL)
  866 /* syscall: "____semctl13" ret: "int" args: "int" "int" "int" "..." */
  867 #define SYS_____semctl13        301
  868 
  869 #else
  870                                 /* 301 is excluded ____semctl13 */
  871 #endif
  872 #if defined(SYSVMSG) || !defined(_KERNEL)
  873 /* syscall: "__msgctl13" ret: "int" args: "int" "int" "struct msqid_ds *" */
  874 #define SYS___msgctl13  302
  875 
  876 #else
  877                                 /* 302 is excluded __msgctl13 */
  878 #endif
  879 #if defined(SYSVSHM) || !defined(_KERNEL)
  880 /* syscall: "__shmctl13" ret: "int" args: "int" "int" "struct shmid_ds *" */
  881 #define SYS___shmctl13  303
  882 
  883 #else
  884                                 /* 303 is excluded __shmctl13 */
  885 #endif
  886 /* syscall: "lchflags" ret: "int" args: "const char *" "u_long" */
  887 #define SYS_lchflags    304
  888 
  889 /* syscall: "issetugid" ret: "int" args: */
  890 #define SYS_issetugid   305
  891 
  892 /* syscall: "utrace" ret: "int" args: "const char *" "void *" "size_t" */
  893 #define SYS_utrace      306
  894 
  895 /* syscall: "getcontext" ret: "int" args: "struct __ucontext *" */
  896 #define SYS_getcontext  307
  897 
  898 /* syscall: "setcontext" ret: "int" args: "const struct __ucontext *" */
  899 #define SYS_setcontext  308
  900 
  901 /* syscall: "_lwp_create" ret: "int" args: "const struct __ucontext *" "u_long" "lwpid_t *" */
  902 #define SYS__lwp_create 309
  903 
  904 /* syscall: "_lwp_exit" ret: "int" args: */
  905 #define SYS__lwp_exit   310
  906 
  907 /* syscall: "_lwp_self" ret: "lwpid_t" args: */
  908 #define SYS__lwp_self   311
  909 
  910 /* syscall: "_lwp_wait" ret: "int" args: "lwpid_t" "lwpid_t *" */
  911 #define SYS__lwp_wait   312
  912 
  913 /* syscall: "_lwp_suspend" ret: "int" args: "lwpid_t" */
  914 #define SYS__lwp_suspend        313
  915 
  916 /* syscall: "_lwp_continue" ret: "int" args: "lwpid_t" */
  917 #define SYS__lwp_continue       314
  918 
  919 /* syscall: "_lwp_wakeup" ret: "int" args: "lwpid_t" */
  920 #define SYS__lwp_wakeup 315
  921 
  922 /* syscall: "_lwp_getprivate" ret: "void *" args: */
  923 #define SYS__lwp_getprivate     316
  924 
  925 /* syscall: "_lwp_setprivate" ret: "void" args: "void *" */
  926 #define SYS__lwp_setprivate     317
  927 
  928 /* syscall: "sa_register" ret: "int" args: "sa_upcall_t" "sa_upcall_t *" "int" "ssize_t" */
  929 #define SYS_sa_register 330
  930 
  931 /* syscall: "sa_stacks" ret: "int" args: "int" "stack_t *" */
  932 #define SYS_sa_stacks   331
  933 
  934 /* syscall: "sa_enable" ret: "int" args: */
  935 #define SYS_sa_enable   332
  936 
  937 /* syscall: "sa_setconcurrency" ret: "int" args: "int" */
  938 #define SYS_sa_setconcurrency   333
  939 
  940 /* syscall: "sa_yield" ret: "int" args: */
  941 #define SYS_sa_yield    334
  942 
  943 /* syscall: "sa_preempt" ret: "int" args: "int" */
  944 #define SYS_sa_preempt  335
  945 
  946                                 /* 336 is obsolete sys_sa_unblockyield */
  947 /* syscall: "__sigaction_sigtramp" ret: "int" args: "int" "const struct sigaction *" "struct sigaction *" "const void *" "int" */
  948 #define SYS___sigaction_sigtramp        340
  949 
  950 /* syscall: "pmc_get_info" ret: "int" args: "int" "int" "void *" */
  951 #define SYS_pmc_get_info        341
  952 
  953 /* syscall: "pmc_control" ret: "int" args: "int" "int" "void *" */
  954 #define SYS_pmc_control 342
  955 
  956 /* syscall: "rasctl" ret: "int" args: "caddr_t" "size_t" "int" */
  957 #define SYS_rasctl      343
  958 
  959 /* syscall: "kqueue" ret: "int" args: */
  960 #define SYS_kqueue      344
  961 
  962 /* syscall: "kevent" ret: "int" args: "int" "const struct kevent *" "size_t" "struct kevent *" "size_t" "const struct timespec *" */
  963 #define SYS_kevent      345
  964 
  965 /* syscall: "fsync_range" ret: "int" args: "int" "int" "off_t" "off_t" */
  966 #define SYS_fsync_range 354
  967 
  968 /* syscall: "uuidgen" ret: "int" args: "struct uuid *" "int" */
  969 #define SYS_uuidgen     355
  970 
  971 #define SYS_MAXSYSCALL  356
  972 #define SYS_NSYSENT     512

Cache object: 2e2156a6c2a9bc20dd42a6a6fbcd53a5


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.