(nscd_run): Check early for invalid request types.
[glibc.git] / sysdeps / gnu / errlist.c
blob8131038047d5fbbb60cf0f66585dc61689b0176e
1 /* This file is generated from errno.texi by errlist.awk. */
3 #include <errno.h>
4 #include <libintl.h>
6 #ifndef ERR_REMAP
7 # define ERR_REMAP(n) n
8 #endif
10 const char *const _sys_errlist_internal[] =
12 [0] = N_("Success"),
13 #ifdef EPERM
15 TRANS Operation not permitted; only the owner of the file (or other resource)
16 TRANS or processes with special privileges can perform the operation. */
17 [ERR_REMAP (EPERM)] = N_("Operation not permitted"),
18 # if EPERM > ERR_MAX
19 # undef ERR_MAX
20 # define ERR_MAX EPERM
21 # endif
22 #endif
23 #ifdef ENOENT
25 TRANS No such file or directory. This is a ``file doesn't exist'' error
26 TRANS for ordinary files that are referenced in contexts where they are
27 TRANS expected to already exist. */
28 [ERR_REMAP (ENOENT)] = N_("No such file or directory"),
29 # if ENOENT > ERR_MAX
30 # undef ERR_MAX
31 # define ERR_MAX ENOENT
32 # endif
33 #endif
34 #ifdef ESRCH
36 TRANS No process matches the specified process ID. */
37 [ERR_REMAP (ESRCH)] = N_("No such process"),
38 # if ESRCH > ERR_MAX
39 # undef ERR_MAX
40 # define ERR_MAX ESRCH
41 # endif
42 #endif
43 #ifdef EINTR
45 TRANS Interrupted function call; an asynchronous signal occurred and prevented
46 TRANS completion of the call. When this happens, you should try the call
47 TRANS again.
48 TRANS
49 TRANS You can choose to have functions resume after a signal that is handled,
50 TRANS rather than failing with @code{EINTR}; see @ref{Interrupted
51 TRANS Primitives}. */
52 [ERR_REMAP (EINTR)] = N_("Interrupted system call"),
53 # if EINTR > ERR_MAX
54 # undef ERR_MAX
55 # define ERR_MAX EINTR
56 # endif
57 #endif
58 #ifdef EIO
60 TRANS Input/output error; usually used for physical read or write errors. */
61 [ERR_REMAP (EIO)] = N_("Input/output error"),
62 # if EIO > ERR_MAX
63 # undef ERR_MAX
64 # define ERR_MAX EIO
65 # endif
66 #endif
67 #ifdef ENXIO
69 TRANS No such device or address. The system tried to use the device
70 TRANS represented by a file you specified, and it couldn't find the device.
71 TRANS This can mean that the device file was installed incorrectly, or that
72 TRANS the physical device is missing or not correctly attached to the
73 TRANS computer. */
74 [ERR_REMAP (ENXIO)] = N_("No such device or address"),
75 # if ENXIO > ERR_MAX
76 # undef ERR_MAX
77 # define ERR_MAX ENXIO
78 # endif
79 #endif
80 #ifdef E2BIG
82 TRANS Argument list too long; used when the arguments passed to a new program
83 TRANS being executed with one of the @code{exec} functions (@pxref{Executing a
84 TRANS File}) occupy too much memory space. This condition never arises in the
85 TRANS GNU system. */
86 [ERR_REMAP (E2BIG)] = N_("Argument list too long"),
87 # if E2BIG > ERR_MAX
88 # undef ERR_MAX
89 # define ERR_MAX E2BIG
90 # endif
91 #endif
92 #ifdef ENOEXEC
94 TRANS Invalid executable file format. This condition is detected by the
95 TRANS @code{exec} functions; see @ref{Executing a File}. */
96 [ERR_REMAP (ENOEXEC)] = N_("Exec format error"),
97 # if ENOEXEC > ERR_MAX
98 # undef ERR_MAX
99 # define ERR_MAX ENOEXEC
100 # endif
101 #endif
102 #ifdef EBADF
104 TRANS Bad file descriptor; for example, I/O on a descriptor that has been
105 TRANS closed or reading from a descriptor open only for writing (or vice
106 TRANS versa). */
107 [ERR_REMAP (EBADF)] = N_("Bad file descriptor"),
108 # if EBADF > ERR_MAX
109 # undef ERR_MAX
110 # define ERR_MAX EBADF
111 # endif
112 #endif
113 #ifdef ECHILD
115 TRANS There are no child processes. This error happens on operations that are
116 TRANS supposed to manipulate child processes, when there aren't any processes
117 TRANS to manipulate. */
118 [ERR_REMAP (ECHILD)] = N_("No child processes"),
119 # if ECHILD > ERR_MAX
120 # undef ERR_MAX
121 # define ERR_MAX ECHILD
122 # endif
123 #endif
124 #ifdef EDEADLK
126 TRANS Deadlock avoided; allocating a system resource would have resulted in a
127 TRANS deadlock situation. The system does not guarantee that it will notice
128 TRANS all such situations. This error means you got lucky and the system
129 TRANS noticed; it might just hang. @xref{File Locks}, for an example. */
130 [ERR_REMAP (EDEADLK)] = N_("Resource deadlock avoided"),
131 # if EDEADLK > ERR_MAX
132 # undef ERR_MAX
133 # define ERR_MAX EDEADLK
134 # endif
135 #endif
136 #ifdef ENOMEM
138 TRANS No memory available. The system cannot allocate more virtual memory
139 TRANS because its capacity is full. */
140 [ERR_REMAP (ENOMEM)] = N_("Cannot allocate memory"),
141 # if ENOMEM > ERR_MAX
142 # undef ERR_MAX
143 # define ERR_MAX ENOMEM
144 # endif
145 #endif
146 #ifdef EACCES
148 TRANS Permission denied; the file permissions do not allow the attempted operation. */
149 [ERR_REMAP (EACCES)] = N_("Permission denied"),
150 # if EACCES > ERR_MAX
151 # undef ERR_MAX
152 # define ERR_MAX EACCES
153 # endif
154 #endif
155 #ifdef EFAULT
157 TRANS Bad address; an invalid pointer was detected.
158 TRANS In the GNU system, this error never happens; you get a signal instead. */
159 [ERR_REMAP (EFAULT)] = N_("Bad address"),
160 # if EFAULT > ERR_MAX
161 # undef ERR_MAX
162 # define ERR_MAX EFAULT
163 # endif
164 #endif
165 #ifdef ENOTBLK
167 TRANS A file that isn't a block special file was given in a situation that
168 TRANS requires one. For example, trying to mount an ordinary file as a file
169 TRANS system in Unix gives this error. */
170 [ERR_REMAP (ENOTBLK)] = N_("Block device required"),
171 # if ENOTBLK > ERR_MAX
172 # undef ERR_MAX
173 # define ERR_MAX ENOTBLK
174 # endif
175 #endif
176 #ifdef EBUSY
178 TRANS Resource busy; a system resource that can't be shared is already in use.
179 TRANS For example, if you try to delete a file that is the root of a currently
180 TRANS mounted filesystem, you get this error. */
181 [ERR_REMAP (EBUSY)] = N_("Device or resource busy"),
182 # if EBUSY > ERR_MAX
183 # undef ERR_MAX
184 # define ERR_MAX EBUSY
185 # endif
186 #endif
187 #ifdef EEXIST
189 TRANS File exists; an existing file was specified in a context where it only
190 TRANS makes sense to specify a new file. */
191 [ERR_REMAP (EEXIST)] = N_("File exists"),
192 # if EEXIST > ERR_MAX
193 # undef ERR_MAX
194 # define ERR_MAX EEXIST
195 # endif
196 #endif
197 #ifdef EXDEV
199 TRANS An attempt to make an improper link across file systems was detected.
200 TRANS This happens not only when you use @code{link} (@pxref{Hard Links}) but
201 TRANS also when you rename a file with @code{rename} (@pxref{Renaming Files}). */
202 [ERR_REMAP (EXDEV)] = N_("Invalid cross-device link"),
203 # if EXDEV > ERR_MAX
204 # undef ERR_MAX
205 # define ERR_MAX EXDEV
206 # endif
207 #endif
208 #ifdef ENODEV
210 TRANS The wrong type of device was given to a function that expects a
211 TRANS particular sort of device. */
212 [ERR_REMAP (ENODEV)] = N_("No such device"),
213 # if ENODEV > ERR_MAX
214 # undef ERR_MAX
215 # define ERR_MAX ENODEV
216 # endif
217 #endif
218 #ifdef ENOTDIR
220 TRANS A file that isn't a directory was specified when a directory is required. */
221 [ERR_REMAP (ENOTDIR)] = N_("Not a directory"),
222 # if ENOTDIR > ERR_MAX
223 # undef ERR_MAX
224 # define ERR_MAX ENOTDIR
225 # endif
226 #endif
227 #ifdef EISDIR
229 TRANS File is a directory; you cannot open a directory for writing,
230 TRANS or create or remove hard links to it. */
231 [ERR_REMAP (EISDIR)] = N_("Is a directory"),
232 # if EISDIR > ERR_MAX
233 # undef ERR_MAX
234 # define ERR_MAX EISDIR
235 # endif
236 #endif
237 #ifdef EINVAL
239 TRANS Invalid argument. This is used to indicate various kinds of problems
240 TRANS with passing the wrong argument to a library function. */
241 [ERR_REMAP (EINVAL)] = N_("Invalid argument"),
242 # if EINVAL > ERR_MAX
243 # undef ERR_MAX
244 # define ERR_MAX EINVAL
245 # endif
246 #endif
247 #ifdef EMFILE
249 TRANS The current process has too many files open and can't open any more.
250 TRANS Duplicate descriptors do count toward this limit.
251 TRANS
252 TRANS In BSD and GNU, the number of open files is controlled by a resource
253 TRANS limit that can usually be increased. If you get this error, you might
254 TRANS want to increase the @code{RLIMIT_NOFILE} limit or make it unlimited;
255 TRANS @pxref{Limits on Resources}. */
256 [ERR_REMAP (EMFILE)] = N_("Too many open files"),
257 # if EMFILE > ERR_MAX
258 # undef ERR_MAX
259 # define ERR_MAX EMFILE
260 # endif
261 #endif
262 #ifdef ENFILE
264 TRANS There are too many distinct file openings in the entire system. Note
265 TRANS that any number of linked channels count as just one file opening; see
266 TRANS @ref{Linked Channels}. This error never occurs in the GNU system. */
267 [ERR_REMAP (ENFILE)] = N_("Too many open files in system"),
268 # if ENFILE > ERR_MAX
269 # undef ERR_MAX
270 # define ERR_MAX ENFILE
271 # endif
272 #endif
273 #ifdef ENOTTY
275 TRANS Inappropriate I/O control operation, such as trying to set terminal
276 TRANS modes on an ordinary file. */
277 [ERR_REMAP (ENOTTY)] = N_("Inappropriate ioctl for device"),
278 # if ENOTTY > ERR_MAX
279 # undef ERR_MAX
280 # define ERR_MAX ENOTTY
281 # endif
282 #endif
283 #ifdef ETXTBSY
285 TRANS An attempt to execute a file that is currently open for writing, or
286 TRANS write to a file that is currently being executed. Often using a
287 TRANS debugger to run a program is considered having it open for writing and
288 TRANS will cause this error. (The name stands for ``text file busy''.) This
289 TRANS is not an error in the GNU system; the text is copied as necessary. */
290 [ERR_REMAP (ETXTBSY)] = N_("Text file busy"),
291 # if ETXTBSY > ERR_MAX
292 # undef ERR_MAX
293 # define ERR_MAX ETXTBSY
294 # endif
295 #endif
296 #ifdef EFBIG
298 TRANS File too big; the size of a file would be larger than allowed by the system. */
299 [ERR_REMAP (EFBIG)] = N_("File too large"),
300 # if EFBIG > ERR_MAX
301 # undef ERR_MAX
302 # define ERR_MAX EFBIG
303 # endif
304 #endif
305 #ifdef ENOSPC
307 TRANS No space left on device; write operation on a file failed because the
308 TRANS disk is full. */
309 [ERR_REMAP (ENOSPC)] = N_("No space left on device"),
310 # if ENOSPC > ERR_MAX
311 # undef ERR_MAX
312 # define ERR_MAX ENOSPC
313 # endif
314 #endif
315 #ifdef ESPIPE
317 TRANS Invalid seek operation (such as on a pipe). */
318 [ERR_REMAP (ESPIPE)] = N_("Illegal seek"),
319 # if ESPIPE > ERR_MAX
320 # undef ERR_MAX
321 # define ERR_MAX ESPIPE
322 # endif
323 #endif
324 #ifdef EROFS
326 TRANS An attempt was made to modify something on a read-only file system. */
327 [ERR_REMAP (EROFS)] = N_("Read-only file system"),
328 # if EROFS > ERR_MAX
329 # undef ERR_MAX
330 # define ERR_MAX EROFS
331 # endif
332 #endif
333 #ifdef EMLINK
335 TRANS Too many links; the link count of a single file would become too large.
336 TRANS @code{rename} can cause this error if the file being renamed already has
337 TRANS as many links as it can take (@pxref{Renaming Files}). */
338 [ERR_REMAP (EMLINK)] = N_("Too many links"),
339 # if EMLINK > ERR_MAX
340 # undef ERR_MAX
341 # define ERR_MAX EMLINK
342 # endif
343 #endif
344 #ifdef EPIPE
346 TRANS Broken pipe; there is no process reading from the other end of a pipe.
347 TRANS Every library function that returns this error code also generates a
348 TRANS @code{SIGPIPE} signal; this signal terminates the program if not handled
349 TRANS or blocked. Thus, your program will never actually see @code{EPIPE}
350 TRANS unless it has handled or blocked @code{SIGPIPE}. */
351 [ERR_REMAP (EPIPE)] = N_("Broken pipe"),
352 # if EPIPE > ERR_MAX
353 # undef ERR_MAX
354 # define ERR_MAX EPIPE
355 # endif
356 #endif
357 #ifdef EDOM
359 TRANS Domain error; used by mathematical functions when an argument value does
360 TRANS not fall into the domain over which the function is defined. */
361 [ERR_REMAP (EDOM)] = N_("Numerical argument out of domain"),
362 # if EDOM > ERR_MAX
363 # undef ERR_MAX
364 # define ERR_MAX EDOM
365 # endif
366 #endif
367 #ifdef ERANGE
369 TRANS Range error; used by mathematical functions when the result value is
370 TRANS not representable because of overflow or underflow. */
371 [ERR_REMAP (ERANGE)] = N_("Numerical result out of range"),
372 # if ERANGE > ERR_MAX
373 # undef ERR_MAX
374 # define ERR_MAX ERANGE
375 # endif
376 #endif
377 #ifdef EAGAIN
379 TRANS Resource temporarily unavailable; the call might work if you try again
380 TRANS later. The macro @code{EWOULDBLOCK} is another name for @code{EAGAIN};
381 TRANS they are always the same in the GNU C library.
382 TRANS
383 TRANS This error can happen in a few different situations:
384 TRANS
385 TRANS @itemize @bullet
386 TRANS @item
387 TRANS An operation that would block was attempted on an object that has
388 TRANS non-blocking mode selected. Trying the same operation again will block
389 TRANS until some external condition makes it possible to read, write, or
390 TRANS connect (whatever the operation). You can use @code{select} to find out
391 TRANS when the operation will be possible; @pxref{Waiting for I/O}.
392 TRANS
393 TRANS @strong{Portability Note:} In many older Unix systems, this condition
394 TRANS was indicated by @code{EWOULDBLOCK}, which was a distinct error code
395 TRANS different from @code{EAGAIN}. To make your program portable, you should
396 TRANS check for both codes and treat them the same.
397 TRANS
398 TRANS @item
399 TRANS A temporary resource shortage made an operation impossible. @code{fork}
400 TRANS can return this error. It indicates that the shortage is expected to
401 TRANS pass, so your program can try the call again later and it may succeed.
402 TRANS It is probably a good idea to delay for a few seconds before trying it
403 TRANS again, to allow time for other processes to release scarce resources.
404 TRANS Such shortages are usually fairly serious and affect the whole system,
405 TRANS so usually an interactive program should report the error to the user
406 TRANS and return to its command loop.
407 TRANS @end itemize */
408 [ERR_REMAP (EAGAIN)] = N_("Resource temporarily unavailable"),
409 # if EAGAIN > ERR_MAX
410 # undef ERR_MAX
411 # define ERR_MAX EAGAIN
412 # endif
413 #endif
414 #if defined (EWOULDBLOCK) && EWOULDBLOCK != EAGAIN
416 TRANS In the GNU C library, this is another name for @code{EAGAIN} (above).
417 TRANS The values are always the same, on every operating system.
418 TRANS
419 TRANS C libraries in many older Unix systems have @code{EWOULDBLOCK} as a
420 TRANS separate error code. */
421 [ERR_REMAP (EWOULDBLOCK)] = N_("Operation would block"),
422 # if EWOULDBLOCK > ERR_MAX
423 # undef ERR_MAX
424 # define ERR_MAX EWOULDBLOCK
425 # endif
426 #endif
427 #ifdef EINPROGRESS
429 TRANS An operation that cannot complete immediately was initiated on an object
430 TRANS that has non-blocking mode selected. Some functions that must always
431 TRANS block (such as @code{connect}; @pxref{Connecting}) never return
432 TRANS @code{EAGAIN}. Instead, they return @code{EINPROGRESS} to indicate that
433 TRANS the operation has begun and will take some time. Attempts to manipulate
434 TRANS the object before the call completes return @code{EALREADY}. You can
435 TRANS use the @code{select} function to find out when the pending operation
436 TRANS has completed; @pxref{Waiting for I/O}. */
437 [ERR_REMAP (EINPROGRESS)] = N_("Operation now in progress"),
438 # if EINPROGRESS > ERR_MAX
439 # undef ERR_MAX
440 # define ERR_MAX EINPROGRESS
441 # endif
442 #endif
443 #ifdef EALREADY
445 TRANS An operation is already in progress on an object that has non-blocking
446 TRANS mode selected. */
447 [ERR_REMAP (EALREADY)] = N_("Operation already in progress"),
448 # if EALREADY > ERR_MAX
449 # undef ERR_MAX
450 # define ERR_MAX EALREADY
451 # endif
452 #endif
453 #ifdef ENOTSOCK
455 TRANS A file that isn't a socket was specified when a socket is required. */
456 [ERR_REMAP (ENOTSOCK)] = N_("Socket operation on non-socket"),
457 # if ENOTSOCK > ERR_MAX
458 # undef ERR_MAX
459 # define ERR_MAX ENOTSOCK
460 # endif
461 #endif
462 #ifdef EMSGSIZE
464 TRANS The size of a message sent on a socket was larger than the supported
465 TRANS maximum size. */
466 [ERR_REMAP (EMSGSIZE)] = N_("Message too long"),
467 # if EMSGSIZE > ERR_MAX
468 # undef ERR_MAX
469 # define ERR_MAX EMSGSIZE
470 # endif
471 #endif
472 #ifdef EPROTOTYPE
474 TRANS The socket type does not support the requested communications protocol. */
475 [ERR_REMAP (EPROTOTYPE)] = N_("Protocol wrong type for socket"),
476 # if EPROTOTYPE > ERR_MAX
477 # undef ERR_MAX
478 # define ERR_MAX EPROTOTYPE
479 # endif
480 #endif
481 #ifdef ENOPROTOOPT
483 TRANS You specified a socket option that doesn't make sense for the
484 TRANS particular protocol being used by the socket. @xref{Socket Options}. */
485 [ERR_REMAP (ENOPROTOOPT)] = N_("Protocol not available"),
486 # if ENOPROTOOPT > ERR_MAX
487 # undef ERR_MAX
488 # define ERR_MAX ENOPROTOOPT
489 # endif
490 #endif
491 #ifdef EPROTONOSUPPORT
493 TRANS The socket domain does not support the requested communications protocol
494 TRANS (perhaps because the requested protocol is completely invalid).
495 TRANS @xref{Creating a Socket}. */
496 [ERR_REMAP (EPROTONOSUPPORT)] = N_("Protocol not supported"),
497 # if EPROTONOSUPPORT > ERR_MAX
498 # undef ERR_MAX
499 # define ERR_MAX EPROTONOSUPPORT
500 # endif
501 #endif
502 #ifdef ESOCKTNOSUPPORT
504 TRANS The socket type is not supported. */
505 [ERR_REMAP (ESOCKTNOSUPPORT)] = N_("Socket type not supported"),
506 # if ESOCKTNOSUPPORT > ERR_MAX
507 # undef ERR_MAX
508 # define ERR_MAX ESOCKTNOSUPPORT
509 # endif
510 #endif
511 #ifdef EOPNOTSUPP
513 TRANS The operation you requested is not supported. Some socket functions
514 TRANS don't make sense for all types of sockets, and others may not be
515 TRANS implemented for all communications protocols. In the GNU system, this
516 TRANS error can happen for many calls when the object does not support the
517 TRANS particular operation; it is a generic indication that the server knows
518 TRANS nothing to do for that call. */
519 [ERR_REMAP (EOPNOTSUPP)] = N_("Operation not supported"),
520 # if EOPNOTSUPP > ERR_MAX
521 # undef ERR_MAX
522 # define ERR_MAX EOPNOTSUPP
523 # endif
524 #endif
525 #ifdef EPFNOSUPPORT
527 TRANS The socket communications protocol family you requested is not supported. */
528 [ERR_REMAP (EPFNOSUPPORT)] = N_("Protocol family not supported"),
529 # if EPFNOSUPPORT > ERR_MAX
530 # undef ERR_MAX
531 # define ERR_MAX EPFNOSUPPORT
532 # endif
533 #endif
534 #ifdef EAFNOSUPPORT
536 TRANS The address family specified for a socket is not supported; it is
537 TRANS inconsistent with the protocol being used on the socket. @xref{Sockets}. */
538 [ERR_REMAP (EAFNOSUPPORT)] = N_("Address family not supported by protocol"),
539 # if EAFNOSUPPORT > ERR_MAX
540 # undef ERR_MAX
541 # define ERR_MAX EAFNOSUPPORT
542 # endif
543 #endif
544 #ifdef EADDRINUSE
546 TRANS The requested socket address is already in use. @xref{Socket Addresses}. */
547 [ERR_REMAP (EADDRINUSE)] = N_("Address already in use"),
548 # if EADDRINUSE > ERR_MAX
549 # undef ERR_MAX
550 # define ERR_MAX EADDRINUSE
551 # endif
552 #endif
553 #ifdef EADDRNOTAVAIL
555 TRANS The requested socket address is not available; for example, you tried
556 TRANS to give a socket a name that doesn't match the local host name.
557 TRANS @xref{Socket Addresses}. */
558 [ERR_REMAP (EADDRNOTAVAIL)] = N_("Cannot assign requested address"),
559 # if EADDRNOTAVAIL > ERR_MAX
560 # undef ERR_MAX
561 # define ERR_MAX EADDRNOTAVAIL
562 # endif
563 #endif
564 #ifdef ENETDOWN
566 TRANS A socket operation failed because the network was down. */
567 [ERR_REMAP (ENETDOWN)] = N_("Network is down"),
568 # if ENETDOWN > ERR_MAX
569 # undef ERR_MAX
570 # define ERR_MAX ENETDOWN
571 # endif
572 #endif
573 #ifdef ENETUNREACH
575 TRANS A socket operation failed because the subnet containing the remote host
576 TRANS was unreachable. */
577 [ERR_REMAP (ENETUNREACH)] = N_("Network is unreachable"),
578 # if ENETUNREACH > ERR_MAX
579 # undef ERR_MAX
580 # define ERR_MAX ENETUNREACH
581 # endif
582 #endif
583 #ifdef ENETRESET
585 TRANS A network connection was reset because the remote host crashed. */
586 [ERR_REMAP (ENETRESET)] = N_("Network dropped connection on reset"),
587 # if ENETRESET > ERR_MAX
588 # undef ERR_MAX
589 # define ERR_MAX ENETRESET
590 # endif
591 #endif
592 #ifdef ECONNABORTED
594 TRANS A network connection was aborted locally. */
595 [ERR_REMAP (ECONNABORTED)] = N_("Software caused connection abort"),
596 # if ECONNABORTED > ERR_MAX
597 # undef ERR_MAX
598 # define ERR_MAX ECONNABORTED
599 # endif
600 #endif
601 #ifdef ECONNRESET
603 TRANS A network connection was closed for reasons outside the control of the
604 TRANS local host, such as by the remote machine rebooting or an unrecoverable
605 TRANS protocol violation. */
606 [ERR_REMAP (ECONNRESET)] = N_("Connection reset by peer"),
607 # if ECONNRESET > ERR_MAX
608 # undef ERR_MAX
609 # define ERR_MAX ECONNRESET
610 # endif
611 #endif
612 #ifdef ENOBUFS
614 TRANS The kernel's buffers for I/O operations are all in use. In GNU, this
615 TRANS error is always synonymous with @code{ENOMEM}; you may get one or the
616 TRANS other from network operations. */
617 [ERR_REMAP (ENOBUFS)] = N_("No buffer space available"),
618 # if ENOBUFS > ERR_MAX
619 # undef ERR_MAX
620 # define ERR_MAX ENOBUFS
621 # endif
622 #endif
623 #ifdef EISCONN
625 TRANS You tried to connect a socket that is already connected.
626 TRANS @xref{Connecting}. */
627 [ERR_REMAP (EISCONN)] = N_("Transport endpoint is already connected"),
628 # if EISCONN > ERR_MAX
629 # undef ERR_MAX
630 # define ERR_MAX EISCONN
631 # endif
632 #endif
633 #ifdef ENOTCONN
635 TRANS The socket is not connected to anything. You get this error when you
636 TRANS try to transmit data over a socket, without first specifying a
637 TRANS destination for the data. For a connectionless socket (for datagram
638 TRANS protocols, such as UDP), you get @code{EDESTADDRREQ} instead. */
639 [ERR_REMAP (ENOTCONN)] = N_("Transport endpoint is not connected"),
640 # if ENOTCONN > ERR_MAX
641 # undef ERR_MAX
642 # define ERR_MAX ENOTCONN
643 # endif
644 #endif
645 #ifdef EDESTADDRREQ
647 TRANS No default destination address was set for the socket. You get this
648 TRANS error when you try to transmit data over a connectionless socket,
649 TRANS without first specifying a destination for the data with @code{connect}. */
650 [ERR_REMAP (EDESTADDRREQ)] = N_("Destination address required"),
651 # if EDESTADDRREQ > ERR_MAX
652 # undef ERR_MAX
653 # define ERR_MAX EDESTADDRREQ
654 # endif
655 #endif
656 #ifdef ESHUTDOWN
658 TRANS The socket has already been shut down. */
659 [ERR_REMAP (ESHUTDOWN)] = N_("Cannot send after transport endpoint shutdown"),
660 # if ESHUTDOWN > ERR_MAX
661 # undef ERR_MAX
662 # define ERR_MAX ESHUTDOWN
663 # endif
664 #endif
665 #ifdef ETOOMANYREFS
667 TRANS ??? */
668 [ERR_REMAP (ETOOMANYREFS)] = N_("Too many references: cannot splice"),
669 # if ETOOMANYREFS > ERR_MAX
670 # undef ERR_MAX
671 # define ERR_MAX ETOOMANYREFS
672 # endif
673 #endif
674 #ifdef ETIMEDOUT
676 TRANS A socket operation with a specified timeout received no response during
677 TRANS the timeout period. */
678 [ERR_REMAP (ETIMEDOUT)] = N_("Connection timed out"),
679 # if ETIMEDOUT > ERR_MAX
680 # undef ERR_MAX
681 # define ERR_MAX ETIMEDOUT
682 # endif
683 #endif
684 #ifdef ECONNREFUSED
686 TRANS A remote host refused to allow the network connection (typically because
687 TRANS it is not running the requested service). */
688 [ERR_REMAP (ECONNREFUSED)] = N_("Connection refused"),
689 # if ECONNREFUSED > ERR_MAX
690 # undef ERR_MAX
691 # define ERR_MAX ECONNREFUSED
692 # endif
693 #endif
694 #ifdef ELOOP
696 TRANS Too many levels of symbolic links were encountered in looking up a file name.
697 TRANS This often indicates a cycle of symbolic links. */
698 [ERR_REMAP (ELOOP)] = N_("Too many levels of symbolic links"),
699 # if ELOOP > ERR_MAX
700 # undef ERR_MAX
701 # define ERR_MAX ELOOP
702 # endif
703 #endif
704 #ifdef ENAMETOOLONG
706 TRANS Filename too long (longer than @code{PATH_MAX}; @pxref{Limits for
707 TRANS Files}) or host name too long (in @code{gethostname} or
708 TRANS @code{sethostname}; @pxref{Host Identification}). */
709 [ERR_REMAP (ENAMETOOLONG)] = N_("File name too long"),
710 # if ENAMETOOLONG > ERR_MAX
711 # undef ERR_MAX
712 # define ERR_MAX ENAMETOOLONG
713 # endif
714 #endif
715 #ifdef EHOSTDOWN
717 TRANS The remote host for a requested network connection is down. */
718 [ERR_REMAP (EHOSTDOWN)] = N_("Host is down"),
719 # if EHOSTDOWN > ERR_MAX
720 # undef ERR_MAX
721 # define ERR_MAX EHOSTDOWN
722 # endif
723 #endif
724 #ifdef EHOSTUNREACH
726 TRANS The remote host for a requested network connection is not reachable. */
727 [ERR_REMAP (EHOSTUNREACH)] = N_("No route to host"),
728 # if EHOSTUNREACH > ERR_MAX
729 # undef ERR_MAX
730 # define ERR_MAX EHOSTUNREACH
731 # endif
732 #endif
733 #ifdef ENOTEMPTY
735 TRANS Directory not empty, where an empty directory was expected. Typically,
736 TRANS this error occurs when you are trying to delete a directory. */
737 [ERR_REMAP (ENOTEMPTY)] = N_("Directory not empty"),
738 # if ENOTEMPTY > ERR_MAX
739 # undef ERR_MAX
740 # define ERR_MAX ENOTEMPTY
741 # endif
742 #endif
743 #ifdef EPROCLIM
745 TRANS This means that the per-user limit on new process would be exceeded by
746 TRANS an attempted @code{fork}. @xref{Limits on Resources}, for details on
747 TRANS the @code{RLIMIT_NPROC} limit. */
748 [ERR_REMAP (EPROCLIM)] = N_("Too many processes"),
749 # if EPROCLIM > ERR_MAX
750 # undef ERR_MAX
751 # define ERR_MAX EPROCLIM
752 # endif
753 #endif
754 #ifdef EUSERS
756 TRANS The file quota system is confused because there are too many users.
757 TRANS @c This can probably happen in a GNU system when using NFS. */
758 [ERR_REMAP (EUSERS)] = N_("Too many users"),
759 # if EUSERS > ERR_MAX
760 # undef ERR_MAX
761 # define ERR_MAX EUSERS
762 # endif
763 #endif
764 #ifdef EDQUOT
766 TRANS The user's disk quota was exceeded. */
767 [ERR_REMAP (EDQUOT)] = N_("Disk quota exceeded"),
768 # if EDQUOT > ERR_MAX
769 # undef ERR_MAX
770 # define ERR_MAX EDQUOT
771 # endif
772 #endif
773 #ifdef ESTALE
775 TRANS Stale NFS file handle. This indicates an internal confusion in the NFS
776 TRANS system which is due to file system rearrangements on the server host.
777 TRANS Repairing this condition usually requires unmounting and remounting
778 TRANS the NFS file system on the local host. */
779 [ERR_REMAP (ESTALE)] = N_("Stale NFS file handle"),
780 # if ESTALE > ERR_MAX
781 # undef ERR_MAX
782 # define ERR_MAX ESTALE
783 # endif
784 #endif
785 #ifdef EREMOTE
787 TRANS An attempt was made to NFS-mount a remote file system with a file name that
788 TRANS already specifies an NFS-mounted file.
789 TRANS (This is an error on some operating systems, but we expect it to work
790 TRANS properly on the GNU system, making this error code impossible.) */
791 [ERR_REMAP (EREMOTE)] = N_("Object is remote"),
792 # if EREMOTE > ERR_MAX
793 # undef ERR_MAX
794 # define ERR_MAX EREMOTE
795 # endif
796 #endif
797 #ifdef EBADRPC
799 TRANS ??? */
800 [ERR_REMAP (EBADRPC)] = N_("RPC struct is bad"),
801 # if EBADRPC > ERR_MAX
802 # undef ERR_MAX
803 # define ERR_MAX EBADRPC
804 # endif
805 #endif
806 #ifdef ERPCMISMATCH
808 TRANS ??? */
809 [ERR_REMAP (ERPCMISMATCH)] = N_("RPC version wrong"),
810 # if ERPCMISMATCH > ERR_MAX
811 # undef ERR_MAX
812 # define ERR_MAX ERPCMISMATCH
813 # endif
814 #endif
815 #ifdef EPROGUNAVAIL
817 TRANS ??? */
818 [ERR_REMAP (EPROGUNAVAIL)] = N_("RPC program not available"),
819 # if EPROGUNAVAIL > ERR_MAX
820 # undef ERR_MAX
821 # define ERR_MAX EPROGUNAVAIL
822 # endif
823 #endif
824 #ifdef EPROGMISMATCH
826 TRANS ??? */
827 [ERR_REMAP (EPROGMISMATCH)] = N_("RPC program version wrong"),
828 # if EPROGMISMATCH > ERR_MAX
829 # undef ERR_MAX
830 # define ERR_MAX EPROGMISMATCH
831 # endif
832 #endif
833 #ifdef EPROCUNAVAIL
835 TRANS ??? */
836 [ERR_REMAP (EPROCUNAVAIL)] = N_("RPC bad procedure for program"),
837 # if EPROCUNAVAIL > ERR_MAX
838 # undef ERR_MAX
839 # define ERR_MAX EPROCUNAVAIL
840 # endif
841 #endif
842 #ifdef ENOLCK
844 TRANS No locks available. This is used by the file locking facilities; see
845 TRANS @ref{File Locks}. This error is never generated by the GNU system, but
846 TRANS it can result from an operation to an NFS server running another
847 TRANS operating system. */
848 [ERR_REMAP (ENOLCK)] = N_("No locks available"),
849 # if ENOLCK > ERR_MAX
850 # undef ERR_MAX
851 # define ERR_MAX ENOLCK
852 # endif
853 #endif
854 #ifdef EFTYPE
856 TRANS Inappropriate file type or format. The file was the wrong type for the
857 TRANS operation, or a data file had the wrong format.
858 TRANS
859 TRANS On some systems @code{chmod} returns this error if you try to set the
860 TRANS sticky bit on a non-directory file; @pxref{Setting Permissions}. */
861 [ERR_REMAP (EFTYPE)] = N_("Inappropriate file type or format"),
862 # if EFTYPE > ERR_MAX
863 # undef ERR_MAX
864 # define ERR_MAX EFTYPE
865 # endif
866 #endif
867 #ifdef EAUTH
869 TRANS ??? */
870 [ERR_REMAP (EAUTH)] = N_("Authentication error"),
871 # if EAUTH > ERR_MAX
872 # undef ERR_MAX
873 # define ERR_MAX EAUTH
874 # endif
875 #endif
876 #ifdef ENEEDAUTH
878 TRANS ??? */
879 [ERR_REMAP (ENEEDAUTH)] = N_("Need authenticator"),
880 # if ENEEDAUTH > ERR_MAX
881 # undef ERR_MAX
882 # define ERR_MAX ENEEDAUTH
883 # endif
884 #endif
885 #ifdef ENOSYS
887 TRANS Function not implemented. This indicates that the function called is
888 TRANS not implemented at all, either in the C library itself or in the
889 TRANS operating system. When you get this error, you can be sure that this
890 TRANS particular function will always fail with @code{ENOSYS} unless you
891 TRANS install a new version of the C library or the operating system. */
892 [ERR_REMAP (ENOSYS)] = N_("Function not implemented"),
893 # if ENOSYS > ERR_MAX
894 # undef ERR_MAX
895 # define ERR_MAX ENOSYS
896 # endif
897 #endif
898 #if defined (ENOTSUP) && ENOTSUP != EOPNOTSUPP
900 TRANS Not supported. A function returns this error when certain parameter
901 TRANS values are valid, but the functionality they request is not available.
902 TRANS This can mean that the function does not implement a particular command
903 TRANS or option value or flag bit at all. For functions that operate on some
904 TRANS object given in a parameter, such as a file descriptor or a port, it
905 TRANS might instead mean that only @emph{that specific object} (file
906 TRANS descriptor, port, etc.) is unable to support the other parameters given;
907 TRANS different file descriptors might support different ranges of parameter
908 TRANS values.
909 TRANS
910 TRANS If the entire function is not available at all in the implementation,
911 TRANS it returns @code{ENOSYS} instead. */
912 [ERR_REMAP (ENOTSUP)] = N_("Not supported"),
913 # if ENOTSUP > ERR_MAX
914 # undef ERR_MAX
915 # define ERR_MAX ENOTSUP
916 # endif
917 #endif
918 #ifdef EILSEQ
920 TRANS While decoding a multibyte character the function came along an invalid
921 TRANS or an incomplete sequence of bytes or the given wide character is invalid. */
922 [ERR_REMAP (EILSEQ)] = N_("Invalid or incomplete multibyte or wide character"),
923 # if EILSEQ > ERR_MAX
924 # undef ERR_MAX
925 # define ERR_MAX EILSEQ
926 # endif
927 #endif
928 #ifdef EBACKGROUND
930 TRANS In the GNU system, servers supporting the @code{term} protocol return
931 TRANS this error for certain operations when the caller is not in the
932 TRANS foreground process group of the terminal. Users do not usually see this
933 TRANS error because functions such as @code{read} and @code{write} translate
934 TRANS it into a @code{SIGTTIN} or @code{SIGTTOU} signal. @xref{Job Control},
935 TRANS for information on process groups and these signals. */
936 [ERR_REMAP (EBACKGROUND)] = N_("Inappropriate operation for background process"),
937 # if EBACKGROUND > ERR_MAX
938 # undef ERR_MAX
939 # define ERR_MAX EBACKGROUND
940 # endif
941 #endif
942 #ifdef EDIED
944 TRANS In the GNU system, opening a file returns this error when the file is
945 TRANS translated by a program and the translator program dies while starting
946 TRANS up, before it has connected to the file. */
947 [ERR_REMAP (EDIED)] = N_("Translator died"),
948 # if EDIED > ERR_MAX
949 # undef ERR_MAX
950 # define ERR_MAX EDIED
951 # endif
952 #endif
953 #ifdef ED
955 TRANS The experienced user will know what is wrong.
956 TRANS @c This error code is a joke. Its perror text is part of the joke.
957 TRANS @c Don't change it. */
958 [ERR_REMAP (ED)] = N_("?"),
959 # if ED > ERR_MAX
960 # undef ERR_MAX
961 # define ERR_MAX ED
962 # endif
963 #endif
964 #ifdef EGREGIOUS
966 TRANS You did @strong{what}? */
967 [ERR_REMAP (EGREGIOUS)] = N_("You really blew it this time"),
968 # if EGREGIOUS > ERR_MAX
969 # undef ERR_MAX
970 # define ERR_MAX EGREGIOUS
971 # endif
972 #endif
973 #ifdef EIEIO
975 TRANS Go home and have a glass of warm, dairy-fresh milk. */
976 [ERR_REMAP (EIEIO)] = N_("Computer bought the farm"),
977 # if EIEIO > ERR_MAX
978 # undef ERR_MAX
979 # define ERR_MAX EIEIO
980 # endif
981 #endif
982 #ifdef EGRATUITOUS
984 TRANS This error code has no purpose. */
985 [ERR_REMAP (EGRATUITOUS)] = N_("Gratuitous error"),
986 # if EGRATUITOUS > ERR_MAX
987 # undef ERR_MAX
988 # define ERR_MAX EGRATUITOUS
989 # endif
990 #endif
991 #ifdef EBADMSG
992 /* */
993 [ERR_REMAP (EBADMSG)] = N_("Bad message"),
994 # if EBADMSG > ERR_MAX
995 # undef ERR_MAX
996 # define ERR_MAX EBADMSG
997 # endif
998 #endif
999 #ifdef EIDRM
1000 /* */
1001 [ERR_REMAP (EIDRM)] = N_("Identifier removed"),
1002 # if EIDRM > ERR_MAX
1003 # undef ERR_MAX
1004 # define ERR_MAX EIDRM
1005 # endif
1006 #endif
1007 #ifdef EMULTIHOP
1008 /* */
1009 [ERR_REMAP (EMULTIHOP)] = N_("Multihop attempted"),
1010 # if EMULTIHOP > ERR_MAX
1011 # undef ERR_MAX
1012 # define ERR_MAX EMULTIHOP
1013 # endif
1014 #endif
1015 #ifdef ENODATA
1016 /* */
1017 [ERR_REMAP (ENODATA)] = N_("No data available"),
1018 # if ENODATA > ERR_MAX
1019 # undef ERR_MAX
1020 # define ERR_MAX ENODATA
1021 # endif
1022 #endif
1023 #ifdef ENOLINK
1024 /* */
1025 [ERR_REMAP (ENOLINK)] = N_("Link has been severed"),
1026 # if ENOLINK > ERR_MAX
1027 # undef ERR_MAX
1028 # define ERR_MAX ENOLINK
1029 # endif
1030 #endif
1031 #ifdef ENOMSG
1032 /* */
1033 [ERR_REMAP (ENOMSG)] = N_("No message of desired type"),
1034 # if ENOMSG > ERR_MAX
1035 # undef ERR_MAX
1036 # define ERR_MAX ENOMSG
1037 # endif
1038 #endif
1039 #ifdef ENOSR
1040 /* */
1041 [ERR_REMAP (ENOSR)] = N_("Out of streams resources"),
1042 # if ENOSR > ERR_MAX
1043 # undef ERR_MAX
1044 # define ERR_MAX ENOSR
1045 # endif
1046 #endif
1047 #ifdef ENOSTR
1048 /* */
1049 [ERR_REMAP (ENOSTR)] = N_("Device not a stream"),
1050 # if ENOSTR > ERR_MAX
1051 # undef ERR_MAX
1052 # define ERR_MAX ENOSTR
1053 # endif
1054 #endif
1055 #ifdef EOVERFLOW
1056 /* */
1057 [ERR_REMAP (EOVERFLOW)] = N_("Value too large for defined data type"),
1058 # if EOVERFLOW > ERR_MAX
1059 # undef ERR_MAX
1060 # define ERR_MAX EOVERFLOW
1061 # endif
1062 #endif
1063 #ifdef EPROTO
1064 /* */
1065 [ERR_REMAP (EPROTO)] = N_("Protocol error"),
1066 # if EPROTO > ERR_MAX
1067 # undef ERR_MAX
1068 # define ERR_MAX EPROTO
1069 # endif
1070 #endif
1071 #ifdef ETIME
1072 /* */
1073 [ERR_REMAP (ETIME)] = N_("Timer expired"),
1074 # if ETIME > ERR_MAX
1075 # undef ERR_MAX
1076 # define ERR_MAX ETIME
1077 # endif
1078 #endif
1079 #ifdef ECANCELED
1081 TRANS Operation canceled; an asynchronous operation was canceled before it
1082 TRANS completed. @xref{Asynchronous I/O}. When you call @code{aio_cancel},
1083 TRANS the normal result is for the operations affected to complete with this
1084 TRANS error; @pxref{Cancel AIO Operations}. */
1085 [ERR_REMAP (ECANCELED)] = N_("Operation canceled"),
1086 # if ECANCELED > ERR_MAX
1087 # undef ERR_MAX
1088 # define ERR_MAX ECANCELED
1089 # endif
1090 #endif
1091 #ifdef ERESTART
1092 /* */
1093 [ERR_REMAP (ERESTART)] = N_("Interrupted system call should be restarted"),
1094 # if ERESTART > ERR_MAX
1095 # undef ERR_MAX
1096 # define ERR_MAX ERESTART
1097 # endif
1098 #endif
1099 #ifdef ECHRNG
1100 /* */
1101 [ERR_REMAP (ECHRNG)] = N_("Channel number out of range"),
1102 # if ECHRNG > ERR_MAX
1103 # undef ERR_MAX
1104 # define ERR_MAX ECHRNG
1105 # endif
1106 #endif
1107 #ifdef EL2NSYNC
1108 /* */
1109 [ERR_REMAP (EL2NSYNC)] = N_("Level 2 not synchronized"),
1110 # if EL2NSYNC > ERR_MAX
1111 # undef ERR_MAX
1112 # define ERR_MAX EL2NSYNC
1113 # endif
1114 #endif
1115 #ifdef EL3HLT
1116 /* */
1117 [ERR_REMAP (EL3HLT)] = N_("Level 3 halted"),
1118 # if EL3HLT > ERR_MAX
1119 # undef ERR_MAX
1120 # define ERR_MAX EL3HLT
1121 # endif
1122 #endif
1123 #ifdef EL3RST
1124 /* */
1125 [ERR_REMAP (EL3RST)] = N_("Level 3 reset"),
1126 # if EL3RST > ERR_MAX
1127 # undef ERR_MAX
1128 # define ERR_MAX EL3RST
1129 # endif
1130 #endif
1131 #ifdef ELNRNG
1132 /* */
1133 [ERR_REMAP (ELNRNG)] = N_("Link number out of range"),
1134 # if ELNRNG > ERR_MAX
1135 # undef ERR_MAX
1136 # define ERR_MAX ELNRNG
1137 # endif
1138 #endif
1139 #ifdef EUNATCH
1140 /* */
1141 [ERR_REMAP (EUNATCH)] = N_("Protocol driver not attached"),
1142 # if EUNATCH > ERR_MAX
1143 # undef ERR_MAX
1144 # define ERR_MAX EUNATCH
1145 # endif
1146 #endif
1147 #ifdef ENOCSI
1148 /* */
1149 [ERR_REMAP (ENOCSI)] = N_("No CSI structure available"),
1150 # if ENOCSI > ERR_MAX
1151 # undef ERR_MAX
1152 # define ERR_MAX ENOCSI
1153 # endif
1154 #endif
1155 #ifdef EL2HLT
1156 /* */
1157 [ERR_REMAP (EL2HLT)] = N_("Level 2 halted"),
1158 # if EL2HLT > ERR_MAX
1159 # undef ERR_MAX
1160 # define ERR_MAX EL2HLT
1161 # endif
1162 #endif
1163 #ifdef EBADE
1164 /* */
1165 [ERR_REMAP (EBADE)] = N_("Invalid exchange"),
1166 # if EBADE > ERR_MAX
1167 # undef ERR_MAX
1168 # define ERR_MAX EBADE
1169 # endif
1170 #endif
1171 #ifdef EBADR
1172 /* */
1173 [ERR_REMAP (EBADR)] = N_("Invalid request descriptor"),
1174 # if EBADR > ERR_MAX
1175 # undef ERR_MAX
1176 # define ERR_MAX EBADR
1177 # endif
1178 #endif
1179 #ifdef EXFULL
1180 /* */
1181 [ERR_REMAP (EXFULL)] = N_("Exchange full"),
1182 # if EXFULL > ERR_MAX
1183 # undef ERR_MAX
1184 # define ERR_MAX EXFULL
1185 # endif
1186 #endif
1187 #ifdef ENOANO
1188 /* */
1189 [ERR_REMAP (ENOANO)] = N_("No anode"),
1190 # if ENOANO > ERR_MAX
1191 # undef ERR_MAX
1192 # define ERR_MAX ENOANO
1193 # endif
1194 #endif
1195 #ifdef EBADRQC
1196 /* */
1197 [ERR_REMAP (EBADRQC)] = N_("Invalid request code"),
1198 # if EBADRQC > ERR_MAX
1199 # undef ERR_MAX
1200 # define ERR_MAX EBADRQC
1201 # endif
1202 #endif
1203 #ifdef EBADSLT
1204 /* */
1205 [ERR_REMAP (EBADSLT)] = N_("Invalid slot"),
1206 # if EBADSLT > ERR_MAX
1207 # undef ERR_MAX
1208 # define ERR_MAX EBADSLT
1209 # endif
1210 #endif
1211 #if defined (EDEADLOCK) && EDEADLOCK != EDEADLK
1212 /* */
1213 [ERR_REMAP (EDEADLOCK)] = N_("File locking deadlock error"),
1214 # if EDEADLOCK > ERR_MAX
1215 # undef ERR_MAX
1216 # define ERR_MAX EDEADLOCK
1217 # endif
1218 #endif
1219 #ifdef EBFONT
1220 /* */
1221 [ERR_REMAP (EBFONT)] = N_("Bad font file format"),
1222 # if EBFONT > ERR_MAX
1223 # undef ERR_MAX
1224 # define ERR_MAX EBFONT
1225 # endif
1226 #endif
1227 #ifdef ENONET
1228 /* */
1229 [ERR_REMAP (ENONET)] = N_("Machine is not on the network"),
1230 # if ENONET > ERR_MAX
1231 # undef ERR_MAX
1232 # define ERR_MAX ENONET
1233 # endif
1234 #endif
1235 #ifdef ENOPKG
1236 /* */
1237 [ERR_REMAP (ENOPKG)] = N_("Package not installed"),
1238 # if ENOPKG > ERR_MAX
1239 # undef ERR_MAX
1240 # define ERR_MAX ENOPKG
1241 # endif
1242 #endif
1243 #ifdef EADV
1244 /* */
1245 [ERR_REMAP (EADV)] = N_("Advertise error"),
1246 # if EADV > ERR_MAX
1247 # undef ERR_MAX
1248 # define ERR_MAX EADV
1249 # endif
1250 #endif
1251 #ifdef ESRMNT
1252 /* */
1253 [ERR_REMAP (ESRMNT)] = N_("Srmount error"),
1254 # if ESRMNT > ERR_MAX
1255 # undef ERR_MAX
1256 # define ERR_MAX ESRMNT
1257 # endif
1258 #endif
1259 #ifdef ECOMM
1260 /* */
1261 [ERR_REMAP (ECOMM)] = N_("Communication error on send"),
1262 # if ECOMM > ERR_MAX
1263 # undef ERR_MAX
1264 # define ERR_MAX ECOMM
1265 # endif
1266 #endif
1267 #ifdef EDOTDOT
1268 /* */
1269 [ERR_REMAP (EDOTDOT)] = N_("RFS specific error"),
1270 # if EDOTDOT > ERR_MAX
1271 # undef ERR_MAX
1272 # define ERR_MAX EDOTDOT
1273 # endif
1274 #endif
1275 #ifdef ENOTUNIQ
1276 /* */
1277 [ERR_REMAP (ENOTUNIQ)] = N_("Name not unique on network"),
1278 # if ENOTUNIQ > ERR_MAX
1279 # undef ERR_MAX
1280 # define ERR_MAX ENOTUNIQ
1281 # endif
1282 #endif
1283 #ifdef EBADFD
1284 /* */
1285 [ERR_REMAP (EBADFD)] = N_("File descriptor in bad state"),
1286 # if EBADFD > ERR_MAX
1287 # undef ERR_MAX
1288 # define ERR_MAX EBADFD
1289 # endif
1290 #endif
1291 #ifdef EREMCHG
1292 /* */
1293 [ERR_REMAP (EREMCHG)] = N_("Remote address changed"),
1294 # if EREMCHG > ERR_MAX
1295 # undef ERR_MAX
1296 # define ERR_MAX EREMCHG
1297 # endif
1298 #endif
1299 #ifdef ELIBACC
1300 /* */
1301 [ERR_REMAP (ELIBACC)] = N_("Can not access a needed shared library"),
1302 # if ELIBACC > ERR_MAX
1303 # undef ERR_MAX
1304 # define ERR_MAX ELIBACC
1305 # endif
1306 #endif
1307 #ifdef ELIBBAD
1308 /* */
1309 [ERR_REMAP (ELIBBAD)] = N_("Accessing a corrupted shared library"),
1310 # if ELIBBAD > ERR_MAX
1311 # undef ERR_MAX
1312 # define ERR_MAX ELIBBAD
1313 # endif
1314 #endif
1315 #ifdef ELIBSCN
1316 /* */
1317 [ERR_REMAP (ELIBSCN)] = N_(".lib section in a.out corrupted"),
1318 # if ELIBSCN > ERR_MAX
1319 # undef ERR_MAX
1320 # define ERR_MAX ELIBSCN
1321 # endif
1322 #endif
1323 #ifdef ELIBMAX
1324 /* */
1325 [ERR_REMAP (ELIBMAX)] = N_("Attempting to link in too many shared libraries"),
1326 # if ELIBMAX > ERR_MAX
1327 # undef ERR_MAX
1328 # define ERR_MAX ELIBMAX
1329 # endif
1330 #endif
1331 #ifdef ELIBEXEC
1332 /* */
1333 [ERR_REMAP (ELIBEXEC)] = N_("Cannot exec a shared library directly"),
1334 # if ELIBEXEC > ERR_MAX
1335 # undef ERR_MAX
1336 # define ERR_MAX ELIBEXEC
1337 # endif
1338 #endif
1339 #ifdef ESTRPIPE
1340 /* */
1341 [ERR_REMAP (ESTRPIPE)] = N_("Streams pipe error"),
1342 # if ESTRPIPE > ERR_MAX
1343 # undef ERR_MAX
1344 # define ERR_MAX ESTRPIPE
1345 # endif
1346 #endif
1347 #ifdef EUCLEAN
1348 /* */
1349 [ERR_REMAP (EUCLEAN)] = N_("Structure needs cleaning"),
1350 # if EUCLEAN > ERR_MAX
1351 # undef ERR_MAX
1352 # define ERR_MAX EUCLEAN
1353 # endif
1354 #endif
1355 #ifdef ENOTNAM
1356 /* */
1357 [ERR_REMAP (ENOTNAM)] = N_("Not a XENIX named type file"),
1358 # if ENOTNAM > ERR_MAX
1359 # undef ERR_MAX
1360 # define ERR_MAX ENOTNAM
1361 # endif
1362 #endif
1363 #ifdef ENAVAIL
1364 /* */
1365 [ERR_REMAP (ENAVAIL)] = N_("No XENIX semaphores available"),
1366 # if ENAVAIL > ERR_MAX
1367 # undef ERR_MAX
1368 # define ERR_MAX ENAVAIL
1369 # endif
1370 #endif
1371 #ifdef EISNAM
1372 /* */
1373 [ERR_REMAP (EISNAM)] = N_("Is a named type file"),
1374 # if EISNAM > ERR_MAX
1375 # undef ERR_MAX
1376 # define ERR_MAX EISNAM
1377 # endif
1378 #endif
1379 #ifdef EREMOTEIO
1380 /* */
1381 [ERR_REMAP (EREMOTEIO)] = N_("Remote I/O error"),
1382 # if EREMOTEIO > ERR_MAX
1383 # undef ERR_MAX
1384 # define ERR_MAX EREMOTEIO
1385 # endif
1386 #endif
1387 #ifdef ENOMEDIUM
1388 /* */
1389 [ERR_REMAP (ENOMEDIUM)] = N_("No medium found"),
1390 # if ENOMEDIUM > ERR_MAX
1391 # undef ERR_MAX
1392 # define ERR_MAX ENOMEDIUM
1393 # endif
1394 #endif
1395 #ifdef EMEDIUMTYPE
1396 /* */
1397 [ERR_REMAP (EMEDIUMTYPE)] = N_("Wrong medium type"),
1398 # if EMEDIUMTYPE > ERR_MAX
1399 # undef ERR_MAX
1400 # define ERR_MAX EMEDIUMTYPE
1401 # endif
1402 #endif
1405 const int _sys_nerr_internal
1406 = sizeof _sys_errlist_internal / sizeof _sys_errlist_internal [0];
1408 #if !defined NOT_IN_libc && !ERRLIST_NO_COMPAT
1409 # include <errlist-compat.c>
1410 #endif
1412 #ifdef EMIT_ERR_MAX
1413 void dummy (void)
1414 { asm volatile (" @@@ %0 @@@ " : : "i" (ERR_REMAP (ERR_MAX))); }
1415 #endif