Annotation of 43BSDReno/contrib/isode-beta/acsap/acsaperror.c, revision 1.1

1.1     ! root        1: /* acsaperror.c - return AcSAP error code in string form */
        !             2: 
        !             3: #ifndef        lint
        !             4: static char *rcsid = "$Header: /f/osi/acsap/RCS/acsaperror.c,v 7.0 89/11/23 21:21:48 mrose Rel $";
        !             5: #endif
        !             6: 
        !             7: /* 
        !             8:  * $Header: /f/osi/acsap/RCS/acsaperror.c,v 7.0 89/11/23 21:21:48 mrose Rel $
        !             9:  *
        !            10:  *
        !            11:  * $Log:       acsaperror.c,v $
        !            12:  * Revision 7.0  89/11/23  21:21:48  mrose
        !            13:  * Release 6.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 "acsap.h"
        !            32: 
        !            33: /*  */
        !            34: 
        !            35: static char *reject_err0[] = {
        !            36:     "Accepted",
        !            37:     "Permanent",
        !            38:     "Transient",
        !            39:     "Rejected by service-user: null",
        !            40:     "Rejected by service-user: no reason given",
        !            41:     "Application context name not supported",
        !            42:     "Calling AP title not recognized",
        !            43:     "Calling AP invocation-ID not recognized",
        !            44:     "Calling AE qualifier not recognized",
        !            45:     "Calling AE invocation-ID not recognized",
        !            46:     "Called AP title not recognized",
        !            47:     "Called AP invocation-ID not recognized",
        !            48:     "Called AE qualifier not recognized",
        !            49:     "Called AE invocation-ID not recognized",
        !            50:     "Rejected by service-provider: null",
        !            51:     "Rejected by service-provider: no reason given",
        !            52:     "No common acse version",
        !            53:     "Address unknown",
        !            54:     "Connect request refused on this network connection",
        !            55:     "Local limit exceeded",
        !            56:     "Presentation disconnect",
        !            57:     "Protocol error",
        !            58:     "Peer aborted association",
        !            59:     "Invalid parameter",
        !            60:     "Invalid operation",
        !            61:     "Timer expired"
        !            62: };
        !            63: 
        !            64: static int reject_err0_cnt = sizeof reject_err0 / sizeof reject_err0[0];
        !            65: 
        !            66: /*  */
        !            67: 
        !            68: char   *AcErrString (code)
        !            69: register int code;
        !            70: {
        !            71:     static char buffer[BUFSIZ];
        !            72: 
        !            73:     if (code < reject_err0_cnt)
        !            74:        return reject_err0[code];
        !            75: 
        !            76:     (void) sprintf (buffer, "unknown error code %d", code);
        !            77:     return buffer;
        !            78: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.