386BSD 0.1 development
[unix-history] / usr / othersrc / contrib / isode / ssap / llib-lssap
CommitLineData
a0be6343
WJ
1/* llib-lssap - lint library for -lssap */
2
3/*
4 * $Header: /f/osi/ssap/RCS/llib-lssap,v 7.2 91/02/22 09:45:37 mrose Interim $
5 *
6 *
7 * $Log: llib-lssap,v $
8 * Revision 7.2 91/02/22 09:45:37 mrose
9 * Interim 6.8
10 *
11 * Revision 7.1 91/01/10 04:11:27 mrose
12 * foo
13 *
14 * Revision 7.0 89/11/23 22:25:18 mrose
15 * Release 6.0
16 *
17 */
18
19/*
20 * NOTICE
21 *
22 * Acquisition, use, and distribution of this module and related
23 * materials are subject to the restrictions of a license agreement.
24 * Consult the Preface in the User's Manual for the full terms of
25 * this agreement.
26 *
27 */
28
29
30/* LINTLIBRARY */
31
32#include "ssap.h"
33
34/* \f */
35
36/* SERVER only */
37
38int SExec (ts, si, hook, setperms)
39struct TSAPstart *ts;
40struct SSAPindication *si;
41IFP hook,
42 setperms;
43{
44 return SExec (ts, si, hook, setperms);
45}
46
47
48/* S-CONNECT.INDICATION */
49
50int SInit (vecp, vec, ss, si)
51int vecp;
52char **vec;
53struct SSAPstart *ss;
54struct SSAPindication *si;
55{
56 return SInit (vecp, vec, ss, si);
57}
58
59
60/* S-CONNECT.RESPONSE */
61
62int SConnResponse (sd, ref, responding, result, requirements, settings,
63 isn, data, cc, si)
64int sd;
65struct SSAPref *ref;
66struct SSAPaddr *responding;
67int result,
68 requirements,
69 settings,
70 cc;
71long isn;
72char *data;
73struct SSAPindication *si;
74{
75 return SConnResponse (sd, ref, responding, result, requirements, settings,
76 isn, data, cc, si);
77}
78
79
80/* S-(ASYN-)CONNECT.REQUEST */
81
82int SAsynConnRequest (ref, calling, called, requirements, settings, isn,
83 data, cc, qos, sc, si, async)
84struct SSAPref *ref;
85struct SSAPaddr *calling,
86 *called;
87int requirements,
88 settings,
89 cc,
90 async;
91long isn;
92char *data;
93struct QOStype *qos;
94struct SSAPconnect *sc;
95struct SSAPindication *si;
96{
97 return SAsynConnRequest (ref, calling, called, requirements, settings, isn,
98 data, cc, qos, sc, si, async);
99}
100
101
102/* S-ASYN-RETRY.REQUEST (pseudo) */
103
104int SAsynRetryRequest (sd, sc, si)
105int sd;
106struct SSAPconnect *sc;
107struct SSAPindication *si;
108{
109 return SAsynRetryRequest (sd, sc, si);
110}
111
112
113/* S-ASYN-NEXT.REQUEST (pseudo) */
114
115int SAsynNextRequest (sd, sc, si)
116int sd;
117struct SSAPconnect *sc;
118struct SSAPindication *si;
119{
120 return SAsynNextRequest (sd, sc, si);
121}
122
123
124/* S-DATA.REQUEST */
125
126int SDataRequest (sd, data, cc, si)
127int sd;
128char *data;
129int cc;
130struct SSAPindication *si;
131{
132 return SDataRequest (sd, data, cc, si);
133}
134
135
136/* S-SEND.REQUEST (segmented) */
137
138int SSendRequest (sd, data, cc, begin, end, si)
139int sd;
140char *data;
141int cc,
142 begin,
143 end;
144struct SSAPindication *si;
145{
146 return SSendRequest (sd, data, cc, begin, end, si);
147}
148
149
150/* S-WRITE.REQUEST (pseudo, write user data vectors) */
151
152int SWriteRequest (sd, typed, uv, si)
153int sd;
154int typed;
155struct udvec *uv;
156struct SSAPindication *si;
157{
158 return SWriteRequest (sd, typed, uv, si);
159}
160
161
162/* S-EXPEDITED-DATA.REQUEST */
163
164int SExpdRequest (sd, data, cc, si)
165int sd;
166char *data;
167int cc;
168struct SSAPindication *si;
169{
170 return SExpdRequest (sd, data, cc, si);
171}
172
173
174/* S-TYPED-DATA.REQUEST */
175
176int STypedRequest (sd, data, cc, si)
177int sd;
178char *data;
179int cc;
180struct SSAPindication *si;
181{
182 return STypedRequest (sd, data, cc, si);
183}
184
185
186/* S-CAPABILITY-DATA.REQUEST */
187
188int SCapdRequest (sd, data, cc, si)
189int sd;
190char *data;
191int cc;
192struct SSAPindication *si;
193{
194 return SCapdRequest (sd, data, cc, si);
195}
196
197
198/* S-CAPABILITY-DATA.RESPONSE */
199
200int SCapdResponse (sd, data, cc, si)
201int sd;
202char *data;
203int cc;
204struct SSAPindication *si;
205{
206 return SCapdResponse (sd, data, cc, si);
207}
208
209
210/* S-READ.REQUEST (pseudo; synchronous read) */
211
212int SReadRequest (sd, sx, secs, si)
213int sd;
214struct SSAPdata *sx;
215int secs;
216struct SSAPindication *si;
217{
218 return SReadRequest (sd, sx, secs, si);
219}
220
221
222/* S-TOKEN-GIVE.REQUEST */
223
224int SGTokenRequest (sd, tokens, si)
225int sd;
226int tokens;
227struct SSAPindication *si;
228{
229 return SGTokenRequest (sd, tokens, si);
230}
231
232
233/* S-TOKEN-PLEASE.REQUEST */
234
235int SPTokenRequest (sd, tokens, data, cc, si)
236int sd;
237int tokens,
238 cc;
239char *data;
240struct SSAPindication *si;
241{
242 return SPTokenRequest (sd, tokens, data, cc, si);
243}
244
245
246/* S-CONTROL-GIVE.REQUEST */
247
248int SGControlRequest (sd, si)
249int sd;
250struct SSAPindication *si;
251{
252 return SGControlRequest (sd, si);
253}
254
255
256/* S-MAJOR-SYNC.REQUEST */
257
258int SMajSyncRequest (sd, ssn, data, cc, si)
259int sd;
260long *ssn;
261char *data;
262int cc;
263struct SSAPindication *si;
264{
265 return SMajSyncRequest (sd, ssn, data, cc, si);
266}
267
268
269/* S-MAJOR-SYNC.RESPONSE */
270
271int SMajSyncResponse (sd, data, cc, si)
272int sd;
273char *data;
274int cc;
275struct SSAPindication *si;
276{
277 return SMajSyncResponse (sd, data, cc, si);
278}
279
280
281/* S-MINOR-SYNC.REQUEST */
282
283int SMinSyncRequest (sd, type, ssn, data, cc, si)
284int sd;
285int type;
286long *ssn;
287char *data;
288int cc;
289struct SSAPindication *si;
290{
291 return SMinSyncRequest (sd, type, ssn, data, cc, si);
292}
293
294
295/* S-MINOR-SYNC.RESPONSE */
296
297int SMinSyncResponse (sd, ssn, data, cc, si)
298int sd;
299long ssn;
300char *data;
301int cc;
302struct SSAPindication *si;
303{
304 return SMinSyncResponse (sd, ssn, data, cc, si);
305}
306
307
308/* S-RESYNCHRONIZE.REQUEST */
309
310int SReSyncRequest (sd, type, ssn, settings, data, cc, si)
311int sd;
312int type,
313 settings;
314long ssn;
315char *data;
316int cc;
317struct SSAPindication *si;
318{
319 return SReSyncRequest (sd, type, ssn, settings, data, cc, si);
320}
321
322
323/* S-RESYNCHRONIZE.RESPONSE */
324
325int SReSyncResponse (sd, ssn, settings, data, cc, si)
326int sd;
327int settings;
328long ssn;
329char *data;
330int cc;
331struct SSAPindication *si;
332{
333 return SReSyncResponse (sd, ssn, settings, data, cc, si);
334}
335
336
337/* S-ACTIVITY-START.REQUEST */
338
339int SActStartRequest (sd, id, data, cc, si)
340int sd;
341struct SSAPactid *id;
342char *data;
343int cc;
344struct SSAPindication *si;
345{
346 return SActStartRequest (sd, id, data, cc, si);
347}
348
349/* S-ACTIVITY-RESUME.REQUEST */
350
351int SActResumeRequest (sd, id, oid, ssn, ref, data, cc, si)
352int sd;
353struct SSAPactid *id,
354 *oid;
355long ssn;
356struct SSAPref *ref;
357char *data;
358int cc;
359struct SSAPindication *si;
360{
361 return SActResumeRequest (sd, id, oid, ssn, ref, data, cc, si);
362}
363
364/* S-ACTIVITY-INTERRUPT.REQUEST */
365
366int SActIntrRequest (sd, reason, si)
367int sd;
368int reason;
369struct SSAPindication *si;
370{
371 return SActIntrRequest (sd, reason, si);
372}
373
374/* S-ACTIVITY-INTERRUPT.RESPONSE */
375
376int SActIntrResponse (sd, si)
377int sd;
378struct SSAPindication *si;
379{
380 return SActIntrResponse (sd, si);
381}
382
383/* S-ACTIVITY-DISCARD.REQUEST */
384
385int SActDiscRequest (sd, reason, si)
386int sd;
387int reason;
388struct SSAPindication *si;
389{
390 return SActDiscRequest (sd, reason, si);
391}
392
393/* S-ACTIVITY-DISCARD.RESPONSE */
394
395int SActDiscResponse (sd, si)
396int sd;
397struct SSAPindication *si;
398{
399 return SActDiscResponse (sd, si);
400}
401
402/* S-ACTIVITY-END.REQUEST */
403
404int SActEndRequest (sd, ssn, data, cc, si)
405int sd;
406long *ssn;
407char *data;
408int cc;
409struct SSAPindication *si;
410{
411 return SActEndRequest (sd, ssn, data, cc, si);
412}
413
414/* S-ACTIVITY-END.RESPONSE */
415
416int SActEndResponse (sd, data, cc, si)
417int sd;
418char *data;
419int cc;
420struct SSAPindication *si;
421{
422 return SActEndResponse (sd, data, cc, si);
423}
424
425/* S-U-ABORT.REQUEST */
426
427int SUAbortRequest (sd, data, cc, si)
428int sd;
429char *data;
430int cc;
431struct SSAPindication *si;
432{
433 return SUAbortRequest (sd, data, cc, si);
434}
435
436
437/* S-U-EXCEPTION-REPORT.REQUEST */
438
439int SUReportRequest (sd, reason, data, cc, si)
440int sd;
441int reason;
442char *data;
443int cc;
444struct SSAPindication *si;
445{
446 return SUReportRequest (sd, reason, data, cc, si);
447}
448
449/* S-RELEASE.REQUEST */
450
451int SRelRequest (sd, data, cc, secs, sr, si)
452int sd;
453char *data;
454int cc;
455int secs;
456struct SSAPrelease *sr;
457struct SSAPindication *si;
458{
459 return SRelRequest (sd, data, cc, secs, sr, si);
460}
461
462
463/* S-RELEASE-RETRY.REQUEST (pseudo) */
464
465int SRelRetryRequest (sd, secs, sr, si)
466int sd;
467int secs;
468struct SSAPrelease *sr;
469struct SSAPindication *si;
470{
471 return SRelRetryRequest (sd, secs, sr, si);
472}
473
474
475/* S-RELEASE.RESPONSE */
476
477int SRelResponse (sd, result, data, cc, si)
478int sd;
479int result,
480 cc;
481char *data;
482struct SSAPindication *si;
483{
484 return SRelResponse (sd, result, data, cc, si);
485}
486
487
488/* define vectors for INDICATION events */
489
490int SSetIndications (sd, data, tokens, sync, activity, report, finish,
491 abort, si)
492int sd;
493IFP data,
494 tokens,
495 sync,
496 activity,
497 report,
498 finish,
499 abort;
500struct SSAPindication *si;
501{
502 return SSetIndications (sd, data, tokens, sync, activity, report, finish,
503 abort, si);
504}
505
506
507/* map session descriptors for select() */
508
509int SSelectMask (sd, mask, nfds, si)
510int sd;
511fd_set *mask;
512int *nfds;
513struct SSAPindication *si;
514{
515 return SSelectMask (sd, mask, nfds, si);
516}
517
518
519/* return SSAP error code in string form */
520
521char *SErrString (c)
522int c;
523{
524 return SErrString (c);
525}