Print this page
remove support for non-ANSI compilation


   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*      Copyright (c) 1988 AT&T     */
  23 /*        All Rights Reserved   */
  24 
  25 
  26 /*


  27  * Copyright 1996-2003 Sun Microsystems, Inc.  All rights reserved.
  28  * Use is subject to license terms.
  29  */
  30 
  31 #ifndef _FMTMSG_H
  32 #define _FMTMSG_H
  33 
  34 #pragma ident   "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.3   */
  35 
  36 #include <sys/feature_tests.h>
  37 
  38 #ifdef  __cplusplus
  39 extern "C" {
  40 #endif
  41 
  42 /*
  43  * fmtmsg.h
  44  *
  45  *      The <fmtmsg.h> header file contains the definitions needed
  46  *      to use the fmtmsg() function.  This function writes messages
  47  *      in a standard format to the standard error stream (stderr)
  48  *      and to the system console.
  49  */
  50 
  51 /*
  52  * Define the value "NULL" if it hasn't been defined already.
  53  * NULL breaks namespace so we define _NULL
  54  */
  55 #if defined(_LP64)


 180 #define MM_NULLTXT      ((char *)_NULL)
 181 #define MM_NULLACT      ((char *)_NULL)
 182 #define MM_NULLTAG      ((char *)_NULL)
 183 
 184 /*
 185  * Values returned by fmtmsg()
 186  *
 187  *      MM_NOTOK        None of the requested messages were generated
 188  *      MM_NOMSG        No message was written to stderr
 189  *      MM_NOCON        No console message was generated
 190  */
 191 
 192 #define MM_NOTOK        -1
 193 #define MM_OK           0x00
 194 #define MM_NOMSG        0x01
 195 #define MM_NOCON        0x04
 196 
 197 /* Function definition */
 198 
 199 #if !defined(_XPG4_2) || defined(__EXTENSIONS__)
 200 #if defined(__STDC__)
 201 int     addseverity(int, const char *);
 202 #else /* __STDC__ */
 203 int     addseverity();
 204 #endif  /* __STDC__ */
 205 #endif /* !defined(_XPG4_2) || defined(__EXTENSIONS__) */
 206 
 207 #if defined(__STDC__)
 208 int     fmtmsg(long, const char *, int, const char *, const char *,
 209             const char *);
 210 #else /* __STDC__ */
 211 int     fmtmsg();
 212 #endif  /* __STDC__ */
 213 
 214 #ifdef  __cplusplus
 215 }
 216 #endif
 217 
 218 #endif  /* _FMTMSG_H */


   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*      Copyright (c) 1988 AT&T     */
  23 /*        All Rights Reserved   */
  24 
  25 
  26 /*
  27  * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  28  *
  29  * Copyright 1996-2003 Sun Microsystems, Inc.  All rights reserved.
  30  * Use is subject to license terms.
  31  */
  32 
  33 #ifndef _FMTMSG_H
  34 #define _FMTMSG_H
  35 


  36 #include <sys/feature_tests.h>
  37 
  38 #ifdef  __cplusplus
  39 extern "C" {
  40 #endif
  41 
  42 /*
  43  * fmtmsg.h
  44  *
  45  *      The <fmtmsg.h> header file contains the definitions needed
  46  *      to use the fmtmsg() function.  This function writes messages
  47  *      in a standard format to the standard error stream (stderr)
  48  *      and to the system console.
  49  */
  50 
  51 /*
  52  * Define the value "NULL" if it hasn't been defined already.
  53  * NULL breaks namespace so we define _NULL
  54  */
  55 #if defined(_LP64)


 180 #define MM_NULLTXT      ((char *)_NULL)
 181 #define MM_NULLACT      ((char *)_NULL)
 182 #define MM_NULLTAG      ((char *)_NULL)
 183 
 184 /*
 185  * Values returned by fmtmsg()
 186  *
 187  *      MM_NOTOK        None of the requested messages were generated
 188  *      MM_NOMSG        No message was written to stderr
 189  *      MM_NOCON        No console message was generated
 190  */
 191 
 192 #define MM_NOTOK        -1
 193 #define MM_OK           0x00
 194 #define MM_NOMSG        0x01
 195 #define MM_NOCON        0x04
 196 
 197 /* Function definition */
 198 
 199 #if !defined(_XPG4_2) || defined(__EXTENSIONS__)

 200 int     addseverity(int, const char *);



 201 #endif /* !defined(_XPG4_2) || defined(__EXTENSIONS__) */
 202 

 203 int     fmtmsg(long, const char *, int, const char *, const char *,
 204             const char *);



 205 
 206 #ifdef  __cplusplus
 207 }
 208 #endif
 209 
 210 #endif  /* _FMTMSG_H */