DEVEL15-ptserver-debug-flag-20090603
[openafs.git] / src / afs / longc_procs.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
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
8  */
9
10 #ifndef _longc_procs_h_
11 #define _longc_procs_h_         1
12
13 #if !defined(LONGCALL_DEFS) && defined(KERNEL) && defined(DYNEL) && defined(AFS_DECOSF_ENV)
14
15 #define LONGCALL_DEFS
16
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) ();
26     int (*LC_xdr_int) ();
27     int (*LC_xdr_u_int) ();
28     int (*LC_ioctl) ();
29     int (*LC_copyout) ();
30     int (*LC_biodone) ();
31     int (*LC_ureadc) ();
32     int (*LC_strcmp) ();
33     int (*LC_uiomove) ();
34     int (*LC_uprintf) ();
35     int (*LC_strncpy) ();
36     int (*LC_flock) ();
37     int (*LC_setgroups) ();
38     struct ucred *(*LC_crcopy) ();
39     struct ucred *(*LC_crget) ();
40     int (*LC_crhold) ();
41     int (*LC_ip_stripoptions) ();
42     int (*LC_in_cksum) ();
43     struct mbuf *(*LC_m_pullup) ();
44     int (*LC_resettodr) ();
45     int (*LC_untimeout) ();
46     int (*LC_timeout) ();
47     int (*LC_mpurge) ();
48     int (*LC_xrele) ();
49     int (*LC_m_free) ();
50     int (*LC_m_clalloc) ();
51     int (*LC_splimp) ();
52     int (*LC_m_freem) ();
53     int (*LC_soclose) ();
54     int (*LC_sobind) ();
55     struct mbuf *(*LC_m_get) ();
56     int (*LC_socreate) ();
57     int (*LC_soreserve) ();
58 #if     defined(AFS_DECOSF_ENV)
59     int (*LC_getf) ();
60 #else                           /* AFS_DECOSF_ENV */
61     struct file *(*LC_getf) ();
62 #endif
63     int (*LC_splx) ();
64     int (*LC_microtime) ();
65     int (*LC_splnet) ();
66     int (*LC_bcmp) ();
67 #ifdef XDR_CHAR_IN_KERNEL
68     int (*LC_xdr_char) ();
69 #endif
70     int (*LC_iunlock) ();
71     int (*LC_ilock) ();
72     int (*LC_iput) ();
73     struct inode *(*LC_ialloc) ();
74     int (*LC_vno_close) ();
75     int (*LC_kmem_alloc) ();
76     int (*LC_kmem_free) ();
77
78     int (*LC_m_cpytoc) ();
79
80     int (*LC_ufs_brelse) ();
81     int (*LC_lookupname) ();
82     int (*LC_vn_rele) ();
83     int (*LC_vn_rdwr) ();
84     int (*LC_mapout) ();
85     struct mount *(*LC_getmp) ();
86     struct inode *(*LC_iget) ();
87     struct mbuf *(*LC_m_more) ();
88     int (*LC__spl1) ();
89     int (*LC_rdwri) ();
90     struct file *(*LC_falloc) ();
91     int (*LC_rmfree) ();
92     int (*LC_mapin) ();
93     long (*LC_rmalloc) ();
94     struct pte *(*LC_vtopte) ();
95     int (*LC_vattr_null) ();
96     int (*LC_strlen) ();
97     int (*LC_bcopy) ();
98     int (*LC_brelse) ();
99     struct buf *(*LC_geteblk) ();
100     int (*LC_panic) ();
101     int (*LC_strcpy) ();
102     int (*LC_printf) ();
103     int (*LC_copyinstr) ();
104     int (*LC_copyin) ();
105     int (*LC_sleep) ();
106     int (*LC_wakeup) ();
107     int (*LC_bzero) ();
108     int (*LC_suser) ();
109     int (*LC_crfree) ();
110 #if 0
111     int (*LC_igetinode) ();
112 #endif
113 #if     defined(AFS_DECOSF_ENV)
114     void (*LC_assert_wait) ();
115     int (*LC_closef) ();
116     int (*LC_fake_inode_init) ();
117     int (*LC_getnewvnode) ();
118     struct mount *(*LC_getvfs) ();
119     int (*LC_idrop) ();
120     int (*LC_insmntque) ();
121     int (*LC_ioctl_base) ();
122       caddr_t(*LC_kalloc) ();
123     void (*LC_kfree) ();
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) ();
129     int (*LC_namei) ();
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) ();
145     int (*LC_vgetm) ();
146     int (*LC_vgone) ();
147     int (*LC_vn_close) ();
148 /*
149     int (*LC_vn_ioctl) ();
150     int (*LC_vn_read) ();
151     int (*LC_vn_select) ();
152     int (*LC_vn_write) ();
153 */
154     void (*LC_vrele) ();
155     int (*LC_xdr_char) ();
156 #endif                          /* AFS_DECOSF_ENV */
157 };
158 extern struct afs_longcall_procs afs_longcall_procs;
159
160 #ifndef LONGCALL_NO_MACROS
161
162 #if     defined(AFS_DECOSF_ENV)
163 #undef  kmem_alloc
164 #undef  kmem_free
165 #endif /* AFS_DECOSF_ENV */
166
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)
173 #endif
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)
184
185 #define mapin (*afs_longcall_procs.LC_mapin)
186 #define strcpy (*afs_longcall_procs.LC_strcpy)
187 #define strncpy (*afs_longcall_procs.LC_strncpy)
188
189 #define rmfree (*afs_longcall_procs.LC_rmfree)
190 #define falloc (*afs_longcall_procs.LC_falloc)
191 #define rdwri (*afs_longcall_procs.LC_rdwri)
192
193 #ifdef XDR_CHAR_IN_KERNEL
194 #define xdr_char (*afs_longcall_procs.LC_xdr_char)
195 #endif
196
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)
203 #endif
204 #define kmem_alloc (*afs_longcall_procs.LC_kmem_alloc)
205 #define kmem_free (*afs_longcall_procs.LC_kmem_free)
206
207 #define m_cpytoc (*afs_longcall_procs.LC_m_cpytoc)
208
209 #define ufs_brelse (*afs_longcall_procs.LC_ufs_brelse)
210 #if     !defined(AFS_DECOSF_ENV)
211 #define lookupname (*afs_longcall_procs.LC_lookupname)
212 #endif
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)
219
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)
224 #endif
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)
236 #endif
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)
251 #endif
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)
273
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)
308 /*
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)
313 */
314 #define vrele (*afs_longcall_procs.LC_vrele)
315 #define xdr_char (*afs_longcall_procs.LC_xdr_char)
316 #endif /* AFS_DECOSF_ENV */
317
318 #endif /* LONGCALL_NO_MACROS */
319
320 #endif
321 #endif