Annotation of 43BSDReno/contrib/isode-beta/h/ronot.h, revision 1.1.1.1

1.1       root        1: /* ronote.h - Additions to properly support ABSTRACT-BIND */
                      2: 
                      3: /* 
                      4:  * $Header: /f/osi/h/RCS/ronot.h,v 7.0 90/07/26 14:26:02 mrose Exp $
                      5:  *
                      6:  *
                      7:  * $Log:       ronot.h,v $
                      8:  * Revision 7.0  90/07/26  14:26:02  mrose
                      9:  * *** empty log message ***
                     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: #ifndef        _RoNot_
                     24: #define        _RoNot_
                     25: 
                     26: #ifndef        _MANIFEST_
                     27: #include "manifest.h"
                     28: #endif
                     29: #ifndef        _GENERAL_
                     30: #include "general.h"
                     31: #endif
                     32: 
                     33: #ifndef        _AcSAP_
                     34: #include "acsap.h"             /* definitions for AcS-USERs */
                     35: #endif
                     36: 
                     37: #ifndef        _RoSAP_
                     38: #include "rosap.h"             /* definitions for RoS-USERs */
                     39: #endif
                     40: 
                     41: #define BIND_RESULT    1       /* indicates a bind result occured */
                     42: #define BIND_ERROR     2       /* indicates a bind error occured */
                     43: 
                     44: struct RoNOTindication {
                     45:     int            rni_reason;         /* reason for failure */
                     46: #define RBI_ACSE               1       /* ACSE provider failed */
                     47: #define RBI_SET_ROSE_PRES      2       /* Failed to set ROS-USER */
                     48: #define RBI_ENC_BIND_ARG       3       /* Failed encoding bind argument */
                     49: #define RBI_ENC_BIND_RES       4       /* Failed encoding bind result */
                     50: #define RBI_ENC_BIND_ERR       5       /* Failed encoding bind error */
                     51: #define RBI_ENC_UNBIND_ARG     6       /* Failed encoding unbind argument */
                     52: #define RBI_ENC_UNBIND_RES     7       /* Failed encoding unbind result */
                     53: #define RBI_ENC_UNBIND_ERR     8       /* Failed encoding unbind error */
                     54: #define RBI_DEC_BIND_ARG       9       /* Failed decoding bind argument */
                     55: #define RBI_DEC_BIND_RES       10      /* Failed decoding bind result */
                     56: #define RBI_DEC_BIND_ERR       11      /* Failed decoding bind error */
                     57: #define RBI_DEC_UNBIND_ARG     12      /* Failed decoding unbind argument */
                     58: #define RBI_DEC_UNBIND_RES     13      /* Failed decoding unbind result */
                     59: #define RBI_DEC_UNBIND_ERR     14      /* Failed decoding unbind error */
                     60: #define RBI_DEC_NINFO          15      /* Erroneous number of user infos */
                     61: 
                     62:                                /* diagnostics from provider */
                     63: #define        RB_SIZE 512
                     64:     int            rni_cc;             /*   length */
                     65:     char    rni_data[RB_SIZE]; /*   data */
                     66: };
                     67: 
                     68: #ifndef        lint
                     69: #ifndef        __STDC__
                     70: #define        copyRoNOTdata(base,len,d) \
                     71: { \
                     72:     register int i = len; \
                     73:     if ((d -> d/* */_cc = min (i, sizeof d -> d/* */_data)) > 0) \
                     74:        bcopy (base, d -> d/* */_data, d -> d/* */_cc); \
                     75: }
                     76: #else
                     77: #define        copyRoNOTdata(base,len,d) \
                     78: { \
                     79:     register int i = len; \
                     80:     if ((d -> d##_cc = min (i, sizeof d -> d##_data)) > 0) \
                     81:        bcopy (base, d -> d##_data, d -> d##_cc); \
                     82: }
                     83: #endif
                     84: #else
                     85: #define        copyRoNOTdata(base,len,d)       bcopy (base, (char *) d, len)
                     86: #endif
                     87: 
                     88: #endif

unix.superglobalmegacorp.com

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