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