File:  [CSRG BSD Unix] / 43BSDReno / contrib / isode-beta / rtsap / rtsaperror.c
Revision 1.1: download - view: text, annotated - select for diffs
Tue Apr 24 16:12:56 2018 UTC (8 years, 1 month ago) by root
CVS tags: MAIN, HEAD
Initial revision

/* rtsaperror.c - return RtSAP error code in string form */

#ifndef	lint
static char *rcsid = "$Header: /var/lib/cvsd/repos/CSRG/43BSDReno/contrib/isode-beta/rtsap/rtsaperror.c,v 1.1 2018/04/24 16:12:56 root Exp $";
#endif

/* 
 * $Header: /var/lib/cvsd/repos/CSRG/43BSDReno/contrib/isode-beta/rtsap/rtsaperror.c,v 1.1 2018/04/24 16:12:56 root Exp $
 *
 *
 * $Log: rtsaperror.c,v $
 * Revision 1.1  2018/04/24 16:12:56  root
 * Initial revision
 *
 * Revision 6.0  89/03/18  23:43:27  mrose
 * Release 5.0
 * 
 */

/*
 *				  NOTICE
 *
 *    Acquisition, use, and distribution of this module and related
 *    materials are subject to the restrictions of a license agreement.
 *    Consult the Preface in the User's Manual for the full terms of
 *    this agreement.
 *
 */


/* LINTLIBRARY */

#include <stdio.h>
#include "rtsap.h"

/*  */


static char *reject_err0[] = {
    "Busy",
    "Cannot recover",
    "Validation failure",
    "Unacceptable dialogue mode",
    "Rejected by responder",
    "Address unknown",
    "Connect request refused on this network connection", 
    "Session disconnect",
    "Protocol error",
    "Congestion at RtSAP",
    "Remote system problem",
    "Presentation disconnect",
    "ACS disconnect",
    "Peer aborted association",
    "Invalid parameter",
    "Invalid operation",
    "Timer expired",
    "Indications waiting",
    "Transfer failure"
};

static int reject_err0_cnt = sizeof reject_err0 / sizeof reject_err0[0];

/*  */

char   *RtErrString (code)
register int code;
{
    static char buffer[BUFSIZ];

    if (code < reject_err0_cnt)
	return reject_err0[code];

    (void) sprintf (buffer, "unknown error code 0x%x", code);
    return buffer;
}

unix.superglobalmegacorp.com

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