xref: /titanic_44/usr/src/lib/libbc/libc/sys/common/xsyscall.h (revision ea8dc4b6d2251b437950c0056bc626b311c73c27)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  *
22  * Copyright 2000 Sun Microsystems, Inc.  All rights reserved.
23  * Use is subject to license terms.
24  */
25 
26 /*	from UCB 4.11 06/09/83	*/
27 
28 #pragma ident	"%Z%%M%	%I%	%E% SMI"
29 
30 #ifndef	__sys_syscall_h
31 #define	__sys_syscall_h
32 
33 /* List of SunOS 4.1 system call numbers. All SYS_* have been
34  * renamed to XSYS_* to avoid confusion with the new SunOS/SVR4
35  * numbers used in other routines in libbc. */
36 
37 #define	XSYS_exit	1
38 #define	XSYS_fork	2
39 #define	XSYS_read	3
40 #define	XSYS_write	4
41 #define	XSYS_open	5
42 #define	XSYS_close	6
43 #define	XSYS_wait4	7
44 #define	XSYS_creat	8
45 #define	XSYS_link	9
46 #define	XSYS_unlink	10
47 #define	XSYS_execv	11
48 #define	XSYS_chdir	12
49 				/* 13 is old: time */
50 #define	XSYS_mknod	14
51 #define	XSYS_chmod	15
52 #define	XSYS_chown	16
53 				/* 17 is old: sbreak */
54 				/* 18 is old: stat */
55 #define	XSYS_lseek	19
56 #define	XSYS_getpid	20
57 				/* 21 is old: mount */
58 				/* 22 is old: umount */
59 				/* 23 is old: setuid */
60 #define	XSYS_getuid	24
61 				/* 25 is old: stime */
62 #define	XSYS_ptrace	26
63 				/* 27 is old: alarm */
64 				/* 28 is old: fstat */
65 				/* 29 is old: pause */
66 				/* 30 is old: utime */
67 				/* 31 is old: stty */
68 				/* 32 is old: gtty */
69 #define	XSYS_access	33
70 				/* 34 is old: nice */
71 				/* 35 is old: ftime */
72 #define	XSYS_sync	36
73 #define	XSYS_kill	37
74 #define	XSYS_stat	38
75 				/* 39 is old: setpgrp */
76 #define	XSYS_lstat	40
77 #define	XSYS_dup		41
78 #define	XSYS_pipe	42
79 				/* 43 is old: times */
80 #define	XSYS_profil	44
81 				/* 45 is unused */
82 				/* 46 is old: setgid */
83 #define	XSYS_getgid	47
84 				/* 48 is old: sigsys */
85 				/* 49 is unused */
86 				/* 50 is unused */
87 #define	XSYS_acct	51
88 				/* 52 is old: phys */
89 #define	XSYS_mctl	53
90 #define	XSYS_ioctl	54
91 #define	XSYS_reboot	55
92 				/* 56 is old: mpxchan */
93 #define	XSYS_symlink	57
94 #define	XSYS_readlink	58
95 #define	XSYS_execve	59
96 #define	XSYS_umask	60
97 #define	XSYS_chroot	61
98 #define	XSYS_fstat	62
99 				/* 63 is unused */
100 #define	XSYS_getpagesize 64
101 #define	XSYS_msync	65
102 				/* 66 is old: vfork */
103 				/* 67 is old: vread */
104 				/* 68 is old: vwrite */
105 #define	XSYS_sbrk	69
106 #define	XSYS_sstk	70
107 #define	XSYS_mmap	71
108 #define	XSYS_vadvise	72
109 #define	XSYS_munmap	73
110 #define	XSYS_mprotect	74
111 #define	XSYS_madvise	75
112 #define	XSYS_vhangup	76
113 				/* 77 is old: vlimit */
114 #define	XSYS_mincore	78
115 #define	XSYS_getgroups	79
116 #define	XSYS_setgroups	80
117 #define	XSYS_getpgrp	81
118 #define	XSYS_setpgrp	82
119 #define	XSYS_setitimer	83
120 				/* 84 is old: wait & wait3 */
121 #define	XSYS_swapon	85
122 #define	XSYS_getitimer	86
123 #define	XSYS_gethostname	87
124 #define	XSYS_sethostname	88
125 #define	XSYS_getdtablesize 89
126 #define	XSYS_dup2	90
127 #define	XSYS_getdopt	91
128 #define	XSYS_fcntl	92
129 #define	XSYS_select	93
130 #define	XSYS_setdopt	94
131 #define	XSYS_fsync	95
132 #define	XSYS_setpriority	96
133 #define	XSYS_socket	97
134 #define	XSYS_connect	98
135 #define	XSYS_accept	99
136 #define	XSYS_getpriority	100
137 #define	XSYS_send	101
138 #define	XSYS_recv	102
139 				/* 103 was socketaddr */
140 #define	XSYS_bind	104
141 #define	XSYS_setsockopt	105
142 #define	XSYS_listen	106
143 				/* 107 was vtimes */
144 #define	XSYS_sigvec	108
145 #define	XSYS_sigblock	109
146 #define	XSYS_sigsetmask	110
147 #define	XSYS_sigpause	111
148 #define	XSYS_sigstack	112
149 #define	XSYS_recvmsg	113
150 #define	XSYS_sendmsg	114
151 #define	XSYS_vtrace	115
152 #define	XSYS_gettimeofday 116
153 #define	XSYS_getrusage	117
154 #define	XSYS_getsockopt	118
155 				/* 119 is old resuba */
156 #define	XSYS_readv	120
157 #define	XSYS_writev	121
158 #define	XSYS_settimeofday 122
159 #define	XSYS_fchown	123
160 #define	XSYS_fchmod	124
161 #define	XSYS_recvfrom	125
162 #define	XSYS_setreuid	126
163 #define	XSYS_setregid	127
164 #define	XSYS_rename	128
165 #define	XSYS_truncate	129
166 #define	XSYS_ftruncate	130
167 #define	XSYS_flock	131
168 				/* 132 is unused */
169 #define	XSYS_sendto	133
170 #define	XSYS_shutdown	134
171 #define	XSYS_socketpair	135
172 #define	XSYS_mkdir	136
173 #define	XSYS_rmdir	137
174 #define	XSYS_utimes	138
175 				/* 139 is unused */
176 #define	XSYS_adjtime	140
177 #define	XSYS_getpeername	141
178 #define	XSYS_gethostid	142
179 				/* 143 is old: sethostid */
180 #define	XSYS_getrlimit	144
181 #define	XSYS_setrlimit	145
182 #define	XSYS_killpg	146
183 				/* 147 is unused */
184 				/* 148 is old: setquota */
185 				/* 149 is old: quota */
186 #define	XSYS_getsockname	150
187 #define	XSYS_getmsg	151
188 #define	XSYS_putmsg	152
189 #define	XSYS_poll	153
190 				/* 154 is old: nfs_mount */
191 #define	XSYS_nfssvc	155
192 #define	XSYS_getdirentries 156
193 #define	XSYS_statfs	157
194 #define	XSYS_fstatfs	158
195 #define	XSYS_unmount	159
196 #define	XSYS_async_daemon 160
197 #define	XSYS_getfh	161
198 #define	XSYS_getdomainname 162
199 #define	XSYS_setdomainname 163
200 				/* 164 is old: pcfs_mount */
201 #define	XSYS_quotactl	165
202 #define	XSYS_exportfs	166
203 #define	XSYS_mount	167
204 #define	XSYS_ustat	168
205 #define	XSYS_semsys	169
206 #define	XSYS_msgsys	170
207 #define	XSYS_shmsys	171
208 #define	XSYS_auditsys	172
209 				/* 173 is old: rfsys */
210 #define	XSYS_getdents	174
211 #define	XSYS_setsid	175
212 #define	XSYS_fchdir	176
213 #define	XSYS_fchroot	177
214 #define	XSYS_vpixsys	178
215 
216 #define	XSYS_aioread	179
217 #define	XSYS_aiowrite	180
218 #define	XSYS_aiowait	181
219 #define	XSYS_aiocancel	182
220 
221 #define	XSYS_sigpending	183
222 				/* 184 is available */
223 #define	XSYS_setpgid	185
224 #define	XSYS_pathconf	186
225 #define	XSYS_fpathconf	187
226 #define	XSYS_sysconf	188
227 
228 #define	XSYS_uname	189
229 
230 #endif	/* !__sys_syscall_h */
231