Commit | Line | Data |
---|---|---|
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 | ||
38 | int SExec (ts, si, hook, setperms) | |
39 | struct TSAPstart *ts; | |
40 | struct SSAPindication *si; | |
41 | IFP hook, | |
42 | setperms; | |
43 | { | |
44 | return SExec (ts, si, hook, setperms); | |
45 | } | |
46 | ||
47 | ||
48 | /* S-CONNECT.INDICATION */ | |
49 | ||
50 | int SInit (vecp, vec, ss, si) | |
51 | int vecp; | |
52 | char **vec; | |
53 | struct SSAPstart *ss; | |
54 | struct SSAPindication *si; | |
55 | { | |
56 | return SInit (vecp, vec, ss, si); | |
57 | } | |
58 | ||
59 | ||
60 | /* S-CONNECT.RESPONSE */ | |
61 | ||
62 | int SConnResponse (sd, ref, responding, result, requirements, settings, | |
63 | isn, data, cc, si) | |
64 | int sd; | |
65 | struct SSAPref *ref; | |
66 | struct SSAPaddr *responding; | |
67 | int result, | |
68 | requirements, | |
69 | settings, | |
70 | cc; | |
71 | long isn; | |
72 | char *data; | |
73 | struct 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 | ||
82 | int SAsynConnRequest (ref, calling, called, requirements, settings, isn, | |
83 | data, cc, qos, sc, si, async) | |
84 | struct SSAPref *ref; | |
85 | struct SSAPaddr *calling, | |
86 | *called; | |
87 | int requirements, | |
88 | settings, | |
89 | cc, | |
90 | async; | |
91 | long isn; | |
92 | char *data; | |
93 | struct QOStype *qos; | |
94 | struct SSAPconnect *sc; | |
95 | struct 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 | ||
104 | int SAsynRetryRequest (sd, sc, si) | |
105 | int sd; | |
106 | struct SSAPconnect *sc; | |
107 | struct SSAPindication *si; | |
108 | { | |
109 | return SAsynRetryRequest (sd, sc, si); | |
110 | } | |
111 | ||
112 | ||
113 | /* S-ASYN-NEXT.REQUEST (pseudo) */ | |
114 | ||
115 | int SAsynNextRequest (sd, sc, si) | |
116 | int sd; | |
117 | struct SSAPconnect *sc; | |
118 | struct SSAPindication *si; | |
119 | { | |
120 | return SAsynNextRequest (sd, sc, si); | |
121 | } | |
122 | ||
123 | ||
124 | /* S-DATA.REQUEST */ | |
125 | ||
126 | int SDataRequest (sd, data, cc, si) | |
127 | int sd; | |
128 | char *data; | |
129 | int cc; | |
130 | struct SSAPindication *si; | |
131 | { | |
132 | return SDataRequest (sd, data, cc, si); | |
133 | } | |
134 | ||
135 | ||
136 | /* S-SEND.REQUEST (segmented) */ | |
137 | ||
138 | int SSendRequest (sd, data, cc, begin, end, si) | |
139 | int sd; | |
140 | char *data; | |
141 | int cc, | |
142 | begin, | |
143 | end; | |
144 | struct 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 | ||
152 | int SWriteRequest (sd, typed, uv, si) | |
153 | int sd; | |
154 | int typed; | |
155 | struct udvec *uv; | |
156 | struct SSAPindication *si; | |
157 | { | |
158 | return SWriteRequest (sd, typed, uv, si); | |
159 | } | |
160 | ||
161 | ||
162 | /* S-EXPEDITED-DATA.REQUEST */ | |
163 | ||
164 | int SExpdRequest (sd, data, cc, si) | |
165 | int sd; | |
166 | char *data; | |
167 | int cc; | |
168 | struct SSAPindication *si; | |
169 | { | |
170 | return SExpdRequest (sd, data, cc, si); | |
171 | } | |
172 | ||
173 | ||
174 | /* S-TYPED-DATA.REQUEST */ | |
175 | ||
176 | int STypedRequest (sd, data, cc, si) | |
177 | int sd; | |
178 | char *data; | |
179 | int cc; | |
180 | struct SSAPindication *si; | |
181 | { | |
182 | return STypedRequest (sd, data, cc, si); | |
183 | } | |
184 | ||
185 | ||
186 | /* S-CAPABILITY-DATA.REQUEST */ | |
187 | ||
188 | int SCapdRequest (sd, data, cc, si) | |
189 | int sd; | |
190 | char *data; | |
191 | int cc; | |
192 | struct SSAPindication *si; | |
193 | { | |
194 | return SCapdRequest (sd, data, cc, si); | |
195 | } | |
196 | ||
197 | ||
198 | /* S-CAPABILITY-DATA.RESPONSE */ | |
199 | ||
200 | int SCapdResponse (sd, data, cc, si) | |
201 | int sd; | |
202 | char *data; | |
203 | int cc; | |
204 | struct SSAPindication *si; | |
205 | { | |
206 | return SCapdResponse (sd, data, cc, si); | |
207 | } | |
208 | ||
209 | ||
210 | /* S-READ.REQUEST (pseudo; synchronous read) */ | |
211 | ||
212 | int SReadRequest (sd, sx, secs, si) | |
213 | int sd; | |
214 | struct SSAPdata *sx; | |
215 | int secs; | |
216 | struct SSAPindication *si; | |
217 | { | |
218 | return SReadRequest (sd, sx, secs, si); | |
219 | } | |
220 | ||
221 | ||
222 | /* S-TOKEN-GIVE.REQUEST */ | |
223 | ||
224 | int SGTokenRequest (sd, tokens, si) | |
225 | int sd; | |
226 | int tokens; | |
227 | struct SSAPindication *si; | |
228 | { | |
229 | return SGTokenRequest (sd, tokens, si); | |
230 | } | |
231 | ||
232 | ||
233 | /* S-TOKEN-PLEASE.REQUEST */ | |
234 | ||
235 | int SPTokenRequest (sd, tokens, data, cc, si) | |
236 | int sd; | |
237 | int tokens, | |
238 | cc; | |
239 | char *data; | |
240 | struct SSAPindication *si; | |
241 | { | |
242 | return SPTokenRequest (sd, tokens, data, cc, si); | |
243 | } | |
244 | ||
245 | ||
246 | /* S-CONTROL-GIVE.REQUEST */ | |
247 | ||
248 | int SGControlRequest (sd, si) | |
249 | int sd; | |
250 | struct SSAPindication *si; | |
251 | { | |
252 | return SGControlRequest (sd, si); | |
253 | } | |
254 | ||
255 | ||
256 | /* S-MAJOR-SYNC.REQUEST */ | |
257 | ||
258 | int SMajSyncRequest (sd, ssn, data, cc, si) | |
259 | int sd; | |
260 | long *ssn; | |
261 | char *data; | |
262 | int cc; | |
263 | struct SSAPindication *si; | |
264 | { | |
265 | return SMajSyncRequest (sd, ssn, data, cc, si); | |
266 | } | |
267 | ||
268 | ||
269 | /* S-MAJOR-SYNC.RESPONSE */ | |
270 | ||
271 | int SMajSyncResponse (sd, data, cc, si) | |
272 | int sd; | |
273 | char *data; | |
274 | int cc; | |
275 | struct SSAPindication *si; | |
276 | { | |
277 | return SMajSyncResponse (sd, data, cc, si); | |
278 | } | |
279 | ||
280 | ||
281 | /* S-MINOR-SYNC.REQUEST */ | |
282 | ||
283 | int SMinSyncRequest (sd, type, ssn, data, cc, si) | |
284 | int sd; | |
285 | int type; | |
286 | long *ssn; | |
287 | char *data; | |
288 | int cc; | |
289 | struct SSAPindication *si; | |
290 | { | |
291 | return SMinSyncRequest (sd, type, ssn, data, cc, si); | |
292 | } | |
293 | ||
294 | ||
295 | /* S-MINOR-SYNC.RESPONSE */ | |
296 | ||
297 | int SMinSyncResponse (sd, ssn, data, cc, si) | |
298 | int sd; | |
299 | long ssn; | |
300 | char *data; | |
301 | int cc; | |
302 | struct SSAPindication *si; | |
303 | { | |
304 | return SMinSyncResponse (sd, ssn, data, cc, si); | |
305 | } | |
306 | ||
307 | ||
308 | /* S-RESYNCHRONIZE.REQUEST */ | |
309 | ||
310 | int SReSyncRequest (sd, type, ssn, settings, data, cc, si) | |
311 | int sd; | |
312 | int type, | |
313 | settings; | |
314 | long ssn; | |
315 | char *data; | |
316 | int cc; | |
317 | struct SSAPindication *si; | |
318 | { | |
319 | return SReSyncRequest (sd, type, ssn, settings, data, cc, si); | |
320 | } | |
321 | ||
322 | ||
323 | /* S-RESYNCHRONIZE.RESPONSE */ | |
324 | ||
325 | int SReSyncResponse (sd, ssn, settings, data, cc, si) | |
326 | int sd; | |
327 | int settings; | |
328 | long ssn; | |
329 | char *data; | |
330 | int cc; | |
331 | struct SSAPindication *si; | |
332 | { | |
333 | return SReSyncResponse (sd, ssn, settings, data, cc, si); | |
334 | } | |
335 | ||
336 | ||
337 | /* S-ACTIVITY-START.REQUEST */ | |
338 | ||
339 | int SActStartRequest (sd, id, data, cc, si) | |
340 | int sd; | |
341 | struct SSAPactid *id; | |
342 | char *data; | |
343 | int cc; | |
344 | struct SSAPindication *si; | |
345 | { | |
346 | return SActStartRequest (sd, id, data, cc, si); | |
347 | } | |
348 | ||
349 | /* S-ACTIVITY-RESUME.REQUEST */ | |
350 | ||
351 | int SActResumeRequest (sd, id, oid, ssn, ref, data, cc, si) | |
352 | int sd; | |
353 | struct SSAPactid *id, | |
354 | *oid; | |
355 | long ssn; | |
356 | struct SSAPref *ref; | |
357 | char *data; | |
358 | int cc; | |
359 | struct SSAPindication *si; | |
360 | { | |
361 | return SActResumeRequest (sd, id, oid, ssn, ref, data, cc, si); | |
362 | } | |
363 | ||
364 | /* S-ACTIVITY-INTERRUPT.REQUEST */ | |
365 | ||
366 | int SActIntrRequest (sd, reason, si) | |
367 | int sd; | |
368 | int reason; | |
369 | struct SSAPindication *si; | |
370 | { | |
371 | return SActIntrRequest (sd, reason, si); | |
372 | } | |
373 | ||
374 | /* S-ACTIVITY-INTERRUPT.RESPONSE */ | |
375 | ||
376 | int SActIntrResponse (sd, si) | |
377 | int sd; | |
378 | struct SSAPindication *si; | |
379 | { | |
380 | return SActIntrResponse (sd, si); | |
381 | } | |
382 | ||
383 | /* S-ACTIVITY-DISCARD.REQUEST */ | |
384 | ||
385 | int SActDiscRequest (sd, reason, si) | |
386 | int sd; | |
387 | int reason; | |
388 | struct SSAPindication *si; | |
389 | { | |
390 | return SActDiscRequest (sd, reason, si); | |
391 | } | |
392 | ||
393 | /* S-ACTIVITY-DISCARD.RESPONSE */ | |
394 | ||
395 | int SActDiscResponse (sd, si) | |
396 | int sd; | |
397 | struct SSAPindication *si; | |
398 | { | |
399 | return SActDiscResponse (sd, si); | |
400 | } | |
401 | ||
402 | /* S-ACTIVITY-END.REQUEST */ | |
403 | ||
404 | int SActEndRequest (sd, ssn, data, cc, si) | |
405 | int sd; | |
406 | long *ssn; | |
407 | char *data; | |
408 | int cc; | |
409 | struct SSAPindication *si; | |
410 | { | |
411 | return SActEndRequest (sd, ssn, data, cc, si); | |
412 | } | |
413 | ||
414 | /* S-ACTIVITY-END.RESPONSE */ | |
415 | ||
416 | int SActEndResponse (sd, data, cc, si) | |
417 | int sd; | |
418 | char *data; | |
419 | int cc; | |
420 | struct SSAPindication *si; | |
421 | { | |
422 | return SActEndResponse (sd, data, cc, si); | |
423 | } | |
424 | ||
425 | /* S-U-ABORT.REQUEST */ | |
426 | ||
427 | int SUAbortRequest (sd, data, cc, si) | |
428 | int sd; | |
429 | char *data; | |
430 | int cc; | |
431 | struct SSAPindication *si; | |
432 | { | |
433 | return SUAbortRequest (sd, data, cc, si); | |
434 | } | |
435 | ||
436 | ||
437 | /* S-U-EXCEPTION-REPORT.REQUEST */ | |
438 | ||
439 | int SUReportRequest (sd, reason, data, cc, si) | |
440 | int sd; | |
441 | int reason; | |
442 | char *data; | |
443 | int cc; | |
444 | struct SSAPindication *si; | |
445 | { | |
446 | return SUReportRequest (sd, reason, data, cc, si); | |
447 | } | |
448 | ||
449 | /* S-RELEASE.REQUEST */ | |
450 | ||
451 | int SRelRequest (sd, data, cc, secs, sr, si) | |
452 | int sd; | |
453 | char *data; | |
454 | int cc; | |
455 | int secs; | |
456 | struct SSAPrelease *sr; | |
457 | struct SSAPindication *si; | |
458 | { | |
459 | return SRelRequest (sd, data, cc, secs, sr, si); | |
460 | } | |
461 | ||
462 | ||
463 | /* S-RELEASE-RETRY.REQUEST (pseudo) */ | |
464 | ||
465 | int SRelRetryRequest (sd, secs, sr, si) | |
466 | int sd; | |
467 | int secs; | |
468 | struct SSAPrelease *sr; | |
469 | struct SSAPindication *si; | |
470 | { | |
471 | return SRelRetryRequest (sd, secs, sr, si); | |
472 | } | |
473 | ||
474 | ||
475 | /* S-RELEASE.RESPONSE */ | |
476 | ||
477 | int SRelResponse (sd, result, data, cc, si) | |
478 | int sd; | |
479 | int result, | |
480 | cc; | |
481 | char *data; | |
482 | struct SSAPindication *si; | |
483 | { | |
484 | return SRelResponse (sd, result, data, cc, si); | |
485 | } | |
486 | ||
487 | ||
488 | /* define vectors for INDICATION events */ | |
489 | ||
490 | int SSetIndications (sd, data, tokens, sync, activity, report, finish, | |
491 | abort, si) | |
492 | int sd; | |
493 | IFP data, | |
494 | tokens, | |
495 | sync, | |
496 | activity, | |
497 | report, | |
498 | finish, | |
499 | abort; | |
500 | struct 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 | ||
509 | int SSelectMask (sd, mask, nfds, si) | |
510 | int sd; | |
511 | fd_set *mask; | |
512 | int *nfds; | |
513 | struct SSAPindication *si; | |
514 | { | |
515 | return SSelectMask (sd, mask, nfds, si); | |
516 | } | |
517 | ||
518 | ||
519 | /* return SSAP error code in string form */ | |
520 | ||
521 | char *SErrString (c) | |
522 | int c; | |
523 | { | |
524 | return SErrString (c); | |
525 | } |