Dr Andrew Scott G7VAV

My photo
 
April 2024
Mo Tu We Th Fr Sa Su
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 1 2 3 4 5
6 7 8 9 10 11 12


fmtmsg.h
001: /* Message display handling.
002:    Copyright (C) 1997, 1999, 2000, 2003 Free Software Foundation, Inc.
003:    This file is part of the GNU C Library.
004: 
005:    The GNU C Library is free software; you can redistribute it and/or
006:    modify it under the terms of the GNU Lesser General Public
007:    License as published by the Free Software Foundation; either
008:    version 2.1 of the License, or (at your option) any later version.
009: 
010:    The GNU C Library is distributed in the hope that it will be useful,
011:    but WITHOUT ANY WARRANTY; without even the implied warranty of
012:    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
013:    Lesser General Public License for more details.
014: 
015:    You should have received a copy of the GNU Lesser General Public
016:    License along with the GNU C Library; if not, write to the Free
017:    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
018:    02111-1307 USA.  */
019: 
020: #ifndef __FMTMSG_H
021: #define __FMTMSG_H      1
022: 
023: #include <features.h>
024: 
025: 
026: __BEGIN_DECLS
027: 
028: /* Values to control `fmtmsg' function.  */
029: enum
030: {
031:   MM_HARD = 0x001,      /* Source of the condition is hardware.  */
032: #define MM_HARD MM_HARD
033:   MM_SOFT = 0x002,      /* Source of the condition is software.  */
034: #define MM_SOFT MM_SOFT
035:   MM_FIRM = 0x004,      /* Source of the condition is firmware.  */
036: #define MM_FIRM MM_FIRM
037:   MM_APPL = 0x008,      /* Condition detected by application.  */
038: #define MM_APPL MM_APPL
039:   MM_UTIL = 0x010,      /* Condition detected by utility.  */
040: #define MM_UTIL MM_UTIL
041:   MM_OPSYS = 0x020,     /* Condition detected by operating system.  */
042: #define MM_OPSYS MM_OPSYS
043:   MM_RECOVER = 0x040,   /* Recoverable error.  */
044: #define MM_RECOVER MM_RECOVER
045:   MM_NRECOV = 0x080,    /* Non-recoverable error.  */
046: #define MM_NRECOV MM_NRECOV
047:   MM_PRINT = 0x100,     /* Display message in standard error.  */
048: #define MM_PRINT MM_PRINT
049:   MM_CONSOLE = 0x200    /* Display message on system console.  */
050: #define MM_CONSOLE MM_CONSOLE
051: };
052: 
053: /* Values to be for SEVERITY parameter of `fmtmsg'.  */
054: enum
055: {
056:   MM_NOSEV = 0,         /* No severity level provided for the message.  */
057: #define MM_NOSEV MM_NOSEV
058:   MM_HALT,              /* Error causing application to halt.  */
059: #define MM_HALT MM_HALT
060:   MM_ERROR,             /* Application has encountered a non-fatal fault.  */
061: #define MM_ERROR MM_ERROR
062:   MM_WARNING,           /* Application has detected unusual non-error
063:                            condition.  */
064: #define MM_WARNING MM_WARNING
065:   MM_INFO               /* Informative message.  */
066: #define MM_INFO MM_INFO
067: };
068: 
069: 
070: /* Macros which can be used as null values for the arguments of `fmtmsg'.  */
071: #define MM_NULLLBL      ((char *) 0)
072: #define MM_NULLSEV      0
073: #define MM_NULLMC       ((long int) 0)
074: #define MM_NULLTXT      ((char *) 0)
075: #define MM_NULLACT      ((char *) 0)
076: #define MM_NULLTAG      ((char *) 0)
077: 
078: 
079: /* Possible return values of `fmtmsg'.  */
080: enum
081: {
082:   MM_NOTOK = -1,
083: #define MM_NOTOK MM_NOTOK
084:   MM_OK = 0,
085: #define MM_OK MM_OK
086:   MM_NOMSG = 1,
087: #define MM_NOMSG MM_NOMSG
088:   MM_NOCON = 4
089: #define MM_NOCON MM_NOCON
090: };
091: 
092: 
093: /* Print message with given CLASSIFICATION, LABEL, SEVERITY, TEXT, ACTION
094:    and TAG to console or standard error.  */
095: extern int fmtmsg (long int __classification, __const char *__label,
096:                    int __severity, __const char *__text,
097:                    __const char *__action, __const char *__tag);
098: 
099: #ifdef __USE_SVID
100: /* Add or remove severity level.  */
101: extern int addseverity (int __severity, __const char *__string) __THROW;
102: #endif
103: 
104: __END_DECLS
105: 
106: #endif /* fmtmsg.h */
107: 


for client 52.14.221.113
© Andrew Scott 2006 - 2024,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/