1 /* This file is generated from errno.texi by errlist.awk. */
7 # define ERR_REMAP(n) n
10 const char *const _sys_errlist_internal
[] =
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"),
20 # define ERR_MAX EPERM
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"),
31 # define ERR_MAX ENOENT
36 TRANS No process matches the specified process ID. */
37 [ERR_REMAP (ESRCH
)] = N_("No such process"),
40 # define ERR_MAX ESRCH
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
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
52 [ERR_REMAP (EINTR
)] = N_("Interrupted system call"),
55 # define ERR_MAX EINTR
60 TRANS Input/output error; usually used for physical read or write errors. */
61 [ERR_REMAP (EIO
)] = N_("Input/output error"),
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
74 [ERR_REMAP (ENXIO
)] = N_("No such device or address"),
77 # define ERR_MAX ENXIO
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
86 [ERR_REMAP (E2BIG
)] = N_("Argument list too long"),
89 # define ERR_MAX E2BIG
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
99 # define ERR_MAX ENOEXEC
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
107 [ERR_REMAP (EBADF
)] = N_("Bad file descriptor"),
110 # define ERR_MAX EBADF
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
121 # define ERR_MAX ECHILD
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
133 # define ERR_MAX EDEADLK
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
143 # define ERR_MAX ENOMEM
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
152 # define ERR_MAX EACCES
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
162 # define ERR_MAX EFAULT
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
173 # define ERR_MAX ENOTBLK
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"),
184 # define ERR_MAX EBUSY
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
194 # define ERR_MAX EEXIST
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"),
205 # define ERR_MAX EXDEV
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
215 # define ERR_MAX ENODEV
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
224 # define ERR_MAX ENOTDIR
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
234 # define ERR_MAX EISDIR
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
244 # define ERR_MAX EINVAL
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.
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
259 # define ERR_MAX EMFILE
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
270 # define ERR_MAX ENFILE
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
280 # define ERR_MAX ENOTTY
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
293 # define ERR_MAX ETXTBSY
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"),
302 # define ERR_MAX EFBIG
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
312 # define ERR_MAX ENOSPC
317 TRANS Invalid seek operation (such as on a pipe). */
318 [ERR_REMAP (ESPIPE
)] = N_("Illegal seek"),
319 # if ESPIPE > ERR_MAX
321 # define ERR_MAX ESPIPE
326 TRANS An attempt was made to modify something on a read-only file system. */
327 [ERR_REMAP (EROFS
)] = N_("Read-only file system"),
330 # define ERR_MAX EROFS
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
341 # define ERR_MAX EMLINK
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"),
354 # define ERR_MAX EPIPE
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"),
364 # define ERR_MAX EDOM
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
374 # define ERR_MAX ERANGE
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.
383 TRANS This error can happen in a few different situations:
385 TRANS @itemize @bullet
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}.
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.
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
411 # define ERR_MAX EAGAIN
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.
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
424 # define ERR_MAX EWOULDBLOCK
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
440 # define ERR_MAX EINPROGRESS
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
450 # define ERR_MAX EALREADY
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
459 # define ERR_MAX ENOTSOCK
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
469 # define ERR_MAX EMSGSIZE
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
478 # define ERR_MAX EPROTOTYPE
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
488 # define ERR_MAX ENOPROTOOPT
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
499 # define ERR_MAX EPROTONOSUPPORT
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
508 # define ERR_MAX ESOCKTNOSUPPORT
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
522 # define ERR_MAX EOPNOTSUPP
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
531 # define ERR_MAX EPFNOSUPPORT
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
541 # define ERR_MAX EAFNOSUPPORT
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
550 # define ERR_MAX EADDRINUSE
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
561 # define ERR_MAX EADDRNOTAVAIL
566 TRANS A socket operation failed because the network was down. */
567 [ERR_REMAP (ENETDOWN
)] = N_("Network is down"),
568 # if ENETDOWN > ERR_MAX
570 # define ERR_MAX ENETDOWN
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
580 # define ERR_MAX ENETUNREACH
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
589 # define ERR_MAX ENETRESET
594 TRANS A network connection was aborted locally. */
595 [ERR_REMAP (ECONNABORTED
)] = N_("Software caused connection abort"),
596 # if ECONNABORTED > ERR_MAX
598 # define ERR_MAX ECONNABORTED
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
609 # define ERR_MAX ECONNRESET
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
620 # define ERR_MAX ENOBUFS
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
630 # define ERR_MAX EISCONN
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
642 # define ERR_MAX ENOTCONN
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
653 # define ERR_MAX EDESTADDRREQ
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
662 # define ERR_MAX ESHUTDOWN
668 [ERR_REMAP (ETOOMANYREFS
)] = N_("Too many references: cannot splice"),
669 # if ETOOMANYREFS > ERR_MAX
671 # define ERR_MAX ETOOMANYREFS
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
681 # define ERR_MAX ETIMEDOUT
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
691 # define ERR_MAX ECONNREFUSED
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"),
701 # define ERR_MAX ELOOP
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
712 # define ERR_MAX ENAMETOOLONG
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
721 # define ERR_MAX EHOSTDOWN
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
730 # define ERR_MAX EHOSTUNREACH
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
740 # define ERR_MAX ENOTEMPTY
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
751 # define ERR_MAX EPROCLIM
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
761 # define ERR_MAX EUSERS
766 TRANS The user's disk quota was exceeded. */
767 [ERR_REMAP (EDQUOT
)] = N_("Disk quota exceeded"),
768 # if EDQUOT > ERR_MAX
770 # define ERR_MAX EDQUOT
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
782 # define ERR_MAX ESTALE
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
794 # define ERR_MAX EREMOTE
800 [ERR_REMAP (EBADRPC
)] = N_("RPC struct is bad"),
801 # if EBADRPC > ERR_MAX
803 # define ERR_MAX EBADRPC
809 [ERR_REMAP (ERPCMISMATCH
)] = N_("RPC version wrong"),
810 # if ERPCMISMATCH > ERR_MAX
812 # define ERR_MAX ERPCMISMATCH
818 [ERR_REMAP (EPROGUNAVAIL
)] = N_("RPC program not available"),
819 # if EPROGUNAVAIL > ERR_MAX
821 # define ERR_MAX EPROGUNAVAIL
827 [ERR_REMAP (EPROGMISMATCH
)] = N_("RPC program version wrong"),
828 # if EPROGMISMATCH > ERR_MAX
830 # define ERR_MAX EPROGMISMATCH
836 [ERR_REMAP (EPROCUNAVAIL
)] = N_("RPC bad procedure for program"),
837 # if EPROCUNAVAIL > ERR_MAX
839 # define ERR_MAX EPROCUNAVAIL
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
851 # define ERR_MAX ENOLCK
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.
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
864 # define ERR_MAX EFTYPE
870 [ERR_REMAP (EAUTH
)] = N_("Authentication error"),
873 # define ERR_MAX EAUTH
879 [ERR_REMAP (ENEEDAUTH
)] = N_("Need authenticator"),
880 # if ENEEDAUTH > ERR_MAX
882 # define ERR_MAX ENEEDAUTH
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
895 # define ERR_MAX ENOSYS
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
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
915 # define ERR_MAX ENOTSUP
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
925 # define ERR_MAX EILSEQ
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
939 # define ERR_MAX EBACKGROUND
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"),
950 # define ERR_MAX EDIED
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_("?"),
966 TRANS You did @strong{what}? */
967 [ERR_REMAP (EGREGIOUS
)] = N_("You really blew it this time"),
968 # if EGREGIOUS > ERR_MAX
970 # define ERR_MAX EGREGIOUS
975 TRANS Go home and have a glass of warm, dairy-fresh milk. */
976 [ERR_REMAP (EIEIO
)] = N_("Computer bought the farm"),
979 # define ERR_MAX EIEIO
984 TRANS This error code has no purpose. */
985 [ERR_REMAP (EGRATUITOUS
)] = N_("Gratuitous error"),
986 # if EGRATUITOUS > ERR_MAX
988 # define ERR_MAX EGRATUITOUS
993 [ERR_REMAP (EBADMSG
)] = N_("Bad message"),
994 # if EBADMSG > ERR_MAX
996 # define ERR_MAX EBADMSG
1001 [ERR_REMAP (EIDRM
)] = N_("Identifier removed"),
1002 # if EIDRM > ERR_MAX
1004 # define ERR_MAX EIDRM
1009 [ERR_REMAP (EMULTIHOP
)] = N_("Multihop attempted"),
1010 # if EMULTIHOP > ERR_MAX
1012 # define ERR_MAX EMULTIHOP
1017 [ERR_REMAP (ENODATA
)] = N_("No data available"),
1018 # if ENODATA > ERR_MAX
1020 # define ERR_MAX ENODATA
1025 [ERR_REMAP (ENOLINK
)] = N_("Link has been severed"),
1026 # if ENOLINK > ERR_MAX
1028 # define ERR_MAX ENOLINK
1033 [ERR_REMAP (ENOMSG
)] = N_("No message of desired type"),
1034 # if ENOMSG > ERR_MAX
1036 # define ERR_MAX ENOMSG
1041 [ERR_REMAP (ENOSR
)] = N_("Out of streams resources"),
1042 # if ENOSR > ERR_MAX
1044 # define ERR_MAX ENOSR
1049 [ERR_REMAP (ENOSTR
)] = N_("Device not a stream"),
1050 # if ENOSTR > ERR_MAX
1052 # define ERR_MAX ENOSTR
1057 [ERR_REMAP (EOVERFLOW
)] = N_("Value too large for defined data type"),
1058 # if EOVERFLOW > ERR_MAX
1060 # define ERR_MAX EOVERFLOW
1065 [ERR_REMAP (EPROTO
)] = N_("Protocol error"),
1066 # if EPROTO > ERR_MAX
1068 # define ERR_MAX EPROTO
1073 [ERR_REMAP (ETIME
)] = N_("Timer expired"),
1074 # if ETIME > ERR_MAX
1076 # define ERR_MAX ETIME
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
1088 # define ERR_MAX ECANCELED
1093 [ERR_REMAP (ERESTART
)] = N_("Interrupted system call should be restarted"),
1094 # if ERESTART > ERR_MAX
1096 # define ERR_MAX ERESTART
1101 [ERR_REMAP (ECHRNG
)] = N_("Channel number out of range"),
1102 # if ECHRNG > ERR_MAX
1104 # define ERR_MAX ECHRNG
1109 [ERR_REMAP (EL2NSYNC
)] = N_("Level 2 not synchronized"),
1110 # if EL2NSYNC > ERR_MAX
1112 # define ERR_MAX EL2NSYNC
1117 [ERR_REMAP (EL3HLT
)] = N_("Level 3 halted"),
1118 # if EL3HLT > ERR_MAX
1120 # define ERR_MAX EL3HLT
1125 [ERR_REMAP (EL3RST
)] = N_("Level 3 reset"),
1126 # if EL3RST > ERR_MAX
1128 # define ERR_MAX EL3RST
1133 [ERR_REMAP (ELNRNG
)] = N_("Link number out of range"),
1134 # if ELNRNG > ERR_MAX
1136 # define ERR_MAX ELNRNG
1141 [ERR_REMAP (EUNATCH
)] = N_("Protocol driver not attached"),
1142 # if EUNATCH > ERR_MAX
1144 # define ERR_MAX EUNATCH
1149 [ERR_REMAP (ENOCSI
)] = N_("No CSI structure available"),
1150 # if ENOCSI > ERR_MAX
1152 # define ERR_MAX ENOCSI
1157 [ERR_REMAP (EL2HLT
)] = N_("Level 2 halted"),
1158 # if EL2HLT > ERR_MAX
1160 # define ERR_MAX EL2HLT
1165 [ERR_REMAP (EBADE
)] = N_("Invalid exchange"),
1166 # if EBADE > ERR_MAX
1168 # define ERR_MAX EBADE
1173 [ERR_REMAP (EBADR
)] = N_("Invalid request descriptor"),
1174 # if EBADR > ERR_MAX
1176 # define ERR_MAX EBADR
1181 [ERR_REMAP (EXFULL
)] = N_("Exchange full"),
1182 # if EXFULL > ERR_MAX
1184 # define ERR_MAX EXFULL
1189 [ERR_REMAP (ENOANO
)] = N_("No anode"),
1190 # if ENOANO > ERR_MAX
1192 # define ERR_MAX ENOANO
1197 [ERR_REMAP (EBADRQC
)] = N_("Invalid request code"),
1198 # if EBADRQC > ERR_MAX
1200 # define ERR_MAX EBADRQC
1205 [ERR_REMAP (EBADSLT
)] = N_("Invalid slot"),
1206 # if EBADSLT > ERR_MAX
1208 # define ERR_MAX EBADSLT
1211 #if defined (EDEADLOCK) && EDEADLOCK != EDEADLK
1213 [ERR_REMAP (EDEADLOCK
)] = N_("File locking deadlock error"),
1214 # if EDEADLOCK > ERR_MAX
1216 # define ERR_MAX EDEADLOCK
1221 [ERR_REMAP (EBFONT
)] = N_("Bad font file format"),
1222 # if EBFONT > ERR_MAX
1224 # define ERR_MAX EBFONT
1229 [ERR_REMAP (ENONET
)] = N_("Machine is not on the network"),
1230 # if ENONET > ERR_MAX
1232 # define ERR_MAX ENONET
1237 [ERR_REMAP (ENOPKG
)] = N_("Package not installed"),
1238 # if ENOPKG > ERR_MAX
1240 # define ERR_MAX ENOPKG
1245 [ERR_REMAP (EADV
)] = N_("Advertise error"),
1248 # define ERR_MAX EADV
1253 [ERR_REMAP (ESRMNT
)] = N_("Srmount error"),
1254 # if ESRMNT > ERR_MAX
1256 # define ERR_MAX ESRMNT
1261 [ERR_REMAP (ECOMM
)] = N_("Communication error on send"),
1262 # if ECOMM > ERR_MAX
1264 # define ERR_MAX ECOMM
1269 [ERR_REMAP (EDOTDOT
)] = N_("RFS specific error"),
1270 # if EDOTDOT > ERR_MAX
1272 # define ERR_MAX EDOTDOT
1277 [ERR_REMAP (ENOTUNIQ
)] = N_("Name not unique on network"),
1278 # if ENOTUNIQ > ERR_MAX
1280 # define ERR_MAX ENOTUNIQ
1285 [ERR_REMAP (EBADFD
)] = N_("File descriptor in bad state"),
1286 # if EBADFD > ERR_MAX
1288 # define ERR_MAX EBADFD
1293 [ERR_REMAP (EREMCHG
)] = N_("Remote address changed"),
1294 # if EREMCHG > ERR_MAX
1296 # define ERR_MAX EREMCHG
1301 [ERR_REMAP (ELIBACC
)] = N_("Can not access a needed shared library"),
1302 # if ELIBACC > ERR_MAX
1304 # define ERR_MAX ELIBACC
1309 [ERR_REMAP (ELIBBAD
)] = N_("Accessing a corrupted shared library"),
1310 # if ELIBBAD > ERR_MAX
1312 # define ERR_MAX ELIBBAD
1317 [ERR_REMAP (ELIBSCN
)] = N_(".lib section in a.out corrupted"),
1318 # if ELIBSCN > ERR_MAX
1320 # define ERR_MAX ELIBSCN
1325 [ERR_REMAP (ELIBMAX
)] = N_("Attempting to link in too many shared libraries"),
1326 # if ELIBMAX > ERR_MAX
1328 # define ERR_MAX ELIBMAX
1333 [ERR_REMAP (ELIBEXEC
)] = N_("Cannot exec a shared library directly"),
1334 # if ELIBEXEC > ERR_MAX
1336 # define ERR_MAX ELIBEXEC
1341 [ERR_REMAP (ESTRPIPE
)] = N_("Streams pipe error"),
1342 # if ESTRPIPE > ERR_MAX
1344 # define ERR_MAX ESTRPIPE
1349 [ERR_REMAP (EUCLEAN
)] = N_("Structure needs cleaning"),
1350 # if EUCLEAN > ERR_MAX
1352 # define ERR_MAX EUCLEAN
1357 [ERR_REMAP (ENOTNAM
)] = N_("Not a XENIX named type file"),
1358 # if ENOTNAM > ERR_MAX
1360 # define ERR_MAX ENOTNAM
1365 [ERR_REMAP (ENAVAIL
)] = N_("No XENIX semaphores available"),
1366 # if ENAVAIL > ERR_MAX
1368 # define ERR_MAX ENAVAIL
1373 [ERR_REMAP (EISNAM
)] = N_("Is a named type file"),
1374 # if EISNAM > ERR_MAX
1376 # define ERR_MAX EISNAM
1381 [ERR_REMAP (EREMOTEIO
)] = N_("Remote I/O error"),
1382 # if EREMOTEIO > ERR_MAX
1384 # define ERR_MAX EREMOTEIO
1389 [ERR_REMAP (ENOMEDIUM
)] = N_("No medium found"),
1390 # if ENOMEDIUM > ERR_MAX
1392 # define ERR_MAX ENOMEDIUM
1397 [ERR_REMAP (EMEDIUMTYPE
)] = N_("Wrong medium type"),
1398 # if EMEDIUMTYPE > ERR_MAX
1400 # define ERR_MAX EMEDIUMTYPE
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>
1414 { asm volatile (" @@@ %0 @@@ " : : "i" (ERR_REMAP (ERR_MAX
))); }