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