Annotation of kernel/bsd/netat/h/at-config.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
        !             3:  *
        !             4:  * @APPLE_LICENSE_HEADER_START@
        !             5:  * 
        !             6:  * Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
        !             7:  * Reserved.  This file contains Original Code and/or Modifications of
        !             8:  * Original Code as defined in and that are subject to the Apple Public
        !             9:  * Source License Version 1.1 (the "License").  You may not use this file
        !            10:  * except in compliance with the License.  Please obtain a copy of the
        !            11:  * License at http://www.apple.com/publicsource and read it before using
        !            12:  * this file.
        !            13:  * 
        !            14:  * The Original Code and all software distributed under the License are
        !            15:  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
        !            16:  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
        !            17:  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
        !            18:  * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
        !            19:  * License for the specific language governing rights and limitations
        !            20:  * under the License.
        !            21:  * 
        !            22:  * @APPLE_LICENSE_HEADER_END@
        !            23:  */
        !            24: 
        !            25: #ifndef __AT_CONFIG__
        !            26: #define        __AT_CONFIG__
        !            27: /*
        !            28:  *
        !            29:  ******************************************************************************
        !            30:  *                                                                            *
        !            31:  *        Copyright (c) 1988-1993 Apple Computer, Inc.                             *
        !            32:  *                                                                            *
        !            33:  *        The information contained herein is subject to change without       *
        !            34:  *        notice and  should not be  construed as a commitment by Apple       *
        !            35:  *        Computer, Inc. Apple Computer, Inc. assumes no responsibility       *
        !            36:  *        for any errors that may appear.                                     *
        !            37:  *                                                                            *
        !            38:  *        Confidential and Proprietary to Apple Computer, Inc.                *
        !            39:  *                                                                            *
        !            40:  ******************************************************************************
        !            41:  *
        !            42:  *
        !            43:  */
        !            44: 
        !            45: #include <sys/types.h>
        !            46: 
        !            47: 
        !            48: /* old portability characteristic definitions have been removed (we're only
        !            49:    running on AIX and haven't been supporting them up till now anyway
        !            50:    -js
        !            51: */
        !            52: 
        !            53: 
        !            54: 
        !            55: #define AT_VERSION_MAJOR       1
        !            56: #define AT_VERSION_MINOR       1       
        !            57:        /* date & str no longer used in lap_init, but left here for the 
        !            58:           hell of it. */
        !            59: #define AT_VERSION_DATE                970722
        !            60: #define AT_VERSION_STR         "D0"
        !            61: 
        !            62: 
        !            63: #define        UAS_ASSIGN(x,s) *(unsigned short *) &(x[0]) = (unsigned short) (s)
        !            64: 
        !            65: #define        UAS_UAS(x,y)    *(unsigned short *) &(x[0]) = *(unsigned short *) &(y[0])
        !            66: 
        !            67: #define        UAL_ASSIGN(x,l) *(unsigned long *) &(x[0]) = (unsigned long) (l)
        !            68: 
        !            69: #define        UAL_UAL(x,y)    *(unsigned long *) &(x[0]) = *(unsigned long *) &(y[0])
        !            70: 
        !            71: #define        UAS_VALUE(x)    (*(unsigned short *) &(x[0]))
        !            72: 
        !            73: #define        UAL_VALUE(x)    (*(unsigned long *) &(x[0]))
        !            74: 
        !            75: 
        !            76: /* Macros to manipulate at_net variables */
        !            77: #define        NET_ASSIGN(x,s) UAS_ASSIGN(x, s)
        !            78: #define        NET_NET(x, y)   UAS_UAS(x, y)
        !            79: #define        NET_VALUE(x)    UAS_VALUE(x)
        !            80: 
        !            81: #define NET_EQUAL(a, b)        (NET_VALUE(a) == NET_VALUE(b))
        !            82: #define NET_NOTEQ(a, b)        (NET_VALUE(a) != NET_VALUE(b))
        !            83: 
        !            84: #define NET_EQUAL0(a)  (NET_VALUE(a) == 0)
        !            85: #define NET_NOTEQ0(a)  (NET_VALUE(a) != 0)
        !            86: 
        !            87: #define IF_NAME_LEN                    5               /* char array size of if_name */
        !            88: 
        !            89: /*#define      AT_INF_RETRY    -1      */      /* Retry forever */
        !            90: 
        !            91:        /* the kern_err struct was added to allow the kernel to return
        !            92:           information to the user upon startup while supporting NLS. 
        !            93:           The kernel error number (KE_xxx) is tied to a specific NLS
        !            94:           message via the error handling routine in router.c. The specific
        !            95:           error determines which of the elements of the kern_err struct
        !            96:           are used and therefore filled in by the kernel. For clarity 
        !            97:           each KE_xxx error corresponds to a M_xxx define except for the
        !            98:           M_ & KE_ prefixes. The message catalog is sbin/appletalk/atsbin.msg
        !            99:         */
        !           100: 
        !           101: 
        !           102: typedef struct kern_err {
        !           103:        int             errno;                          /* kernel error # (KE_xxx) */
        !           104:        int             port1;
        !           105:        int             port2;
        !           106:        char    name1[IF_NAME_LEN];
        !           107:        char    name2[IF_NAME_LEN];
        !           108:        u_short net;                            
        !           109:        u_char  node;
        !           110:        u_short netr1b, netr1e;         /* net range 1 begin & end */
        !           111:        u_short netr2b, netr2e;         /* net range 2 begin & end */
        !           112:        u_char  rtmp_id;
        !           113: } kern_err_t;
        !           114: 
        !           115: #define KE_CONF_RANGE                  1
        !           116: #define KE_CONF_SEED_RNG               2
        !           117: #define KE_CONF_SEED1                  3
        !           118: #define KE_CONF_SEED_NODE              4
        !           119: #define KE_NO_ZONES_FOUND              5
        !           120: #define KE_NO_SEED                             6
        !           121: #define KE_INVAL_RANGE                 7
        !           122: #define KE_SEED_STARTUP                        8       
        !           123: #define KE_BAD_VER                             9
        !           124: #define KE_RTMP_OVERFLOW               10
        !           125: #define KE_ZIP_OVERFLOW                        11
        !           126: 
        !           127: 
        !           128: #endif /* __AT-CONFIG__ */

unix.superglobalmegacorp.com

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