2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
10 #ifndef _longc_procs_h_
11 #define _longc_procs_h_ 1
13 #if !defined(LONGCALL_DEFS) && defined(KERNEL) && defined(DYNEL) && defined(AFS_DECOSF_ENV)
17 struct afs_longcall_procs {
18 int (*LC_xdr_u_short) ();
19 int (*LC_xdr_short) ();
20 int (*LC_xdr_opaque) ();
21 int (*LC_xdr_array) ();
22 int (*LC_xdr_bytes) ();
23 int (*LC_xdr_u_long) ();
24 int (*LC_xdr_string) ();
25 int (*LC_xdr_long) ();
27 int (*LC_xdr_u_int) ();
37 int (*LC_setgroups) ();
38 struct ucred *(*LC_crcopy) ();
39 struct ucred *(*LC_crget) ();
41 int (*LC_ip_stripoptions) ();
42 int (*LC_in_cksum) ();
43 struct mbuf *(*LC_m_pullup) ();
44 int (*LC_resettodr) ();
45 int (*LC_untimeout) ();
50 int (*LC_m_clalloc) ();
55 struct mbuf *(*LC_m_get) ();
56 int (*LC_socreate) ();
57 int (*LC_soreserve) ();
58 #if defined(AFS_DECOSF_ENV)
60 #else /* AFS_DECOSF_ENV */
61 struct file *(*LC_getf) ();
64 int (*LC_microtime) ();
67 #ifdef XDR_CHAR_IN_KERNEL
68 int (*LC_xdr_char) ();
73 struct inode *(*LC_ialloc) ();
74 int (*LC_vno_close) ();
75 int (*LC_kmem_alloc) ();
76 int (*LC_kmem_free) ();
78 int (*LC_m_cpytoc) ();
80 int (*LC_ufs_brelse) ();
81 int (*LC_lookupname) ();
85 struct mount *(*LC_getmp) ();
86 struct inode *(*LC_iget) ();
87 struct mbuf *(*LC_m_more) ();
90 struct file *(*LC_falloc) ();
93 long (*LC_rmalloc) ();
94 struct pte *(*LC_vtopte) ();
95 int (*LC_vattr_null) ();
99 struct buf *(*LC_geteblk) ();
103 int (*LC_copyinstr) ();
111 int (*LC_igetinode) ();
113 #if defined(AFS_DECOSF_ENV)
114 void (*LC_assert_wait) ();
116 int (*LC_fake_inode_init) ();
117 int (*LC_getnewvnode) ();
118 struct mount *(*LC_getvfs) ();
120 int (*LC_insmntque) ();
121 int (*LC_ioctl_base) ();
122 caddr_t(*LC_kalloc) ();
124 void (*LC_lock_done) ();
125 struct mbuf *(*LC_m_getclr) ();
126 struct mbuf *(*LC_m_retry) ();
127 struct mbuf *(*LC_m_retryhdr) ();
128 int (*LC_mpsleep) ();
130 unsigned int (*LC_nuxi_32) ();
131 unsigned short (*LC_nuxi_16) ();
132 int (*LC_setgroups_base) ();
133 int (*LC_substitute_real_creds) ();
134 int (*LC_swap_ipl) ();
135 void (*LC_thread_block) ();
136 /* XXX - should be kern_return_t */
137 int (*LC_u_vp_create) ();
138 int (*LC_ubc_bufalloc) ();
139 int (*LC_ubc_flush_sync) ();
140 int (*LC_ubc_invalidate) ();
141 int (*LC_ubc_lookup) ();
142 int (*LC_ubc_page_dirty) ();
143 int (*LC_ubc_page_release) ();
144 int (*LC_ubc_sync_iodone) ();
147 int (*LC_vn_close) ();
149 int (*LC_vn_ioctl) ();
150 int (*LC_vn_read) ();
151 int (*LC_vn_select) ();
152 int (*LC_vn_write) ();
155 int (*LC_xdr_char) ();
156 #endif /* AFS_DECOSF_ENV */
158 extern struct afs_longcall_procs afs_longcall_procs;
160 #ifndef LONGCALL_NO_MACROS
162 #if defined(AFS_DECOSF_ENV)
165 #endif /* AFS_DECOSF_ENV */
167 #define crfree (*afs_longcall_procs.LC_crfree)
168 #define suser (*afs_longcall_procs.LC_suser)
169 #define bzero (*afs_longcall_procs.LC_bzero)
170 #define wakeup (*afs_longcall_procs.LC_wakeup)
171 #if !defined(AFS_DECOSF_ENV)
172 #define sleep (*afs_longcall_procs.LC_sleep)
174 #define copyin (*afs_longcall_procs.LC_copyin)
175 #define copyinstr (*afs_longcall_procs.LC_copyinstr)
176 #define printf (*afs_longcall_procs.LC_printf)
177 #define panic (*afs_longcall_procs.LC_panic)
178 #define geteblk (*afs_longcall_procs.LC_geteblk)
179 #define brelse (*afs_longcall_procs.LC_brelse)
180 #define bcopy (*afs_longcall_procs.LC_bcopy)
181 #define strlen (*afs_longcall_procs.LC_strlen)
182 #define vtopte (*afs_longcall_procs.LC_vtopte)
183 #define rmalloc (*afs_longcall_procs.LC_rmalloc)
185 #define mapin (*afs_longcall_procs.LC_mapin)
186 #define strcpy (*afs_longcall_procs.LC_strcpy)
187 #define strncpy (*afs_longcall_procs.LC_strncpy)
189 #define rmfree (*afs_longcall_procs.LC_rmfree)
190 #define falloc (*afs_longcall_procs.LC_falloc)
191 #define rdwri (*afs_longcall_procs.LC_rdwri)
193 #ifdef XDR_CHAR_IN_KERNEL
194 #define xdr_char (*afs_longcall_procs.LC_xdr_char)
197 #define iunlock (*afs_longcall_procs.LC_iunlock)
198 #define ilock (*afs_longcall_procs.LC_ilock)
199 #define iput (*afs_longcall_procs.LC_iput)
200 #define ialloc (*afs_longcall_procs.LC_ialloc)
201 #if !defined(AFS_DECOSF_ENV)
202 #define vno_close (*afs_longcall_procs.LC_vno_close)
204 #define kmem_alloc (*afs_longcall_procs.LC_kmem_alloc)
205 #define kmem_free (*afs_longcall_procs.LC_kmem_free)
207 #define m_cpytoc (*afs_longcall_procs.LC_m_cpytoc)
209 #define ufs_brelse (*afs_longcall_procs.LC_ufs_brelse)
210 #if !defined(AFS_DECOSF_ENV)
211 #define lookupname (*afs_longcall_procs.LC_lookupname)
213 /* #define vn_rele (*afs_longcall_procs.LC_vn_rele) */
214 #define mapout (*afs_longcall_procs.LC_mapout)
215 #define getmp (*afs_longcall_procs.LC_getmp)
216 #define iget (*afs_longcall_procs.LC_iget)
217 #define m_more (*afs_longcall_procs.LC_m_more)
218 #define _spl1 (*afs_longcall_procs.LC__spl1)
220 #define bcmp (*afs_longcall_procs.LC_bcmp)
221 #if !defined(AFS_DECOSF_ENV)
222 #define splnet (*afs_longcall_procs.LC_splnet)
223 #define splx (*afs_longcall_procs.LC_splx)
225 #define microtime (*afs_longcall_procs.LC_microtime)
226 /* #define ldiv$$ (*afs_longcall_procs[34]) */
227 #define getf (*afs_longcall_procs.LC_getf)
228 #define soreserve (*afs_longcall_procs.LC_soreserve)
229 #define socreate (*afs_longcall_procs.LC_socreate)
230 #define m_get (*afs_longcall_procs.LC_m_get)
231 #define sobind (*afs_longcall_procs.LC_sobind)
232 #define soclose (*afs_longcall_procs.LC_soclose)
233 #define m_freem (*afs_longcall_procs.LC_m_freem)
234 #if !defined(AFS_DECOSF_ENV)
235 #define splimp (*afs_longcall_procs.LC_splimp)
237 #define m_clalloc (*afs_longcall_procs.LC_m_clalloc)
238 #define m_free (*afs_longcall_procs.LC_m_free)
239 #define xrele (*afs_longcall_procs.LC_xrele)
240 #define mpurge (*afs_longcall_procs.LC_mpurge)
241 /* #define lmul$$ (*afs_longcall_procs[48]) */
242 /* #define timeout (*afs_longcall_procs.LC_timeout) */
243 #define untimeout (*afs_longcall_procs.LC_untimeout)
244 #define resettodr (*afs_longcall_procs.LC_resettodr)
245 #define m_pullup (*afs_longcall_procs.LC_m_pullup)
246 #define ip_stripoptions (*afs_longcall_procs.LC_ip_stripoptions)
247 #define in_cksum (*afs_longcall_procs.LC_in_cksum)
248 #define crcopy (*afs_longcall_procs.LC_crcopy)
249 #if !defined(AFS_DECOSF_ENV)
250 #define crhold (*afs_longcall_procs.LC_crhold)
252 #define crget (*afs_longcall_procs.LC_crget)
253 #define setgroups (*afs_longcall_procs.LC_setgroups)
254 /* #define flock (*afs_longcall_procs.LC_flock) */
255 #define uprintf (*afs_longcall_procs.LC_uprintf)
256 #define uiomove (*afs_longcall_procs.LC_uiomove)
257 #define strcmp (*afs_longcall_procs.LC_strcmp)
258 #define ureadc (*afs_longcall_procs.LC_ureadc)
259 #define biodone (*afs_longcall_procs.LC_biodone)
260 /* #define uldiv$$ (*afs_longcall_procs[68]) */
261 #define copyout (*afs_longcall_procs.LC_copyout)
262 #define ioctl (*afs_longcall_procs.LC_ioctl)
263 #define xdr_int (*afs_longcall_procs.LC_xdr_int)
264 #define xdr_long (*afs_longcall_procs.LC_xdr_long)
265 #define xdr_string (*afs_longcall_procs.LC_xdr_string)
266 #define xdr_u_long (*afs_longcall_procs.LC_xdr_u_long)
267 #define xdr_u_int (*afs_longcall_procs.LC_xdr_u_int)
268 #define xdr_bytes (*afs_longcall_procs.LC_xdr_bytes)
269 #define xdr_array (*afs_longcall_procs.LC_xdr_array)
270 #define xdr_opaque (*afs_longcall_procs.LC_xdr_opaque)
271 #define xdr_short (*afs_longcall_procs.LC_xdr_short)
272 #define xdr_u_short (*afs_longcall_procs.LC_xdr_u_short)
274 #if defined(AFS_DECOSF_ENV)
275 #define assert_wait (*afs_longcall_procs.LC_assert_wait)
276 #define closef (*afs_longcall_procs.LC_closef)
277 #define fake_inode_init (*afs_longcall_procs.LC_fake_inode_init)
278 #define getnewvnode (*afs_longcall_procs.LC_getnewvnode)
279 #define getvfs (*afs_longcall_procs.LC_getvfs)
280 #define idrop (*afs_longcall_procs.LC_idrop)
281 #define insmntque (*afs_longcall_procs.LC_insmntque)
282 #define ioctl_base (*afs_longcall_procs.LC_ioctl_base)
283 #define kalloc (*afs_longcall_procs.LC_kalloc)
284 #define kfree (*afs_longcall_procs.LC_kfree)
285 #define lock_done (*afs_longcall_procs.LC_lock_done)
286 #define m_getclr (*afs_longcall_procs.LC_m_getclr)
287 #define m_retry (*afs_longcall_procs.LC_m_retry)
288 #define m_retryhdr (*afs_longcall_procs.LC_m_retryhdr)
289 #define mpsleep (*afs_longcall_procs.LC_mpsleep)
290 #define namei (*afs_longcall_procs.LC_namei)
291 #define nuxi_32 (*afs_longcall_procs.LC_nuxi_32)
292 #define nuxi_16 (*afs_longcall_procs.LC_nuxi_16)
293 #define setgroups_base (*afs_longcall_procs.LC_setgroups_base)
294 #define substitute_real_creds (*afs_longcall_procs.LC_substitute_real_creds)
295 #define swap_ipl (*afs_longcall_procs.LC_swap_ipl)
296 #define thread_block (*afs_longcall_procs.LC_thread_block)
297 #define u_vp_create (*afs_longcall_procs.LC_u_vp_create)
298 #define ubc_bufalloc (*afs_longcall_procs.LC_ubc_bufalloc)
299 #define ubc_flush_sync (*afs_longcall_procs.LC_ubc_flush_sync)
300 #define ubc_invalidate (*afs_longcall_procs.LC_ubc_invalidate)
301 #define ubc_lookup (*afs_longcall_procs.LC_ubc_lookup)
302 #define ubc_page_dirty (*afs_longcall_procs.LC_ubc_page_dirty)
303 #define ubc_page_release (*afs_longcall_procs.LC_ubc_page_release)
304 #define ubc_sync_iodone (*afs_longcall_procs.LC_ubc_sync_iodone)
305 #define vgetm (*afs_longcall_procs.LC_vgetm)
306 #define vgone (*afs_longcall_procs.LC_vgone)
307 #define vn_close (*afs_longcall_procs.LC_vn_close)
309 #define vn_ioctl (*afs_longcall_procs.LC_vn_ioctl)
310 #define vn_read (*afs_longcall_procs.LC_vn_read)
311 #define vn_select (*afs_longcall_procs.LC_vn_select)
312 #define vn_write (*afs_longcall_procs.LC_vn_write)
314 #define vrele (*afs_longcall_procs.LC_vrele)
315 #define xdr_char (*afs_longcall_procs.LC_xdr_char)
316 #endif /* AFS_DECOSF_ENV */
318 #endif /* LONGCALL_NO_MACROS */