Annotation of 43BSDReno/contrib/isode-beta/psap/oid2ode.c, revision 1.1

1.1     ! root        1: /* oid2ode.c - object identifier to object descriptor  */
        !             2: 
        !             3: #ifndef        lint
        !             4: static char *rcsid = "$Header: /f/osi/psap/RCS/oid2ode.c,v 7.1 90/07/09 14:43:47 mrose Exp $";
        !             5: #endif
        !             6: 
        !             7: /* 
        !             8:  * $Header: /f/osi/psap/RCS/oid2ode.c,v 7.1 90/07/09 14:43:47 mrose Exp $
        !             9:  *
        !            10:  *
        !            11:  * $Log:       oid2ode.c,v $
        !            12:  * Revision 7.1  90/07/09  14:43:47  mrose
        !            13:  * sync
        !            14:  * 
        !            15:  * Revision 7.0  89/11/23  22:12:49  mrose
        !            16:  * Release 6.0
        !            17:  * 
        !            18:  */
        !            19: 
        !            20: /*
        !            21:  *                               NOTICE
        !            22:  *
        !            23:  *    Acquisition, use, and distribution of this module and related
        !            24:  *    materials are subject to the restrictions of a license agreement.
        !            25:  *    Consult the Preface in the User's Manual for the full terms of
        !            26:  *    this agreement.
        !            27:  *
        !            28:  */
        !            29: 
        !            30: 
        !            31: /* LINTLIBRARY */
        !            32: 
        !            33: #include <stdio.h>
        !            34: #include "psap.h"
        !            35: #include "tailor.h"
        !            36: 
        !            37: /*  */
        !            38: 
        !            39: char   *oid2ode_aux (identifier, quoted)
        !            40: OID    identifier;
        !            41: int    quoted;
        !            42: {
        !            43:     int            events;
        !            44:     register struct isobject *io;
        !            45:     static char buffer[BUFSIZ];
        !            46:     
        !            47:     events = addr_log -> ll_events;
        !            48:     addr_log -> ll_events = LLOG_FATAL;
        !            49: 
        !            50:     io = getisobjectbyoid (identifier);
        !            51: 
        !            52:     addr_log -> ll_events = events;
        !            53: 
        !            54:     if (io) {
        !            55:        (void) sprintf (buffer, quoted ? "\"%s\"" : "%s",
        !            56:                        io -> io_descriptor);
        !            57:        return buffer;
        !            58:     }
        !            59: 
        !            60:     return sprintoid (identifier);
        !            61: }

unix.superglobalmegacorp.com

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