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/compat/sunos/sunos_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: sunos_syscall.h,v 1.80 2008/06/21 13:22:04 tsutsui 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.69 2008/06/21 13:20:46 tsutsui Exp
    8  */
    9 
   10 #ifndef _SUNOS_SYS_SYSCALL_H_
   11 #define _SUNOS_SYS_SYSCALL_H_
   12 
   13 #define SUNOS_SYS_MAXSYSARGS    8
   14 
   15 /* syscall: "syscall" ret: "int" args: */
   16 #define SUNOS_SYS_syscall       0
   17 
   18 /* syscall: "exit" ret: "int" args: "int" */
   19 #define SUNOS_SYS_exit  1
   20 
   21 /* syscall: "fork" ret: "int" args: */
   22 #define SUNOS_SYS_fork  2
   23 
   24 /* syscall: "read" ret: "int" args: "int" "char *" "u_int" */
   25 #define SUNOS_SYS_read  3
   26 
   27 /* syscall: "write" ret: "int" args: "int" "char *" "u_int" */
   28 #define SUNOS_SYS_write 4
   29 
   30 /* syscall: "open" ret: "int" args: "const char *" "int" "int" */
   31 #define SUNOS_SYS_open  5
   32 
   33 /* syscall: "close" ret: "int" args: "int" */
   34 #define SUNOS_SYS_close 6
   35 
   36 /* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage *" */
   37 #define SUNOS_SYS_wait4 7
   38 
   39 /* syscall: "creat" ret: "int" args: "const char *" "int" */
   40 #define SUNOS_SYS_creat 8
   41 
   42 /* syscall: "link" ret: "int" args: "char *" "char *" */
   43 #define SUNOS_SYS_link  9
   44 
   45 /* syscall: "unlink" ret: "int" args: "char *" */
   46 #define SUNOS_SYS_unlink        10
   47 
   48 /* syscall: "execv" ret: "int" args: "const char *" "char **" */
   49 #define SUNOS_SYS_execv 11
   50 
   51 /* syscall: "chdir" ret: "int" args: "char *" */
   52 #define SUNOS_SYS_chdir 12
   53 
   54                                 /* 13 is obsolete old_time */
   55 /* syscall: "mknod" ret: "int" args: "const char *" "int" "int" */
   56 #define SUNOS_SYS_mknod 14
   57 
   58 /* syscall: "chmod" ret: "int" args: "char *" "int" */
   59 #define SUNOS_SYS_chmod 15
   60 
   61 /* syscall: "chown" ret: "int" args: "char *" "int" "int" */
   62 #define SUNOS_SYS_chown 16
   63 
   64 /* syscall: "break" ret: "int" args: "char *" */
   65 #define SUNOS_SYS_break 17
   66 
   67                                 /* 18 is obsolete old_stat */
   68 /* syscall: "lseek" ret: "long" args: "int" "long" "int" */
   69 #define SUNOS_SYS_lseek 19
   70 
   71 /* syscall: "getpid_with_ppid" ret: "pid_t" args: */
   72 #define SUNOS_SYS_getpid_with_ppid      20
   73 
   74                                 /* 21 is obsolete sunos_old_mount */
   75 /* syscall: "setuid" ret: "int" args: "uid_t" */
   76 #define SUNOS_SYS_setuid        23
   77 
   78 /* syscall: "getuid_with_euid" ret: "uid_t" args: */
   79 #define SUNOS_SYS_getuid_with_euid      24
   80 
   81 /* syscall: "stime" ret: "int" args: "time_t *" */
   82 #define SUNOS_SYS_stime 25
   83 
   84 /* syscall: "ptrace" ret: "long" args: "int" "pid_t" "void *" "int" "char *" */
   85 #define SUNOS_SYS_ptrace        26
   86 
   87 /* syscall: "access" ret: "int" args: "const char *" "int" */
   88 #define SUNOS_SYS_access        33
   89 
   90 /* syscall: "sync" ret: "int" args: */
   91 #define SUNOS_SYS_sync  36
   92 
   93 /* syscall: "kill" ret: "int" args: "int" "int" */
   94 #define SUNOS_SYS_kill  37
   95 
   96 /* syscall: "stat" ret: "int" args: "const char *" "struct stat43 *" */
   97 #define SUNOS_SYS_stat  38
   98 
   99 /* syscall: "lstat" ret: "int" args: "const char *" "struct stat43 *" */
  100 #define SUNOS_SYS_lstat 40
  101 
  102 /* syscall: "dup" ret: "int" args: "u_int" */
  103 #define SUNOS_SYS_dup   41
  104 
  105 /* syscall: "pipe" ret: "int" args: */
  106 #define SUNOS_SYS_pipe  42
  107 
  108 /* syscall: "profil" ret: "int" args: "void *" "u_int" "u_int" "u_int" */
  109 #define SUNOS_SYS_profil        44
  110 
  111 /* syscall: "setgid" ret: "int" args: "uid_t" */
  112 #define SUNOS_SYS_setgid        46
  113 
  114 /* syscall: "getgid_with_egid" ret: "gid_t" args: */
  115 #define SUNOS_SYS_getgid_with_egid      47
  116 
  117 /* syscall: "acct" ret: "int" args: "char *" */
  118 #define SUNOS_SYS_acct  51
  119 
  120 /* syscall: "mctl" ret: "int" args: "void *" "int" "int" "void *" */
  121 #define SUNOS_SYS_mctl  53
  122 
  123 /* syscall: "ioctl" ret: "int" args: "int" "u_long" "void *" */
  124 #define SUNOS_SYS_ioctl 54
  125 
  126 /* syscall: "reboot" ret: "int" args: "int" "char *" */
  127 #define SUNOS_SYS_reboot        55
  128 
  129                                 /* 56 is obsolete sunos_owait3 */
  130 /* syscall: "symlink" ret: "int" args: "char *" "char *" */
  131 #define SUNOS_SYS_symlink       57
  132 
  133 /* syscall: "readlink" ret: "int" args: "char *" "char *" "int" */
  134 #define SUNOS_SYS_readlink      58
  135 
  136 /* syscall: "execve" ret: "int" args: "const char *" "char **" "char **" */
  137 #define SUNOS_SYS_execve        59
  138 
  139 /* syscall: "umask" ret: "int" args: "int" */
  140 #define SUNOS_SYS_umask 60
  141 
  142 /* syscall: "chroot" ret: "int" args: "char *" */
  143 #define SUNOS_SYS_chroot        61
  144 
  145 /* syscall: "fstat" ret: "int" args: "int" "struct stat43 *" */
  146 #define SUNOS_SYS_fstat 62
  147 
  148 /* syscall: "getpagesize" ret: "int" args: */
  149 #define SUNOS_SYS_getpagesize   64
  150 
  151 /* syscall: "omsync" ret: "int" args: "void *" "size_t" "int" */
  152 #define SUNOS_SYS_omsync        65
  153 
  154 /* syscall: "vfork" ret: "int" args: */
  155 #define SUNOS_SYS_vfork 66
  156 
  157                                 /* 67 is obsolete vread */
  158                                 /* 68 is obsolete vwrite */
  159 /* syscall: "sbrk" ret: "int" args: "intptr_t" */
  160 #define SUNOS_SYS_sbrk  69
  161 
  162 /* syscall: "sstk" ret: "int" args: "int" */
  163 #define SUNOS_SYS_sstk  70
  164 
  165 /* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "long" */
  166 #define SUNOS_SYS_mmap  71
  167 
  168 /* syscall: "vadvise" ret: "int" args: "int" */
  169 #define SUNOS_SYS_vadvise       72
  170 
  171 /* syscall: "munmap" ret: "int" args: "void *" "size_t" */
  172 #define SUNOS_SYS_munmap        73
  173 
  174 /* syscall: "mprotect" ret: "int" args: "void *" "size_t" "int" */
  175 #define SUNOS_SYS_mprotect      74
  176 
  177 /* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */
  178 #define SUNOS_SYS_madvise       75
  179 
  180 /* syscall: "vhangup" ret: "int" args: */
  181 #define SUNOS_SYS_vhangup       76
  182 
  183 /* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */
  184 #define SUNOS_SYS_mincore       78
  185 
  186 /* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */
  187 #define SUNOS_SYS_getgroups     79
  188 
  189 /* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */
  190 #define SUNOS_SYS_setgroups     80
  191 
  192 /* syscall: "getpgrp" ret: "int" args: */
  193 #define SUNOS_SYS_getpgrp       81
  194 
  195 /* syscall: "setpgrp" ret: "int" args: "int" "int" */
  196 #define SUNOS_SYS_setpgrp       82
  197 
  198 /* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval *" "struct itimerval *" */
  199 #define SUNOS_SYS_setitimer     83
  200 
  201 /* syscall: "swapon" ret: "int" args: "char *" */
  202 #define SUNOS_SYS_swapon        85
  203 
  204 /* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval *" */
  205 #define SUNOS_SYS_getitimer     86
  206 
  207 /* syscall: "gethostname" ret: "int" args: "char *" "u_int" */
  208 #define SUNOS_SYS_gethostname   87
  209 
  210 /* syscall: "sethostname" ret: "int" args: "char *" "u_int" */
  211 #define SUNOS_SYS_sethostname   88
  212 
  213 /* syscall: "getdtablesize" ret: "int" args: */
  214 #define SUNOS_SYS_getdtablesize 89
  215 
  216 /* syscall: "dup2" ret: "int" args: "u_int" "u_int" */
  217 #define SUNOS_SYS_dup2  90
  218 
  219 /* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */
  220 #define SUNOS_SYS_fcntl 92
  221 
  222 /* syscall: "select" ret: "int" args: "u_int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */
  223 #define SUNOS_SYS_select        93
  224 
  225 /* syscall: "fsync" ret: "int" args: "int" */
  226 #define SUNOS_SYS_fsync 95
  227 
  228 /* syscall: "setpriority" ret: "int" args: "int" "int" "int" */
  229 #define SUNOS_SYS_setpriority   96
  230 
  231 /* syscall: "socket" ret: "int" args: "int" "int" "int" */
  232 #define SUNOS_SYS_socket        97
  233 
  234 /* syscall: "connect" ret: "int" args: "int" "void *" "int" */
  235 #define SUNOS_SYS_connect       98
  236 
  237 /* syscall: "accept" ret: "int" args: "int" "void *" "int *" */
  238 #define SUNOS_SYS_accept        99
  239 
  240 /* syscall: "getpriority" ret: "int" args: "int" "int" */
  241 #define SUNOS_SYS_getpriority   100
  242 
  243 /* syscall: "send" ret: "int" args: "int" "void *" "int" "int" */
  244 #define SUNOS_SYS_send  101
  245 
  246 /* syscall: "recv" ret: "int" args: "int" "void *" "int" "int" */
  247 #define SUNOS_SYS_recv  102
  248 
  249 /* syscall: "bind" ret: "int" args: "int" "void *" "int" */
  250 #define SUNOS_SYS_bind  104
  251 
  252 /* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "void *" "int" */
  253 #define SUNOS_SYS_setsockopt    105
  254 
  255 /* syscall: "listen" ret: "int" args: "int" "int" */
  256 #define SUNOS_SYS_listen        106
  257 
  258 /* syscall: "sigvec" ret: "int" args: "int" "struct sigvec *" "struct sigvec *" */
  259 #define SUNOS_SYS_sigvec        108
  260 
  261 /* syscall: "sigblock" ret: "int" args: "int" */
  262 #define SUNOS_SYS_sigblock      109
  263 
  264 /* syscall: "sigsetmask" ret: "int" args: "int" */
  265 #define SUNOS_SYS_sigsetmask    110
  266 
  267 /* syscall: "sigsuspend" ret: "int" args: "int" */
  268 #define SUNOS_SYS_sigsuspend    111
  269 
  270 /* syscall: "sigstack" ret: "int" args: "struct sigstack *" "struct sigstack *" */
  271 #define SUNOS_SYS_sigstack      112
  272 
  273 /* syscall: "recvmsg" ret: "int" args: "int" "struct omsghdr *" "int" */
  274 #define SUNOS_SYS_recvmsg       113
  275 
  276 /* syscall: "sendmsg" ret: "int" args: "int" "void *" "int" */
  277 #define SUNOS_SYS_sendmsg       114
  278 
  279                                 /* 115 is obsolete vtrace */
  280 /* syscall: "gettimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
  281 #define SUNOS_SYS_gettimeofday  116
  282 
  283 /* syscall: "getrusage" ret: "int" args: "int" "struct rusage *" */
  284 #define SUNOS_SYS_getrusage     117
  285 
  286 /* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */
  287 #define SUNOS_SYS_getsockopt    118
  288 
  289 /* syscall: "readv" ret: "int" args: "int" "struct iovec *" "u_int" */
  290 #define SUNOS_SYS_readv 120
  291 
  292 /* syscall: "writev" ret: "int" args: "int" "struct iovec *" "u_int" */
  293 #define SUNOS_SYS_writev        121
  294 
  295 /* syscall: "settimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
  296 #define SUNOS_SYS_settimeofday  122
  297 
  298 /* syscall: "fchown" ret: "int" args: "int" "int" "int" */
  299 #define SUNOS_SYS_fchown        123
  300 
  301 /* syscall: "fchmod" ret: "int" args: "int" "int" */
  302 #define SUNOS_SYS_fchmod        124
  303 
  304 /* syscall: "recvfrom" ret: "int" args: "int" "void *" "size_t" "int" "void *" "int *" */
  305 #define SUNOS_SYS_recvfrom      125
  306 
  307 /* syscall: "setreuid" ret: "int" args: "int" "int" */
  308 #define SUNOS_SYS_setreuid      126
  309 
  310 /* syscall: "setregid" ret: "int" args: "int" "int" */
  311 #define SUNOS_SYS_setregid      127
  312 
  313 /* syscall: "rename" ret: "int" args: "char *" "char *" */
  314 #define SUNOS_SYS_rename        128
  315 
  316 /* syscall: "truncate" ret: "int" args: "char *" "long" */
  317 #define SUNOS_SYS_truncate      129
  318 
  319 /* syscall: "ftruncate" ret: "int" args: "int" "long" */
  320 #define SUNOS_SYS_ftruncate     130
  321 
  322 /* syscall: "flock" ret: "int" args: "int" "int" */
  323 #define SUNOS_SYS_flock 131
  324 
  325 /* syscall: "sendto" ret: "int" args: "int" "void *" "size_t" "int" "void *" "int" */
  326 #define SUNOS_SYS_sendto        133
  327 
  328 /* syscall: "shutdown" ret: "int" args: "int" "int" */
  329 #define SUNOS_SYS_shutdown      134
  330 
  331 /* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
  332 #define SUNOS_SYS_socketpair    135
  333 
  334 /* syscall: "mkdir" ret: "int" args: "char *" "int" */
  335 #define SUNOS_SYS_mkdir 136
  336 
  337 /* syscall: "rmdir" ret: "int" args: "char *" */
  338 #define SUNOS_SYS_rmdir 137
  339 
  340 /* syscall: "utimes" ret: "int" args: "char *" "struct timeval *" */
  341 #define SUNOS_SYS_utimes        138
  342 
  343 /* syscall: "sigreturn" ret: "int" args: "struct sigcontext *" */
  344 #define SUNOS_SYS_sigreturn     139
  345 
  346 /* syscall: "adjtime" ret: "int" args: "struct timeval *" "struct timeval *" */
  347 #define SUNOS_SYS_adjtime       140
  348 
  349 /* syscall: "getpeername" ret: "int" args: "int" "void *" "int *" */
  350 #define SUNOS_SYS_getpeername   141
  351 
  352 /* syscall: "gethostid" ret: "int" args: */
  353 #define SUNOS_SYS_gethostid     142
  354 
  355 /* syscall: "getrlimit" ret: "int" args: "u_int" "struct orlimit *" */
  356 #define SUNOS_SYS_getrlimit     144
  357 
  358 /* syscall: "setrlimit" ret: "int" args: "u_int" "struct orlimit *" */
  359 #define SUNOS_SYS_setrlimit     145
  360 
  361 /* syscall: "killpg" ret: "int" args: "int" "int" */
  362 #define SUNOS_SYS_killpg        146
  363 
  364 /* syscall: "getsockname" ret: "int" args: "int" "void *" "int *" */
  365 #define SUNOS_SYS_getsockname   150
  366 
  367 /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
  368 #define SUNOS_SYS_poll  153
  369 
  370 #ifdef NFSSERVER
  371 /* syscall: "nfssvc" ret: "int" args: "int" */
  372 #define SUNOS_SYS_nfssvc        155
  373 
  374 #else
  375 #endif
  376 /* syscall: "getdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */
  377 #define SUNOS_SYS_getdirentries 156
  378 
  379 /* syscall: "statfs" ret: "int" args: "const char *" "struct sunos_statfs *" */
  380 #define SUNOS_SYS_statfs        157
  381 
  382 /* syscall: "fstatfs" ret: "int" args: "int" "struct sunos_statfs *" */
  383 #define SUNOS_SYS_fstatfs       158
  384 
  385 /* syscall: "unmount" ret: "int" args: "char *" */
  386 #define SUNOS_SYS_unmount       159
  387 
  388 #ifdef NFS
  389 /* syscall: "async_daemon" ret: "int" args: */
  390 #define SUNOS_SYS_async_daemon  160
  391 
  392 /* syscall: "getfh" ret: "int" args: "char *" "fhandle_t *" */
  393 #define SUNOS_SYS_getfh 161
  394 
  395 #else
  396 #endif
  397 /* syscall: "getdomainname" ret: "int" args: "char *" "int" */
  398 #define SUNOS_SYS_getdomainname 162
  399 
  400 /* syscall: "setdomainname" ret: "int" args: "char *" "int" */
  401 #define SUNOS_SYS_setdomainname 163
  402 
  403 /* syscall: "quotactl" ret: "int" args: "int" "char *" "int" "void *" */
  404 #define SUNOS_SYS_quotactl      165
  405 
  406 /* syscall: "exportfs" ret: "int" args: "char *" "char *" */
  407 #define SUNOS_SYS_exportfs      166
  408 
  409 /* syscall: "mount" ret: "int" args: "char *" "char *" "int" "void *" */
  410 #define SUNOS_SYS_mount 167
  411 
  412 /* syscall: "ustat" ret: "int" args: "int" "struct sunos_ustat *" */
  413 #define SUNOS_SYS_ustat 168
  414 
  415 #ifdef SYSVSEM
  416 /* syscall: "semsys" ret: "int" args: "int" "int" "int" "int" "int" */
  417 #define SUNOS_SYS_semsys        169
  418 
  419 #else
  420 #endif
  421 #ifdef SYSVMSG
  422 /* syscall: "msgsys" ret: "int" args: "int" "int" "int" "int" "int" "int" */
  423 #define SUNOS_SYS_msgsys        170
  424 
  425 #else
  426 #endif
  427 #ifdef SYSVSHM
  428 /* syscall: "shmsys" ret: "int" args: "int" "int" "int" "int" */
  429 #define SUNOS_SYS_shmsys        171
  430 
  431 #else
  432 #endif
  433 /* syscall: "auditsys" ret: "int" args: "char *" */
  434 #define SUNOS_SYS_auditsys      172
  435 
  436 /* syscall: "getdents" ret: "int" args: "int" "char *" "int" */
  437 #define SUNOS_SYS_getdents      174
  438 
  439 /* syscall: "setsid" ret: "int" args: */
  440 #define SUNOS_SYS_setsid        175
  441 
  442 /* syscall: "fchdir" ret: "int" args: "int" */
  443 #define SUNOS_SYS_fchdir        176
  444 
  445 /* syscall: "fchroot" ret: "int" args: "int" */
  446 #define SUNOS_SYS_fchroot       177
  447 
  448 /* syscall: "sigpending" ret: "int" args: "int *" */
  449 #define SUNOS_SYS_sigpending    183
  450 
  451 /* syscall: "setpgid" ret: "int" args: "int" "int" */
  452 #define SUNOS_SYS_setpgid       185
  453 
  454 /* syscall: "pathconf" ret: "long" args: "char *" "int" */
  455 #define SUNOS_SYS_pathconf      186
  456 
  457 /* syscall: "fpathconf" ret: "long" args: "int" "int" */
  458 #define SUNOS_SYS_fpathconf     187
  459 
  460 /* syscall: "sysconf" ret: "int" args: "int" */
  461 #define SUNOS_SYS_sysconf       188
  462 
  463 /* syscall: "uname" ret: "int" args: "struct sunos_utsname *" */
  464 #define SUNOS_SYS_uname 189
  465 
  466 #define SUNOS_SYS_MAXSYSCALL    190
  467 #define SUNOS_SYS_NSYSENT       256
  468 #endif /* _SUNOS_SYS_SYSCALL_H_ */

Cache object: 2225a00bf502ff6f07de089b844166c7


[ 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.