Home | History | Annotate | Line # | Download | only in freebsd
freebsd_syscall.h revision 1.2
      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.2  mycroft  * created from	NetBSD: syscalls.master,v 1.2 1995/10/10 01:34:37 mycroft Exp
      6  1.1  mycroft  */
      7  1.1  mycroft 
      8  1.1  mycroft #define	FREEBSD_SYS_syscall	0
      9  1.1  mycroft #define	FREEBSD_SYS_exit	1
     10  1.1  mycroft #define	FREEBSD_SYS_fork	2
     11  1.1  mycroft #define	FREEBSD_SYS_read	3
     12  1.1  mycroft #define	FREEBSD_SYS_write	4
     13  1.1  mycroft #define	FREEBSD_SYS_open	5
     14  1.1  mycroft #define	FREEBSD_SYS_close	6
     15  1.1  mycroft #define	FREEBSD_SYS_wait4	7
     16  1.1  mycroft #define	FREEBSD_SYS_ocreat	8
     17  1.1  mycroft #define	FREEBSD_SYS_link	9
     18  1.1  mycroft #define	FREEBSD_SYS_unlink	10
     19  1.1  mycroft 				/* 11 is obsolete execv */
     20  1.1  mycroft #define	FREEBSD_SYS_chdir	12
     21  1.1  mycroft #define	FREEBSD_SYS_fchdir	13
     22  1.1  mycroft #define	FREEBSD_SYS_mknod	14
     23  1.1  mycroft #define	FREEBSD_SYS_chmod	15
     24  1.1  mycroft #define	FREEBSD_SYS_chown	16
     25  1.1  mycroft #define	FREEBSD_SYS_break	17
     26  1.1  mycroft #define	FREEBSD_SYS_getfsstat	18
     27  1.1  mycroft #define	FREEBSD_SYS_olseek	19
     28  1.1  mycroft #define	FREEBSD_SYS_getpid	20
     29  1.1  mycroft #define	FREEBSD_SYS_mount	21
     30  1.1  mycroft #define	FREEBSD_SYS_unmount	22
     31  1.1  mycroft #define	FREEBSD_SYS_setuid	23
     32  1.1  mycroft #define	FREEBSD_SYS_getuid	24
     33  1.1  mycroft #define	FREEBSD_SYS_geteuid	25
     34  1.1  mycroft #define	FREEBSD_SYS_ptrace	26
     35  1.1  mycroft #define	FREEBSD_SYS_recvmsg	27
     36  1.1  mycroft #define	FREEBSD_SYS_sendmsg	28
     37  1.1  mycroft #define	FREEBSD_SYS_recvfrom	29
     38  1.1  mycroft #define	FREEBSD_SYS_accept	30
     39  1.1  mycroft #define	FREEBSD_SYS_getpeername	31
     40  1.1  mycroft #define	FREEBSD_SYS_getsockname	32
     41  1.1  mycroft #define	FREEBSD_SYS_access	33
     42  1.1  mycroft #define	FREEBSD_SYS_chflags	34
     43  1.1  mycroft #define	FREEBSD_SYS_fchflags	35
     44  1.1  mycroft #define	FREEBSD_SYS_sync	36
     45  1.1  mycroft #define	FREEBSD_SYS_kill	37
     46  1.1  mycroft #define	FREEBSD_SYS_ostat	38
     47  1.1  mycroft #define	FREEBSD_SYS_getppid	39
     48  1.1  mycroft #define	FREEBSD_SYS_olstat	40
     49  1.1  mycroft #define	FREEBSD_SYS_dup	41
     50  1.1  mycroft #define	FREEBSD_SYS_pipe	42
     51  1.1  mycroft #define	FREEBSD_SYS_getegid	43
     52  1.1  mycroft #define	FREEBSD_SYS_profil	44
     53  1.1  mycroft #define	FREEBSD_SYS_ktrace	45
     54  1.1  mycroft #define	FREEBSD_SYS_sigaction	46
     55  1.1  mycroft #define	FREEBSD_SYS_getgid	47
     56  1.1  mycroft #define	FREEBSD_SYS_sigprocmask	48
     57  1.1  mycroft #define	FREEBSD_SYS_getlogin	49
     58  1.1  mycroft #define	FREEBSD_SYS_setlogin	50
     59  1.1  mycroft #define	FREEBSD_SYS_acct	51
     60  1.1  mycroft #define	FREEBSD_SYS_sigpending	52
     61  1.1  mycroft #define	FREEBSD_SYS_sigaltstack	53
     62  1.1  mycroft #define	FREEBSD_SYS_ioctl	54
     63  1.1  mycroft #define	FREEBSD_SYS_reboot	55
     64  1.1  mycroft #define	FREEBSD_SYS_revoke	56
     65  1.1  mycroft #define	FREEBSD_SYS_symlink	57
     66  1.1  mycroft #define	FREEBSD_SYS_readlink	58
     67  1.1  mycroft #define	FREEBSD_SYS_execve	59
     68  1.1  mycroft #define	FREEBSD_SYS_umask	60
     69  1.1  mycroft #define	FREEBSD_SYS_chroot	61
     70  1.1  mycroft #define	FREEBSD_SYS_ofstat	62
     71  1.1  mycroft #define	FREEBSD_SYS_ogetkerninfo	63
     72  1.1  mycroft #define	FREEBSD_SYS_ogetpagesize	64
     73  1.1  mycroft #define	FREEBSD_SYS_msync	65
     74  1.1  mycroft #define	FREEBSD_SYS_vfork	66
     75  1.1  mycroft 				/* 67 is obsolete vread */
     76  1.1  mycroft 				/* 68 is obsolete vwrite */
     77  1.1  mycroft #define	FREEBSD_SYS_sbrk	69
     78  1.1  mycroft #define	FREEBSD_SYS_sstk	70
     79  1.1  mycroft #define	FREEBSD_SYS_ommap	71
     80  1.1  mycroft #define	FREEBSD_SYS_vadvise	72
     81  1.1  mycroft #define	FREEBSD_SYS_munmap	73
     82  1.1  mycroft #define	FREEBSD_SYS_mprotect	74
     83  1.1  mycroft #define	FREEBSD_SYS_madvise	75
     84  1.1  mycroft 				/* 76 is obsolete vhangup */
     85  1.1  mycroft 				/* 77 is obsolete vlimit */
     86  1.1  mycroft #define	FREEBSD_SYS_mincore	78
     87  1.1  mycroft #define	FREEBSD_SYS_getgroups	79
     88  1.1  mycroft #define	FREEBSD_SYS_setgroups	80
     89  1.1  mycroft #define	FREEBSD_SYS_getpgrp	81
     90  1.1  mycroft #define	FREEBSD_SYS_setpgid	82
     91  1.1  mycroft #define	FREEBSD_SYS_setitimer	83
     92  1.1  mycroft #define	FREEBSD_SYS_owait	84
     93  1.1  mycroft #define	FREEBSD_SYS_swapon	85
     94  1.1  mycroft #define	FREEBSD_SYS_getitimer	86
     95  1.1  mycroft #define	FREEBSD_SYS_ogethostname	87
     96  1.1  mycroft #define	FREEBSD_SYS_osethostname	88
     97  1.1  mycroft #define	FREEBSD_SYS_ogetdtablesize	89
     98  1.1  mycroft #define	FREEBSD_SYS_dup2	90
     99  1.1  mycroft #define	FREEBSD_SYS_fcntl	92
    100  1.1  mycroft #define	FREEBSD_SYS_select	93
    101  1.1  mycroft #define	FREEBSD_SYS_fsync	95
    102  1.1  mycroft #define	FREEBSD_SYS_setpriority	96
    103  1.1  mycroft #define	FREEBSD_SYS_socket	97
    104  1.1  mycroft #define	FREEBSD_SYS_connect	98
    105  1.1  mycroft #define	FREEBSD_SYS_oaccept	99
    106  1.1  mycroft #define	FREEBSD_SYS_getpriority	100
    107  1.1  mycroft #define	FREEBSD_SYS_osend	101
    108  1.1  mycroft #define	FREEBSD_SYS_orecv	102
    109  1.1  mycroft #define	FREEBSD_SYS_sigreturn	103
    110  1.1  mycroft #define	FREEBSD_SYS_bind	104
    111  1.1  mycroft #define	FREEBSD_SYS_setsockopt	105
    112  1.1  mycroft #define	FREEBSD_SYS_listen	106
    113  1.1  mycroft 				/* 107 is obsolete vtimes */
    114  1.1  mycroft #define	FREEBSD_SYS_osigvec	108
    115  1.1  mycroft #define	FREEBSD_SYS_osigblock	109
    116  1.1  mycroft #define	FREEBSD_SYS_osigsetmask	110
    117  1.1  mycroft #define	FREEBSD_SYS_sigsuspend	111
    118  1.1  mycroft #define	FREEBSD_SYS_osigstack	112
    119  1.1  mycroft #define	FREEBSD_SYS_orecvmsg	113
    120  1.1  mycroft #define	FREEBSD_SYS_osendmsg	114
    121  1.1  mycroft #define	FREEBSD_SYS_vtrace	115
    122  1.1  mycroft 				/* 115 is obsolete vtrace */
    123  1.1  mycroft #define	FREEBSD_SYS_gettimeofday	116
    124  1.1  mycroft #define	FREEBSD_SYS_getrusage	117
    125  1.1  mycroft #define	FREEBSD_SYS_getsockopt	118
    126  1.1  mycroft 				/* 119 is obsolete resuba */
    127  1.1  mycroft #define	FREEBSD_SYS_readv	120
    128  1.1  mycroft #define	FREEBSD_SYS_writev	121
    129  1.1  mycroft #define	FREEBSD_SYS_settimeofday	122
    130  1.1  mycroft #define	FREEBSD_SYS_fchown	123
    131  1.1  mycroft #define	FREEBSD_SYS_fchmod	124
    132  1.1  mycroft #define	FREEBSD_SYS_orecvfrom	125
    133  1.1  mycroft #define	FREEBSD_SYS_osetreuid	126
    134  1.1  mycroft #define	FREEBSD_SYS_osetregid	127
    135  1.1  mycroft #define	FREEBSD_SYS_rename	128
    136  1.1  mycroft #define	FREEBSD_SYS_otruncate	129
    137  1.2  mycroft #define	FREEBSD_SYS_oftruncate	130
    138  1.2  mycroft #define	FREEBSD_SYS_flock	131
    139  1.1  mycroft #define	FREEBSD_SYS_mkfifo	132
    140  1.1  mycroft #define	FREEBSD_SYS_sendto	133
    141  1.1  mycroft #define	FREEBSD_SYS_shutdown	134
    142  1.1  mycroft #define	FREEBSD_SYS_socketpair	135
    143  1.1  mycroft #define	FREEBSD_SYS_mkdir	136
    144  1.1  mycroft #define	FREEBSD_SYS_rmdir	137
    145  1.1  mycroft #define	FREEBSD_SYS_utimes	138
    146  1.1  mycroft 				/* 139 is obsolete 4.2 sigreturn */
    147  1.1  mycroft #define	FREEBSD_SYS_adjtime	140
    148  1.1  mycroft #define	FREEBSD_SYS_ogetpeername	141
    149  1.1  mycroft #define	FREEBSD_SYS_ogethostid	142
    150  1.1  mycroft #define	FREEBSD_SYS_osethostid	143
    151  1.1  mycroft #define	FREEBSD_SYS_ogetrlimit	144
    152  1.1  mycroft #define	FREEBSD_SYS_osetrlimit	145
    153  1.1  mycroft #define	FREEBSD_SYS_okillpg	146
    154  1.1  mycroft #define	FREEBSD_SYS_setsid	147
    155  1.1  mycroft #define	FREEBSD_SYS_quotactl	148
    156  1.1  mycroft #define	FREEBSD_SYS_oquota	149
    157  1.1  mycroft #define	FREEBSD_SYS_ogetsockname	150
    158  1.1  mycroft #define	FREEBSD_SYS_nfssvc	155
    159  1.1  mycroft #define	FREEBSD_SYS_ogetdirentries	156
    160  1.1  mycroft #define	FREEBSD_SYS_statfs	157
    161  1.1  mycroft #define	FREEBSD_SYS_fstatfs	158
    162  1.1  mycroft #define	FREEBSD_SYS_getfh	161
    163  1.1  mycroft #define	FREEBSD_SYS_getdomainname	162
    164  1.1  mycroft #define	FREEBSD_SYS_setdomainname	163
    165  1.1  mycroft #define	FREEBSD_SYS_uname	164
    166  1.1  mycroft #define	FREEBSD_SYS_sysarch	165
    167  1.1  mycroft #define	FREEBSD_SYS_rtprio	166
    168  1.1  mycroft #define	FREEBSD_SYS_semsys	169
    169  1.1  mycroft #define	FREEBSD_SYS_msgsys	170
    170  1.1  mycroft #define	FREEBSD_SYS_shmsys	171
    171  1.1  mycroft #define	FREEBSD_SYS_freebsd_ntp_adjtime	176
    172  1.1  mycroft #define	FREEBSD_SYS_setgid	181
    173  1.1  mycroft #define	FREEBSD_SYS_setegid	182
    174  1.1  mycroft #define	FREEBSD_SYS_seteuid	183
    175  1.1  mycroft #define	FREEBSD_SYS_lfs_bmapv	184
    176  1.1  mycroft #define	FREEBSD_SYS_lfs_markv	185
    177  1.1  mycroft #define	FREEBSD_SYS_lfs_segclean	186
    178  1.1  mycroft #define	FREEBSD_SYS_lfs_segwait	187
    179  1.1  mycroft #define	FREEBSD_SYS_stat	188
    180  1.1  mycroft #define	FREEBSD_SYS_fstat	189
    181  1.1  mycroft #define	FREEBSD_SYS_lstat	190
    182  1.1  mycroft #define	FREEBSD_SYS_pathconf	191
    183  1.1  mycroft #define	FREEBSD_SYS_fpathconf	192
    184  1.1  mycroft #define	FREEBSD_SYS_getrlimit	194
    185  1.1  mycroft #define	FREEBSD_SYS_setrlimit	195
    186  1.1  mycroft #define	FREEBSD_SYS_getdirentries	196
    187  1.1  mycroft #define	FREEBSD_SYS_mmap	197
    188  1.1  mycroft #define	FREEBSD_SYS___syscall	198
    189  1.1  mycroft #define	FREEBSD_SYS_lseek	199
    190  1.1  mycroft #define	FREEBSD_SYS_truncate	200
    191  1.1  mycroft #define	FREEBSD_SYS_ftruncate	201
    192  1.1  mycroft #define	FREEBSD_SYS___sysctl	202
    193  1.1  mycroft #define	FREEBSD_SYS_mlock	203
    194  1.1  mycroft #define	FREEBSD_SYS_munlock	204
    195  1.1  mycroft #define	FREEBSD_SYS_undelete	205
    196  1.1  mycroft #define	FREEBSD_SYS_MAXSYSCALL	220
    197