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