xref: /freebsd/contrib/ntp/libntp/lib/isc/include/isc/msgs.h (revision a466cc55373fc3cf86837f09da729535b57e69a1)
1 /*
2  * Copyright (C) 2004-2009  Internet Systems Consortium, Inc. ("ISC")
3  * Copyright (C) 2000-2003  Internet Software Consortium.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for any
6  * purpose with or without fee is hereby granted, provided that the above
7  * copyright notice and this permission notice appear in all copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15  * PERFORMANCE OF THIS SOFTWARE.
16  */
17 
18 /* $Id: msgs.h,v 1.19 2009/10/01 23:48:08 tbox Exp $ */
19 
20 #ifndef ISC_MSGS_H
21 #define ISC_MSGS_H 1
22 
23 /*! \file isc/msgs.h */
24 
25 #include <isc/lib.h>		/* Provide isc_msgcat global variable. */
26 #include <isc/msgcat.h>		/* Provide isc_msgcat_*() functions. */
27 
28 /*@{*/
29 /*!
30  * \brief Message sets, named per source file, excepting "GENERAL".
31  *
32  * IMPORTANT: The original list is alphabetical, but any new sets must
33  * be added to the end.
34  */
35 #define ISC_MSGSET_GENERAL	1
36 /*	ISC_RESULT_RESULTSET    2 */     /* XXX */
37 /*	ISC_RESULT_UNAVAILABLESET 3 */   /* XXX */
38 #define ISC_MSGSET_APP		4
39 #define ISC_MSGSET_COMMANDLINE	5
40 #define ISC_MSGSET_ENTROPY	6
41 #define ISC_MSGSET_IFITERIOCTL	7
42 #define ISC_MSGSET_IFITERSYSCTL	8
43 #define ISC_MSGSET_LEX		9
44 #define ISC_MSGSET_LOG		10
45 #define ISC_MSGSET_MEM		11
46 #define ISC_MSGSET_NETADDR	12
47 #define ISC_MSGSET_PRINT	13
48 #define ISC_MSGSET_RESULT	14
49 #define ISC_MSGSET_RWLOCK	15
50 #define ISC_MSGSET_SOCKADDR	16
51 #define ISC_MSGSET_SOCKET	17
52 #define ISC_MSGSET_TASK		18
53 #define ISC_MSGSET_TIMER	19
54 #define ISC_MSGSET_UTIL		20
55 #define ISC_MSGSET_IFITERGETIFADDRS 21
56 /*@}*/
57 
58 /*@{*/
59 /*!
60  * Message numbers
61  * are only required to be unique per message set,
62  * but are unique throughout the entire catalog to not be as confusing when
63  * debugging.
64  *
65  * The initial numbering was done by multiply by 100 the set number the
66  * message appears in then adding the incremental message number.
67  */
68 #define ISC_MSG_FAILED		101 /*%< "failed" */
69 #define ISC_MSG_SUCCEEDED	102 /*%< Compatible with "failed" */
70 #define ISC_MSG_SUCCESS		103 /*%< More usual way to say "success" */
71 #define ISC_MSG_STARTING	104 /*%< As in "daemon: starting" */
72 #define ISC_MSG_STOPING		105 /*%< As in "daemon: stopping" */
73 #define ISC_MSG_ENTERING	106 /*%< As in "some_subr: entering" */
74 #define ISC_MSG_EXITING		107 /*%< As in "some_subr: exiting" */
75 #define ISC_MSG_CALLING		108 /*%< As in "calling some_subr()" */
76 #define ISC_MSG_RETURNED	109 /*%< As in "some_subr: returned <foo>" */
77 #define ISC_MSG_FATALERROR	110 /*%< "fatal error" */
78 #define ISC_MSG_SHUTTINGDOWN	111 /*%< "shutting down" */
79 #define ISC_MSG_RUNNING		112 /*%< "running" */
80 #define ISC_MSG_WAIT		113 /*%< "wait" */
81 #define ISC_MSG_WAITUNTIL	114 /*%< "waituntil" */
82 
83 #define ISC_MSG_SIGNALSETUP	201 /*%< "handle_signal() %d setup: %s" */
84 
85 #define ISC_MSG_ILLEGALOPT	301 /*%< "illegal option" */
86 #define ISC_MSG_OPTNEEDARG	302 /*%< "option requires an argument" */
87 
88 #define ISC_MSG_ENTROPYSTATS	401 /*%< "Entropy pool %p:  refcnt %u ..." */
89 
90 #define ISC_MSG_MAKESCANSOCKET	501 /*%< "making interface scan socket: %s" */
91 #define ISC_MSG_GETIFCONFIG	502 /*%< "get interface configuration: %s" */
92 #define ISC_MSG_BUFFERMAX	503 /*%< "... maximum buffer size exceeded" */
93 #define ISC_MSG_GETDESTADDR	504 /*%< "%s: getting destination address: %s" */
94 #define ISC_MSG_GETNETMASK	505 /*%< "%s: getting netmask: %s" */
95 #define ISC_MSG_GETBCSTADDR	506 /*%< "%s: getting broadcast address: %s" */
96 
97 #define ISC_MSG_GETIFLISTSIZE	601 /*%< "getting interface list size: ..." */
98 #define ISC_MSG_GETIFLIST	602 /*%< "getting interface list: ..." */
99 #define ISC_MSG_UNEXPECTEDTYPE	603 /*%< "... unexpected ... message type" */
100 
101 #define ISC_MSG_UNEXPECTEDSTATE	701 /*%< "Unexpected state %d" */
102 
103 #define ISC_MSG_BADTIME		801 /*%< "Bad 00 99:99:99.999 " */
104 #define ISC_MSG_LEVEL		802 /*%< "level %d: " */
105 
106 #define ISC_MSG_ADDTRACE	901 /*%< "add %p size %u " */
107 #define ISC_MSG_DELTRACE	902 /*%< "del %p size %u " */
108 #define ISC_MSG_POOLSTATS	903 /*%< "[Pool statistics]\n" */
109 #define ISC_MSG_POOLNAME	904 /*%< "name" */
110 #define ISC_MSG_POOLSIZE	905 /*%< "size" */
111 #define ISC_MSG_POOLMAXALLOC	906 /*%< "maxalloc" */
112 #define ISC_MSG_POOLALLOCATED	907 /*%< "allocated" */
113 #define ISC_MSG_POOLFREECOUNT	908 /*%< "freecount" */
114 #define ISC_MSG_POOLFREEMAX	909 /*%< "freemax" */
115 #define ISC_MSG_POOLFILLCOUNT	910 /*%< "fillcount" */
116 #define ISC_MSG_POOLGETS	911 /*%< "gets" */
117 #define ISC_MSG_DUMPALLOC	912 /*%< "DUMP OF ALL OUTSTANDING MEMORY ..." */
118 #define ISC_MSG_NONE		913 /*%< "\tNone.\n" */
119 #define ISC_MSG_PTRFILELINE	914 /*%< "\tptr %p file %s line %u\n" */
120 
121 #define ISC_MSG_UNKNOWNADDR    1001 /*%< "<unknown address, family %u>" */
122 
123 #define ISC_MSG_NOLONGDBL      1104 /*%< "long doubles are not supported" */
124 
125 #define ISC_MSG_PRINTLOCK      1201 /*%< "rwlock %p thread %lu ..." */
126 #define ISC_MSG_READ	       1202 /*%< "read" */
127 #define ISC_MSG_WRITE	       1203 /*%< "write" */
128 #define ISC_MSG_READING	       1204 /*%< "reading" */
129 #define ISC_MSG_WRITING	       1205 /*%< "writing" */
130 #define ISC_MSG_PRELOCK	       1206 /*%< "prelock" */
131 #define ISC_MSG_POSTLOCK       1207 /*%< "postlock" */
132 #define ISC_MSG_PREUNLOCK      1208 /*%< "preunlock" */
133 #define ISC_MSG_POSTUNLOCK     1209 /*%< "postunlock" */
134 
135 #define ISC_MSG_UNKNOWNFAMILY  1301 /*%< "unknown address family: %d" */
136 
137 #define ISC_MSG_WRITEFAILED    1401 /*%< "write() failed during watcher ..." */
138 #define ISC_MSG_READFAILED     1402 /*%< "read() failed during watcher ... " */
139 #define ISC_MSG_PROCESSCMSG    1403 /*%< "processing cmsg %p" */
140 #define ISC_MSG_IFRECEIVED     1404 /*%< "interface received on ifindex %u" */
141 #define ISC_MSG_SENDTODATA     1405 /*%< "sendto pktinfo data, ifindex %u" */
142 #define ISC_MSG_DOIORECV       1406 /*%< "doio_recv: recvmsg(%d) %d bytes ..." */
143 #define ISC_MSG_PKTRECV	       1407 /*%< "packet received correctly" */
144 #define ISC_MSG_DESTROYING     1408 /*%< "destroying" */
145 #define ISC_MSG_CREATED	       1409 /*%< "created" */
146 #define ISC_MSG_ACCEPTLOCK     1410 /*%< "internal_accept called, locked ..." */
147 #define ISC_MSG_ACCEPTEDCXN    1411 /*%< "accepted connection, new socket %p" */
148 #define ISC_MSG_INTERNALRECV   1412 /*%< "internal_recv: task %p got event %p" */
149 #define ISC_MSG_INTERNALSEND   1413 /*%< "internal_send: task %p got event %p" */
150 #define ISC_MSG_WATCHERMSG     1414 /*%< "watcher got message %d" */
151 #define ISC_MSG_SOCKETSREMAIN  1415 /*%< "sockets exist" */
152 #define ISC_MSG_PKTINFOPROVIDED	1416 /*%< "pktinfo structure provided, ..." */
153 #define ISC_MSG_BOUND	       1417 /*%< "bound" */
154 #define ISC_MSG_ACCEPTRETURNED 1418 /*%< accept() returned %d/%s */
155 #define ISC_MSG_TOOMANYFDS     1419 /*%< %s: too many open file descriptors */
156 #define ISC_MSG_ZEROPORT       1420 /*%< dropping source port zero packet */
157 #define ISC_MSG_FILTER	       1421 /*%< setsockopt(SO_ACCEPTFILTER): %s */
158 
159 #define ISC_MSG_TOOMANYHANDLES 1422 /*%< %s: too many open WSA event handles: %s */
160 #define ISC_MSG_POKED          1423 /*%< "poked flags: %d" */
161 
162 #define ISC_MSG_AWAKE	       1502 /*%< "awake" */
163 #define ISC_MSG_WORKING	       1503 /*%< "working" */
164 #define ISC_MSG_EXECUTE	       1504 /*%< "execute action" */
165 #define ISC_MSG_EMPTY	       1505 /*%< "empty" */
166 #define ISC_MSG_DONE	       1506 /*%< "done" */
167 #define ISC_MSG_QUANTUM	       1507 /*%< "quantum" */
168 
169 #define ISC_MSG_SCHEDULE       1601 /*%< "schedule" */
170 #define ISC_MSG_SIGNALSCHED    1602 /*%< "signal (schedule)" */
171 #define ISC_MSG_SIGNALDESCHED  1603 /*%< "signal (deschedule)" */
172 #define ISC_MSG_SIGNALDESTROY  1604 /*%< "signal (destroy)" */
173 #define ISC_MSG_IDLERESCHED    1605 /*%< "idle reschedule" */
174 #define ISC_MSG_EVENTNOTALLOC  1606 /*%< "couldn't allocate event" */
175 #define ISC_MSG_SCHEDFAIL      1607 /*%< "couldn't schedule timer: %u" */
176 #define ISC_MSG_POSTING	       1608 /*%< "posting" */
177 #define ISC_MSG_WAKEUP	       1609 /*%< "wakeup" */
178 
179 #define ISC_MSG_LOCK	       1701 /*%< "LOCK" */
180 #define ISC_MSG_LOCKING	       1702 /*%< "LOCKING" */
181 #define ISC_MSG_LOCKED	       1703 /*%< "LOCKED" */
182 #define ISC_MSG_UNLOCKED       1704 /*%< "UNLOCKED" */
183 #define ISC_MSG_RWLOCK	       1705 /*%< "RWLOCK" */
184 #define ISC_MSG_RWLOCKED       1706 /*%< "RWLOCKED" */
185 #define ISC_MSG_RWUNLOCK       1707 /*%< "RWUNLOCK" */
186 #define ISC_MSG_BROADCAST      1708 /*%< "BROADCAST" */
187 #define ISC_MSG_SIGNAL	       1709 /*%< "SIGNAL" */
188 #define ISC_MSG_UTILWAIT       1710 /*%< "WAIT" */
189 #define ISC_MSG_WAITED	       1711 /*%< "WAITED" */
190 
191 #define ISC_MSG_GETIFADDRS     1801 /*%< "getting interface addresses: ..." */
192 
193 /*@}*/
194 
195 #endif /* ISC_MSGS_H */
196