|
|
1.1 ! root 1: /* rtsaperror.c - return RtSAP error code in string form */ ! 2: ! 3: #ifndef lint ! 4: static char *rcsid = "$Header: /f/osi/rtsap/RCS/rtsaperror.c,v 6.0 89/03/18 23:43:27 mrose Rel $"; ! 5: #endif ! 6: ! 7: /* ! 8: * $Header: /f/osi/rtsap/RCS/rtsaperror.c,v 6.0 89/03/18 23:43:27 mrose Rel $ ! 9: * ! 10: * ! 11: * $Log: rtsaperror.c,v $ ! 12: * Revision 6.0 89/03/18 23:43:27 mrose ! 13: * Release 5.0 ! 14: * ! 15: */ ! 16: ! 17: /* ! 18: * NOTICE ! 19: * ! 20: * Acquisition, use, and distribution of this module and related ! 21: * materials are subject to the restrictions of a license agreement. ! 22: * Consult the Preface in the User's Manual for the full terms of ! 23: * this agreement. ! 24: * ! 25: */ ! 26: ! 27: ! 28: /* LINTLIBRARY */ ! 29: ! 30: #include <stdio.h> ! 31: #include "rtsap.h" ! 32: ! 33: /* */ ! 34: ! 35: ! 36: static char *reject_err0[] = { ! 37: "Busy", ! 38: "Cannot recover", ! 39: "Validation failure", ! 40: "Unacceptable dialogue mode", ! 41: "Rejected by responder", ! 42: "Address unknown", ! 43: "Connect request refused on this network connection", ! 44: "Session disconnect", ! 45: "Protocol error", ! 46: "Congestion at RtSAP", ! 47: "Remote system problem", ! 48: "Presentation disconnect", ! 49: "ACS disconnect", ! 50: "Peer aborted association", ! 51: "Invalid parameter", ! 52: "Invalid operation", ! 53: "Timer expired", ! 54: "Indications waiting", ! 55: "Transfer failure" ! 56: }; ! 57: ! 58: static int reject_err0_cnt = sizeof reject_err0 / sizeof reject_err0[0]; ! 59: ! 60: /* */ ! 61: ! 62: char *RtErrString (code) ! 63: register int code; ! 64: { ! 65: static char buffer[BUFSIZ]; ! 66: ! 67: if (code < reject_err0_cnt) ! 68: return reject_err0[code]; ! 69: ! 70: (void) sprintf (buffer, "unknown error code 0x%x", code); ! 71: return buffer; ! 72: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.