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