Print this page
OS-11 rcapd behaves poorly when under extreme load


   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.

  24  */
  25 
  26 #ifndef _UTILS_H
  27 #define _UTILS_H
  28 
  29 #include <assert.h>
  30 #include <libintl.h>
  31 #include <stdarg.h>
  32 #include <time.h>
  33 #include <libzonecfg.h>
  34 
  35 #ifdef  __cplusplus
  36 extern "C" {
  37 #endif
  38 
  39 #define E_SUCCESS       0               /* Exit status for success */
  40 #define E_ERROR         1               /* Exit status for error */
  41 #define E_USAGE         2               /* Exit status for usage error */
  42 
  43 /*


  81 extern void debug_high(char *, ...);
  82 #else /* !DEBUG_MSG */
  83 /*LINTED: static unused*/
  84 static void debug(char *format, ...) /*ARGSUSED*/ {}
  85 /*LINTED: static unused*/
  86 static void debug_high(char *format, ...) /*ARGSUSED*/ {}
  87 #endif /* DEBUG_MSG */
  88 
  89 extern void die(char *, ...);
  90 extern void info(char *, ...);
  91 extern rcm_level_t get_message_priority(void);
  92 extern rcm_level_t set_message_priority(rcm_level_t);
  93 extern rcm_dst_t set_message_destination(rcm_dst_t);
  94 extern char *setpname(char *);
  95 extern void warn(const char *, ...);
  96 extern int valid_abspath(char *);
  97 extern void vdprintfe(int, const char *, va_list);
  98 extern void dprintfe(int, char *, ...);
  99 extern void hrt2ts(hrtime_t, timestruc_t *);
 100 extern int xatoi(char *);
 101 extern int get_running_zones(uint_t *, zone_entry_t **);
 102 
 103 #ifdef  __cplusplus
 104 }
 105 #endif
 106 
 107 #endif  /* _UTILS_H */


   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
  24  * Copyright (c) 2011, Joyent, Inc. All rights reserved.
  25  */
  26 
  27 #ifndef _UTILS_H
  28 #define _UTILS_H
  29 
  30 #include <assert.h>
  31 #include <libintl.h>
  32 #include <stdarg.h>
  33 #include <time.h>
  34 #include <libzonecfg.h>
  35 
  36 #ifdef  __cplusplus
  37 extern "C" {
  38 #endif
  39 
  40 #define E_SUCCESS       0               /* Exit status for success */
  41 #define E_ERROR         1               /* Exit status for error */
  42 #define E_USAGE         2               /* Exit status for usage error */
  43 
  44 /*


  82 extern void debug_high(char *, ...);
  83 #else /* !DEBUG_MSG */
  84 /*LINTED: static unused*/
  85 static void debug(char *format, ...) /*ARGSUSED*/ {}
  86 /*LINTED: static unused*/
  87 static void debug_high(char *format, ...) /*ARGSUSED*/ {}
  88 #endif /* DEBUG_MSG */
  89 
  90 extern void die(char *, ...);
  91 extern void info(char *, ...);
  92 extern rcm_level_t get_message_priority(void);
  93 extern rcm_level_t set_message_priority(rcm_level_t);
  94 extern rcm_dst_t set_message_destination(rcm_dst_t);
  95 extern char *setpname(char *);
  96 extern void warn(const char *, ...);
  97 extern int valid_abspath(char *);
  98 extern void vdprintfe(int, const char *, va_list);
  99 extern void dprintfe(int, char *, ...);
 100 extern void hrt2ts(hrtime_t, timestruc_t *);
 101 extern int xatoi(char *);

 102 
 103 #ifdef  __cplusplus
 104 }
 105 #endif
 106 
 107 #endif  /* _UTILS_H */