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