Annotation of XNU/osfmk/mach/mig_log.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
        !             3:  *
        !             4:  * @APPLE_LICENSE_HEADER_START@
        !             5:  * 
        !             6:  * The contents of this file constitute Original Code as defined in and
        !             7:  * are subject to the Apple Public Source License Version 1.1 (the
        !             8:  * "License").  You may not use this file except in compliance with the
        !             9:  * License.  Please obtain a copy of the License at
        !            10:  * http://www.apple.com/publicsource and read it before using this file.
        !            11:  * 
        !            12:  * This Original Code and all software distributed under the License are
        !            13:  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
        !            14:  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
        !            15:  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
        !            16:  * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
        !            17:  * License for the specific language governing rights and limitations
        !            18:  * under the License.
        !            19:  * 
        !            20:  * @APPLE_LICENSE_HEADER_END@
        !            21:  */
        !            22: /*
        !            23:  * @OSF_COPYRIGHT@
        !            24:  */
        !            25: /*
        !            26:  * HISTORY
        !            27:  * 
        !            28:  * Revision 1.1.1.1  1998/09/22 21:05:30  wsanchez
        !            29:  * Import of Mac OS X kernel (~semeria)
        !            30:  *
        !            31:  * Revision 1.1.1.1  1998/03/07 02:25:46  wsanchez
        !            32:  * Import of OSF Mach kernel (~mburg)
        !            33:  *
        !            34:  * Revision 1.2.6.1  1994/09/23  02:40:32  ezf
        !            35:  *     change marker to not FREE
        !            36:  *     [1994/09/22  21:41:53  ezf]
        !            37:  *
        !            38:  * Revision 1.2.2.2  1993/06/09  02:42:27  gm
        !            39:  *     Added to OSF/1 R1.3 from NMK15.0.
        !            40:  *     [1993/06/02  21:17:28  jeffc]
        !            41:  * 
        !            42:  * Revision 1.2  1993/04/19  16:36:32  devrcs
        !            43:  *             Merge untyped ipc:
        !            44:  *             Support for logging and tracing within the MIG stubs
        !            45:  *             [1993/02/24  14:47:01  travos]
        !            46:  *     [1993/03/16  13:19:16  rod]
        !            47:  * 
        !            48:  * $EndLog$
        !            49:  */
        !            50: 
        !            51: #ifndef _mig_log_
        !            52: #define _mig_log_
        !            53: 
        !            54: typedef enum {
        !            55:        MACH_MSG_LOG_USER,
        !            56:        MACH_MSG_LOG_SERVER
        !            57: } mig_who_t;
        !            58: 
        !            59: typedef enum {
        !            60:        MACH_MSG_REQUEST_BEING_SENT,
        !            61:        MACH_MSG_REQUEST_BEING_RCVD,
        !            62:        MACH_MSG_REPLY_BEING_SENT,
        !            63:        MACH_MSG_REPLY_BEING_RCVD
        !            64: } mig_which_event_t;
        !            65: 
        !            66: typedef enum {
        !            67:        MACH_MSG_ERROR_WHILE_PARSING,
        !            68:        MACH_MSG_ERROR_UNKNOWN_ID
        !            69: } mig_which_error_t;
        !            70: 
        !            71: extern void MigEventTracer
        !            72: #if     defined(__STDC__)
        !            73: (
        !            74:        mig_who_t who,  
        !            75:        mig_which_event_t what,
        !            76:        mach_msg_id_t msgh_id,
        !            77:        unsigned int size,
        !            78:        unsigned int kpd,
        !            79:        unsigned int retcode,
        !            80:        unsigned int ports,
        !            81:        unsigned int oolports,
        !            82:        unsigned int ool,
        !            83:        char *file,
        !            84:        unsigned int line
        !            85: );
        !            86: #else          /* !defined(__STDC__) */
        !            87: ();
        !            88: #endif  /* !defined(__STDC__) */
        !            89: 
        !            90: extern void MigEventErrors
        !            91: #if     defined(__STDC__)
        !            92: (
        !            93:        mig_who_t who,  
        !            94:        mig_which_error_t what,
        !            95:        void *par,
        !            96:        char *file,
        !            97:        unsigned int line
        !            98: );
        !            99: #else          /* !defined(__STDC__) */
        !           100: ();
        !           101: #endif  /* !defined(__STDC__) */
        !           102: 
        !           103: extern int mig_errors;
        !           104: extern int mig_tracing;
        !           105: 
        !           106: #define LOG_ERRORS      if (mig_errors)  MigEventErrors
        !           107: #define LOG_TRACE       if (mig_tracing) MigEventTracer
        !           108: 
        !           109: #endif  /* _mach_log_ */
        !           110: 

unix.superglobalmegacorp.com

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