Blame sysdeps/gnu/errlist.c

Packit 6c4009
/* This file is generated from errno.texi by errlist.awk.  */
Packit 6c4009
Packit 6c4009
#include <errno.h>
Packit 6c4009
#include <libintl.h>
Packit 6c4009
Packit 6c4009
#ifndef ERR_REMAP
Packit 6c4009
# define ERR_REMAP(n) n
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
#if !defined EMIT_ERR_MAX && !defined ERRLIST_NO_COMPAT
Packit 6c4009
# include <errlist-compat.h>
Packit 6c4009
#endif
Packit 6c4009
#ifdef ERR_MAX
Packit 6c4009
# define ERRLIST_SIZE ERR_MAX + 1
Packit 6c4009
#else
Packit 6c4009
# define ERR_MAX 0
Packit 6c4009
# define ERRLIST_SIZE
Packit 6c4009
#endif
Packit 6c4009
const char *const _sys_errlist_internal[ERRLIST_SIZE] =
Packit 6c4009
  {
Packit 6c4009
    [0] = N_("Success"),
Packit 6c4009
#ifdef EPERM
Packit 6c4009
/*
Packit 6c4009
TRANS Only the owner of the file (or other resource)
Packit 6c4009
TRANS or processes with special privileges can perform the operation. */
Packit 6c4009
    [ERR_REMAP (EPERM)] = N_("Operation not permitted"),
Packit 6c4009
# if EPERM > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EPERM
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOENT
Packit 6c4009
/*
Packit 6c4009
TRANS This is a ``file doesn't exist'' error
Packit 6c4009
TRANS for ordinary files that are referenced in contexts where they are
Packit 6c4009
TRANS expected to already exist. */
Packit 6c4009
    [ERR_REMAP (ENOENT)] = N_("No such file or directory"),
Packit 6c4009
# if ENOENT > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOENT
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ESRCH
Packit 6c4009
/*
Packit 6c4009
TRANS No process matches the specified process ID. */
Packit 6c4009
    [ERR_REMAP (ESRCH)] = N_("No such process"),
Packit 6c4009
# if ESRCH > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ESRCH
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EINTR
Packit 6c4009
/*
Packit 6c4009
TRANS An asynchronous signal occurred and prevented
Packit 6c4009
TRANS completion of the call.  When this happens, you should try the call
Packit 6c4009
TRANS again.
Packit 6c4009
TRANS
Packit 6c4009
TRANS You can choose to have functions resume after a signal that is handled,
Packit 6c4009
TRANS rather than failing with @code{EINTR}; see @ref{Interrupted
Packit 6c4009
TRANS Primitives}. */
Packit 6c4009
    [ERR_REMAP (EINTR)] = N_("Interrupted system call"),
Packit 6c4009
# if EINTR > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EINTR
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EIO
Packit 6c4009
/*
Packit 6c4009
TRANS Usually used for physical read or write errors. */
Packit 6c4009
    [ERR_REMAP (EIO)] = N_("Input/output error"),
Packit 6c4009
# if EIO > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EIO
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENXIO
Packit 6c4009
/*
Packit 6c4009
TRANS The system tried to use the device
Packit 6c4009
TRANS represented by a file you specified, and it couldn't find the device.
Packit 6c4009
TRANS This can mean that the device file was installed incorrectly, or that
Packit 6c4009
TRANS the physical device is missing or not correctly attached to the
Packit 6c4009
TRANS computer. */
Packit 6c4009
    [ERR_REMAP (ENXIO)] = N_("No such device or address"),
Packit 6c4009
# if ENXIO > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENXIO
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef E2BIG
Packit 6c4009
/*
Packit 6c4009
TRANS Used when the arguments passed to a new program
Packit 6c4009
TRANS being executed with one of the @code{exec} functions (@pxref{Executing a
Packit 6c4009
TRANS File}) occupy too much memory space.  This condition never arises on
Packit 6c4009
TRANS @gnuhurdsystems{}. */
Packit 6c4009
    [ERR_REMAP (E2BIG)] = N_("Argument list too long"),
Packit 6c4009
# if E2BIG > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX E2BIG
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOEXEC
Packit 6c4009
/*
Packit 6c4009
TRANS Invalid executable file format.  This condition is detected by the
Packit 6c4009
TRANS @code{exec} functions; see @ref{Executing a File}. */
Packit 6c4009
    [ERR_REMAP (ENOEXEC)] = N_("Exec format error"),
Packit 6c4009
# if ENOEXEC > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOEXEC
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EBADF
Packit 6c4009
/*
Packit 6c4009
TRANS For example, I/O on a descriptor that has been
Packit 6c4009
TRANS closed or reading from a descriptor open only for writing (or vice
Packit 6c4009
TRANS versa). */
Packit 6c4009
    [ERR_REMAP (EBADF)] = N_("Bad file descriptor"),
Packit 6c4009
# if EBADF > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EBADF
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ECHILD
Packit 6c4009
/*
Packit 6c4009
TRANS This error happens on operations that are
Packit 6c4009
TRANS supposed to manipulate child processes, when there aren't any processes
Packit 6c4009
TRANS to manipulate. */
Packit 6c4009
    [ERR_REMAP (ECHILD)] = N_("No child processes"),
Packit 6c4009
# if ECHILD > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ECHILD
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EDEADLK
Packit 6c4009
/*
Packit 6c4009
TRANS Allocating a system resource would have resulted in a
Packit 6c4009
TRANS deadlock situation.  The system does not guarantee that it will notice
Packit 6c4009
TRANS all such situations.  This error means you got lucky and the system
Packit 6c4009
TRANS noticed; it might just hang.  @xref{File Locks}, for an example. */
Packit 6c4009
    [ERR_REMAP (EDEADLK)] = N_("Resource deadlock avoided"),
Packit 6c4009
# if EDEADLK > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EDEADLK
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOMEM
Packit 6c4009
/*
Packit 6c4009
TRANS The system cannot allocate more virtual memory
Packit 6c4009
TRANS because its capacity is full. */
Packit 6c4009
    [ERR_REMAP (ENOMEM)] = N_("Cannot allocate memory"),
Packit 6c4009
# if ENOMEM > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOMEM
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EACCES
Packit 6c4009
/*
Packit 6c4009
TRANS The file permissions do not allow the attempted operation. */
Packit 6c4009
    [ERR_REMAP (EACCES)] = N_("Permission denied"),
Packit 6c4009
# if EACCES > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EACCES
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EFAULT
Packit 6c4009
/*
Packit 6c4009
TRANS An invalid pointer was detected.
Packit 6c4009
TRANS On @gnuhurdsystems{}, this error never happens; you get a signal instead. */
Packit 6c4009
    [ERR_REMAP (EFAULT)] = N_("Bad address"),
Packit 6c4009
# if EFAULT > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EFAULT
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOTBLK
Packit 6c4009
/*
Packit 6c4009
TRANS A file that isn't a block special file was given in a situation that
Packit 6c4009
TRANS requires one.  For example, trying to mount an ordinary file as a file
Packit 6c4009
TRANS system in Unix gives this error. */
Packit 6c4009
    [ERR_REMAP (ENOTBLK)] = N_("Block device required"),
Packit 6c4009
# if ENOTBLK > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOTBLK
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EBUSY
Packit 6c4009
/*
Packit 6c4009
TRANS A system resource that can't be shared is already in use.
Packit 6c4009
TRANS For example, if you try to delete a file that is the root of a currently
Packit 6c4009
TRANS mounted filesystem, you get this error. */
Packit 6c4009
    [ERR_REMAP (EBUSY)] = N_("Device or resource busy"),
Packit 6c4009
# if EBUSY > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EBUSY
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EEXIST
Packit 6c4009
/*
Packit 6c4009
TRANS An existing file was specified in a context where it only
Packit 6c4009
TRANS makes sense to specify a new file. */
Packit 6c4009
    [ERR_REMAP (EEXIST)] = N_("File exists"),
Packit 6c4009
# if EEXIST > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EEXIST
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EXDEV
Packit 6c4009
/*
Packit 6c4009
TRANS An attempt to make an improper link across file systems was detected.
Packit 6c4009
TRANS This happens not only when you use @code{link} (@pxref{Hard Links}) but
Packit 6c4009
TRANS also when you rename a file with @code{rename} (@pxref{Renaming Files}). */
Packit 6c4009
    [ERR_REMAP (EXDEV)] = N_("Invalid cross-device link"),
Packit 6c4009
# if EXDEV > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EXDEV
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENODEV
Packit 6c4009
/*
Packit 6c4009
TRANS The wrong type of device was given to a function that expects a
Packit 6c4009
TRANS particular sort of device. */
Packit 6c4009
    [ERR_REMAP (ENODEV)] = N_("No such device"),
Packit 6c4009
# if ENODEV > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENODEV
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOTDIR
Packit 6c4009
/*
Packit 6c4009
TRANS A file that isn't a directory was specified when a directory is required. */
Packit 6c4009
    [ERR_REMAP (ENOTDIR)] = N_("Not a directory"),
Packit 6c4009
# if ENOTDIR > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOTDIR
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EISDIR
Packit 6c4009
/*
Packit 6c4009
TRANS You cannot open a directory for writing,
Packit 6c4009
TRANS or create or remove hard links to it. */
Packit 6c4009
    [ERR_REMAP (EISDIR)] = N_("Is a directory"),
Packit 6c4009
# if EISDIR > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EISDIR
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EINVAL
Packit 6c4009
/*
Packit 6c4009
TRANS This is used to indicate various kinds of problems
Packit 6c4009
TRANS with passing the wrong argument to a library function. */
Packit 6c4009
    [ERR_REMAP (EINVAL)] = N_("Invalid argument"),
Packit 6c4009
# if EINVAL > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EINVAL
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EMFILE
Packit 6c4009
/*
Packit 6c4009
TRANS The current process has too many files open and can't open any more.
Packit 6c4009
TRANS Duplicate descriptors do count toward this limit.
Packit 6c4009
TRANS
Packit 6c4009
TRANS In BSD and GNU, the number of open files is controlled by a resource
Packit 6c4009
TRANS limit that can usually be increased.  If you get this error, you might
Packit 6c4009
TRANS want to increase the @code{RLIMIT_NOFILE} limit or make it unlimited;
Packit 6c4009
TRANS @pxref{Limits on Resources}. */
Packit 6c4009
    [ERR_REMAP (EMFILE)] = N_("Too many open files"),
Packit 6c4009
# if EMFILE > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EMFILE
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENFILE
Packit 6c4009
/*
Packit 6c4009
TRANS There are too many distinct file openings in the entire system.  Note
Packit 6c4009
TRANS that any number of linked channels count as just one file opening; see
Packit 6c4009
TRANS @ref{Linked Channels}.  This error never occurs on @gnuhurdsystems{}. */
Packit 6c4009
    [ERR_REMAP (ENFILE)] = N_("Too many open files in system"),
Packit 6c4009
# if ENFILE > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENFILE
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOTTY
Packit 6c4009
/*
Packit 6c4009
TRANS Inappropriate I/O control operation, such as trying to set terminal
Packit 6c4009
TRANS modes on an ordinary file. */
Packit 6c4009
    [ERR_REMAP (ENOTTY)] = N_("Inappropriate ioctl for device"),
Packit 6c4009
# if ENOTTY > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOTTY
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ETXTBSY
Packit 6c4009
/*
Packit 6c4009
TRANS An attempt to execute a file that is currently open for writing, or
Packit 6c4009
TRANS write to a file that is currently being executed.  Often using a
Packit 6c4009
TRANS debugger to run a program is considered having it open for writing and
Packit 6c4009
TRANS will cause this error.  (The name stands for ``text file busy''.)  This
Packit 6c4009
TRANS is not an error on @gnuhurdsystems{}; the text is copied as necessary. */
Packit 6c4009
    [ERR_REMAP (ETXTBSY)] = N_("Text file busy"),
Packit 6c4009
# if ETXTBSY > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ETXTBSY
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EFBIG
Packit 6c4009
/*
Packit 6c4009
TRANS The size of a file would be larger than allowed by the system. */
Packit 6c4009
    [ERR_REMAP (EFBIG)] = N_("File too large"),
Packit 6c4009
# if EFBIG > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EFBIG
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOSPC
Packit 6c4009
/*
Packit 6c4009
TRANS Write operation on a file failed because the
Packit 6c4009
TRANS disk is full. */
Packit 6c4009
    [ERR_REMAP (ENOSPC)] = N_("No space left on device"),
Packit 6c4009
# if ENOSPC > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOSPC
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ESPIPE
Packit 6c4009
/*
Packit 6c4009
TRANS Invalid seek operation (such as on a pipe). */
Packit 6c4009
    [ERR_REMAP (ESPIPE)] = N_("Illegal seek"),
Packit 6c4009
# if ESPIPE > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ESPIPE
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EROFS
Packit 6c4009
/*
Packit 6c4009
TRANS An attempt was made to modify something on a read-only file system. */
Packit 6c4009
    [ERR_REMAP (EROFS)] = N_("Read-only file system"),
Packit 6c4009
# if EROFS > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EROFS
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EMLINK
Packit 6c4009
/*
Packit 6c4009
TRANS The link count of a single file would become too large.
Packit 6c4009
TRANS @code{rename} can cause this error if the file being renamed already has
Packit 6c4009
TRANS as many links as it can take (@pxref{Renaming Files}). */
Packit 6c4009
    [ERR_REMAP (EMLINK)] = N_("Too many links"),
Packit 6c4009
# if EMLINK > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EMLINK
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EPIPE
Packit 6c4009
/*
Packit 6c4009
TRANS There is no process reading from the other end of a pipe.
Packit 6c4009
TRANS Every library function that returns this error code also generates a
Packit 6c4009
TRANS @code{SIGPIPE} signal; this signal terminates the program if not handled
Packit 6c4009
TRANS or blocked.  Thus, your program will never actually see @code{EPIPE}
Packit 6c4009
TRANS unless it has handled or blocked @code{SIGPIPE}. */
Packit 6c4009
    [ERR_REMAP (EPIPE)] = N_("Broken pipe"),
Packit 6c4009
# if EPIPE > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EPIPE
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EDOM
Packit 6c4009
/*
Packit 6c4009
TRANS Used by mathematical functions when an argument value does
Packit 6c4009
TRANS not fall into the domain over which the function is defined. */
Packit 6c4009
    [ERR_REMAP (EDOM)] = N_("Numerical argument out of domain"),
Packit 6c4009
# if EDOM > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EDOM
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ERANGE
Packit 6c4009
/*
Packit 6c4009
TRANS Used by mathematical functions when the result value is
Packit 6c4009
TRANS not representable because of overflow or underflow. */
Packit 6c4009
    [ERR_REMAP (ERANGE)] = N_("Numerical result out of range"),
Packit 6c4009
# if ERANGE > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ERANGE
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EAGAIN
Packit 6c4009
/*
Packit 6c4009
TRANS The call might work if you try again
Packit 6c4009
TRANS later.  The macro @code{EWOULDBLOCK} is another name for @code{EAGAIN};
Packit 6c4009
TRANS they are always the same in @theglibc{}.
Packit 6c4009
TRANS
Packit 6c4009
TRANS This error can happen in a few different situations:
Packit 6c4009
TRANS
Packit 6c4009
TRANS @itemize @bullet
Packit 6c4009
TRANS @item
Packit 6c4009
TRANS An operation that would block was attempted on an object that has
Packit 6c4009
TRANS non-blocking mode selected.  Trying the same operation again will block
Packit 6c4009
TRANS until some external condition makes it possible to read, write, or
Packit 6c4009
TRANS connect (whatever the operation).  You can use @code{select} to find out
Packit 6c4009
TRANS when the operation will be possible; @pxref{Waiting for I/O}.
Packit 6c4009
TRANS
Packit 6c4009
TRANS @strong{Portability Note:} In many older Unix systems, this condition
Packit 6c4009
TRANS was indicated by @code{EWOULDBLOCK}, which was a distinct error code
Packit 6c4009
TRANS different from @code{EAGAIN}.  To make your program portable, you should
Packit 6c4009
TRANS check for both codes and treat them the same.
Packit 6c4009
TRANS
Packit 6c4009
TRANS @item
Packit 6c4009
TRANS A temporary resource shortage made an operation impossible.  @code{fork}
Packit 6c4009
TRANS can return this error.  It indicates that the shortage is expected to
Packit 6c4009
TRANS pass, so your program can try the call again later and it may succeed.
Packit 6c4009
TRANS It is probably a good idea to delay for a few seconds before trying it
Packit 6c4009
TRANS again, to allow time for other processes to release scarce resources.
Packit 6c4009
TRANS Such shortages are usually fairly serious and affect the whole system,
Packit 6c4009
TRANS so usually an interactive program should report the error to the user
Packit 6c4009
TRANS and return to its command loop.
Packit 6c4009
TRANS @end itemize */
Packit 6c4009
    [ERR_REMAP (EAGAIN)] = N_("Resource temporarily unavailable"),
Packit 6c4009
# if EAGAIN > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EAGAIN
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#if defined (EWOULDBLOCK) && EWOULDBLOCK != EAGAIN
Packit 6c4009
/*
Packit 6c4009
TRANS In @theglibc{}, this is another name for @code{EAGAIN} (above).
Packit 6c4009
TRANS The values are always the same, on every operating system.
Packit 6c4009
TRANS
Packit 6c4009
TRANS C libraries in many older Unix systems have @code{EWOULDBLOCK} as a
Packit 6c4009
TRANS separate error code. */
Packit 6c4009
    [ERR_REMAP (EWOULDBLOCK)] = N_("Operation would block"),
Packit 6c4009
# if EWOULDBLOCK > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EWOULDBLOCK
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EINPROGRESS
Packit 6c4009
/*
Packit 6c4009
TRANS An operation that cannot complete immediately was initiated on an object
Packit 6c4009
TRANS that has non-blocking mode selected.  Some functions that must always
Packit 6c4009
TRANS block (such as @code{connect}; @pxref{Connecting}) never return
Packit 6c4009
TRANS @code{EAGAIN}.  Instead, they return @code{EINPROGRESS} to indicate that
Packit 6c4009
TRANS the operation has begun and will take some time.  Attempts to manipulate
Packit 6c4009
TRANS the object before the call completes return @code{EALREADY}.  You can
Packit 6c4009
TRANS use the @code{select} function to find out when the pending operation
Packit 6c4009
TRANS has completed; @pxref{Waiting for I/O}. */
Packit 6c4009
    [ERR_REMAP (EINPROGRESS)] = N_("Operation now in progress"),
Packit 6c4009
# if EINPROGRESS > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EINPROGRESS
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EALREADY
Packit 6c4009
/*
Packit 6c4009
TRANS An operation is already in progress on an object that has non-blocking
Packit 6c4009
TRANS mode selected. */
Packit 6c4009
    [ERR_REMAP (EALREADY)] = N_("Operation already in progress"),
Packit 6c4009
# if EALREADY > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EALREADY
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOTSOCK
Packit 6c4009
/*
Packit 6c4009
TRANS A file that isn't a socket was specified when a socket is required. */
Packit 6c4009
    [ERR_REMAP (ENOTSOCK)] = N_("Socket operation on non-socket"),
Packit 6c4009
# if ENOTSOCK > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOTSOCK
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EMSGSIZE
Packit 6c4009
/*
Packit 6c4009
TRANS The size of a message sent on a socket was larger than the supported
Packit 6c4009
TRANS maximum size. */
Packit 6c4009
    [ERR_REMAP (EMSGSIZE)] = N_("Message too long"),
Packit 6c4009
# if EMSGSIZE > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EMSGSIZE
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EPROTOTYPE
Packit 6c4009
/*
Packit 6c4009
TRANS The socket type does not support the requested communications protocol. */
Packit 6c4009
    [ERR_REMAP (EPROTOTYPE)] = N_("Protocol wrong type for socket"),
Packit 6c4009
# if EPROTOTYPE > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EPROTOTYPE
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOPROTOOPT
Packit 6c4009
/*
Packit 6c4009
TRANS You specified a socket option that doesn't make sense for the
Packit 6c4009
TRANS particular protocol being used by the socket.  @xref{Socket Options}. */
Packit 6c4009
    [ERR_REMAP (ENOPROTOOPT)] = N_("Protocol not available"),
Packit 6c4009
# if ENOPROTOOPT > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOPROTOOPT
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EPROTONOSUPPORT
Packit 6c4009
/*
Packit 6c4009
TRANS The socket domain does not support the requested communications protocol
Packit 6c4009
TRANS (perhaps because the requested protocol is completely invalid).
Packit 6c4009
TRANS @xref{Creating a Socket}. */
Packit 6c4009
    [ERR_REMAP (EPROTONOSUPPORT)] = N_("Protocol not supported"),
Packit 6c4009
# if EPROTONOSUPPORT > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EPROTONOSUPPORT
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ESOCKTNOSUPPORT
Packit 6c4009
/*
Packit 6c4009
TRANS The socket type is not supported. */
Packit 6c4009
    [ERR_REMAP (ESOCKTNOSUPPORT)] = N_("Socket type not supported"),
Packit 6c4009
# if ESOCKTNOSUPPORT > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ESOCKTNOSUPPORT
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EOPNOTSUPP
Packit 6c4009
/*
Packit 6c4009
TRANS The operation you requested is not supported.  Some socket functions
Packit 6c4009
TRANS don't make sense for all types of sockets, and others may not be
Packit 6c4009
TRANS implemented for all communications protocols.  On @gnuhurdsystems{}, this
Packit 6c4009
TRANS error can happen for many calls when the object does not support the
Packit 6c4009
TRANS particular operation; it is a generic indication that the server knows
Packit 6c4009
TRANS nothing to do for that call. */
Packit 6c4009
    [ERR_REMAP (EOPNOTSUPP)] = N_("Operation not supported"),
Packit 6c4009
# if EOPNOTSUPP > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EOPNOTSUPP
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EPFNOSUPPORT
Packit 6c4009
/*
Packit 6c4009
TRANS The socket communications protocol family you requested is not supported. */
Packit 6c4009
    [ERR_REMAP (EPFNOSUPPORT)] = N_("Protocol family not supported"),
Packit 6c4009
# if EPFNOSUPPORT > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EPFNOSUPPORT
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EAFNOSUPPORT
Packit 6c4009
/*
Packit 6c4009
TRANS The address family specified for a socket is not supported; it is
Packit 6c4009
TRANS inconsistent with the protocol being used on the socket.  @xref{Sockets}. */
Packit 6c4009
    [ERR_REMAP (EAFNOSUPPORT)] = N_("Address family not supported by protocol"),
Packit 6c4009
# if EAFNOSUPPORT > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EAFNOSUPPORT
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EADDRINUSE
Packit 6c4009
/*
Packit 6c4009
TRANS The requested socket address is already in use.  @xref{Socket Addresses}. */
Packit 6c4009
    [ERR_REMAP (EADDRINUSE)] = N_("Address already in use"),
Packit 6c4009
# if EADDRINUSE > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EADDRINUSE
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EADDRNOTAVAIL
Packit 6c4009
/*
Packit 6c4009
TRANS The requested socket address is not available; for example, you tried
Packit 6c4009
TRANS to give a socket a name that doesn't match the local host name.
Packit 6c4009
TRANS @xref{Socket Addresses}. */
Packit 6c4009
    [ERR_REMAP (EADDRNOTAVAIL)] = N_("Cannot assign requested address"),
Packit 6c4009
# if EADDRNOTAVAIL > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EADDRNOTAVAIL
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENETDOWN
Packit 6c4009
/*
Packit 6c4009
TRANS A socket operation failed because the network was down. */
Packit 6c4009
    [ERR_REMAP (ENETDOWN)] = N_("Network is down"),
Packit 6c4009
# if ENETDOWN > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENETDOWN
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENETUNREACH
Packit 6c4009
/*
Packit 6c4009
TRANS A socket operation failed because the subnet containing the remote host
Packit 6c4009
TRANS was unreachable. */
Packit 6c4009
    [ERR_REMAP (ENETUNREACH)] = N_("Network is unreachable"),
Packit 6c4009
# if ENETUNREACH > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENETUNREACH
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENETRESET
Packit 6c4009
/*
Packit 6c4009
TRANS A network connection was reset because the remote host crashed. */
Packit 6c4009
    [ERR_REMAP (ENETRESET)] = N_("Network dropped connection on reset"),
Packit 6c4009
# if ENETRESET > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENETRESET
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ECONNABORTED
Packit 6c4009
/*
Packit 6c4009
TRANS A network connection was aborted locally. */
Packit 6c4009
    [ERR_REMAP (ECONNABORTED)] = N_("Software caused connection abort"),
Packit 6c4009
# if ECONNABORTED > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ECONNABORTED
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ECONNRESET
Packit 6c4009
/*
Packit 6c4009
TRANS A network connection was closed for reasons outside the control of the
Packit 6c4009
TRANS local host, such as by the remote machine rebooting or an unrecoverable
Packit 6c4009
TRANS protocol violation. */
Packit 6c4009
    [ERR_REMAP (ECONNRESET)] = N_("Connection reset by peer"),
Packit 6c4009
# if ECONNRESET > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ECONNRESET
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOBUFS
Packit 6c4009
/*
Packit 6c4009
TRANS The kernel's buffers for I/O operations are all in use.  In GNU, this
Packit 6c4009
TRANS error is always synonymous with @code{ENOMEM}; you may get one or the
Packit 6c4009
TRANS other from network operations. */
Packit 6c4009
    [ERR_REMAP (ENOBUFS)] = N_("No buffer space available"),
Packit 6c4009
# if ENOBUFS > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOBUFS
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EISCONN
Packit 6c4009
/*
Packit 6c4009
TRANS You tried to connect a socket that is already connected.
Packit 6c4009
TRANS @xref{Connecting}. */
Packit 6c4009
    [ERR_REMAP (EISCONN)] = N_("Transport endpoint is already connected"),
Packit 6c4009
# if EISCONN > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EISCONN
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOTCONN
Packit 6c4009
/*
Packit 6c4009
TRANS The socket is not connected to anything.  You get this error when you
Packit 6c4009
TRANS try to transmit data over a socket, without first specifying a
Packit 6c4009
TRANS destination for the data.  For a connectionless socket (for datagram
Packit 6c4009
TRANS protocols, such as UDP), you get @code{EDESTADDRREQ} instead. */
Packit 6c4009
    [ERR_REMAP (ENOTCONN)] = N_("Transport endpoint is not connected"),
Packit 6c4009
# if ENOTCONN > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOTCONN
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EDESTADDRREQ
Packit 6c4009
/*
Packit 6c4009
TRANS No default destination address was set for the socket.  You get this
Packit 6c4009
TRANS error when you try to transmit data over a connectionless socket,
Packit 6c4009
TRANS without first specifying a destination for the data with @code{connect}. */
Packit 6c4009
    [ERR_REMAP (EDESTADDRREQ)] = N_("Destination address required"),
Packit 6c4009
# if EDESTADDRREQ > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EDESTADDRREQ
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ESHUTDOWN
Packit 6c4009
/*
Packit 6c4009
TRANS The socket has already been shut down. */
Packit 6c4009
    [ERR_REMAP (ESHUTDOWN)] = N_("Cannot send after transport endpoint shutdown"),
Packit 6c4009
# if ESHUTDOWN > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ESHUTDOWN
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ETOOMANYREFS
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ETOOMANYREFS)] = N_("Too many references: cannot splice"),
Packit 6c4009
# if ETOOMANYREFS > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ETOOMANYREFS
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ETIMEDOUT
Packit 6c4009
/*
Packit 6c4009
TRANS A socket operation with a specified timeout received no response during
Packit 6c4009
TRANS the timeout period. */
Packit 6c4009
    [ERR_REMAP (ETIMEDOUT)] = N_("Connection timed out"),
Packit 6c4009
# if ETIMEDOUT > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ETIMEDOUT
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ECONNREFUSED
Packit 6c4009
/*
Packit 6c4009
TRANS A remote host refused to allow the network connection (typically because
Packit 6c4009
TRANS it is not running the requested service). */
Packit 6c4009
    [ERR_REMAP (ECONNREFUSED)] = N_("Connection refused"),
Packit 6c4009
# if ECONNREFUSED > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ECONNREFUSED
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ELOOP
Packit 6c4009
/*
Packit 6c4009
TRANS Too many levels of symbolic links were encountered in looking up a file name.
Packit 6c4009
TRANS This often indicates a cycle of symbolic links. */
Packit 6c4009
    [ERR_REMAP (ELOOP)] = N_("Too many levels of symbolic links"),
Packit 6c4009
# if ELOOP > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ELOOP
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENAMETOOLONG
Packit 6c4009
/*
Packit 6c4009
TRANS Filename too long (longer than @code{PATH_MAX}; @pxref{Limits for
Packit 6c4009
TRANS Files}) or host name too long (in @code{gethostname} or
Packit 6c4009
TRANS @code{sethostname}; @pxref{Host Identification}). */
Packit 6c4009
    [ERR_REMAP (ENAMETOOLONG)] = N_("File name too long"),
Packit 6c4009
# if ENAMETOOLONG > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENAMETOOLONG
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EHOSTDOWN
Packit 6c4009
/*
Packit 6c4009
TRANS The remote host for a requested network connection is down. */
Packit 6c4009
    [ERR_REMAP (EHOSTDOWN)] = N_("Host is down"),
Packit 6c4009
# if EHOSTDOWN > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EHOSTDOWN
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EHOSTUNREACH
Packit 6c4009
/*
Packit 6c4009
TRANS The remote host for a requested network connection is not reachable. */
Packit 6c4009
    [ERR_REMAP (EHOSTUNREACH)] = N_("No route to host"),
Packit 6c4009
# if EHOSTUNREACH > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EHOSTUNREACH
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOTEMPTY
Packit 6c4009
/*
Packit 6c4009
TRANS Directory not empty, where an empty directory was expected.  Typically,
Packit 6c4009
TRANS this error occurs when you are trying to delete a directory. */
Packit 6c4009
    [ERR_REMAP (ENOTEMPTY)] = N_("Directory not empty"),
Packit 6c4009
# if ENOTEMPTY > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOTEMPTY
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EPROCLIM
Packit 6c4009
/*
Packit 6c4009
TRANS This means that the per-user limit on new process would be exceeded by
Packit 6c4009
TRANS an attempted @code{fork}.  @xref{Limits on Resources}, for details on
Packit 6c4009
TRANS the @code{RLIMIT_NPROC} limit. */
Packit 6c4009
    [ERR_REMAP (EPROCLIM)] = N_("Too many processes"),
Packit 6c4009
# if EPROCLIM > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EPROCLIM
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EUSERS
Packit 6c4009
/*
Packit 6c4009
TRANS The file quota system is confused because there are too many users.
Packit 6c4009
TRANS @c This can probably happen in a GNU system when using NFS. */
Packit 6c4009
    [ERR_REMAP (EUSERS)] = N_("Too many users"),
Packit 6c4009
# if EUSERS > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EUSERS
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EDQUOT
Packit 6c4009
/*
Packit 6c4009
TRANS The user's disk quota was exceeded. */
Packit 6c4009
    [ERR_REMAP (EDQUOT)] = N_("Disk quota exceeded"),
Packit 6c4009
# if EDQUOT > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EDQUOT
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ESTALE
Packit 6c4009
/*
Packit 6c4009
TRANS This indicates an internal confusion in the
Packit 6c4009
TRANS file system which is due to file system rearrangements on the server host
Packit 6c4009
TRANS for NFS file systems or corruption in other file systems.
Packit 6c4009
TRANS Repairing this condition usually requires unmounting, possibly repairing
Packit 6c4009
TRANS and remounting the file system. */
Packit 6c4009
    [ERR_REMAP (ESTALE)] = N_("Stale file handle"),
Packit 6c4009
# if ESTALE > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ESTALE
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EREMOTE
Packit 6c4009
/*
Packit 6c4009
TRANS An attempt was made to NFS-mount a remote file system with a file name that
Packit 6c4009
TRANS already specifies an NFS-mounted file.
Packit 6c4009
TRANS (This is an error on some operating systems, but we expect it to work
Packit 6c4009
TRANS properly on @gnuhurdsystems{}, making this error code impossible.) */
Packit 6c4009
    [ERR_REMAP (EREMOTE)] = N_("Object is remote"),
Packit 6c4009
# if EREMOTE > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EREMOTE
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EBADRPC
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EBADRPC)] = N_("RPC struct is bad"),
Packit 6c4009
# if EBADRPC > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EBADRPC
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ERPCMISMATCH
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ERPCMISMATCH)] = N_("RPC version wrong"),
Packit 6c4009
# if ERPCMISMATCH > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ERPCMISMATCH
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EPROGUNAVAIL
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EPROGUNAVAIL)] = N_("RPC program not available"),
Packit 6c4009
# if EPROGUNAVAIL > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EPROGUNAVAIL
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EPROGMISMATCH
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EPROGMISMATCH)] = N_("RPC program version wrong"),
Packit 6c4009
# if EPROGMISMATCH > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EPROGMISMATCH
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EPROCUNAVAIL
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EPROCUNAVAIL)] = N_("RPC bad procedure for program"),
Packit 6c4009
# if EPROCUNAVAIL > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EPROCUNAVAIL
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOLCK
Packit 6c4009
/*
Packit 6c4009
TRANS This is used by the file locking facilities; see
Packit 6c4009
TRANS @ref{File Locks}.  This error is never generated by @gnuhurdsystems{}, but
Packit 6c4009
TRANS it can result from an operation to an NFS server running another
Packit 6c4009
TRANS operating system. */
Packit 6c4009
    [ERR_REMAP (ENOLCK)] = N_("No locks available"),
Packit 6c4009
# if ENOLCK > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOLCK
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EFTYPE
Packit 6c4009
/*
Packit 6c4009
TRANS The file was the wrong type for the
Packit 6c4009
TRANS operation, or a data file had the wrong format.
Packit 6c4009
TRANS
Packit 6c4009
TRANS On some systems @code{chmod} returns this error if you try to set the
Packit 6c4009
TRANS sticky bit on a non-directory file; @pxref{Setting Permissions}. */
Packit 6c4009
    [ERR_REMAP (EFTYPE)] = N_("Inappropriate file type or format"),
Packit 6c4009
# if EFTYPE > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EFTYPE
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EAUTH
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EAUTH)] = N_("Authentication error"),
Packit 6c4009
# if EAUTH > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EAUTH
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENEEDAUTH
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ENEEDAUTH)] = N_("Need authenticator"),
Packit 6c4009
# if ENEEDAUTH > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENEEDAUTH
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOSYS
Packit 6c4009
/*
Packit 6c4009
TRANS This indicates that the function called is
Packit 6c4009
TRANS not implemented at all, either in the C library itself or in the
Packit 6c4009
TRANS operating system.  When you get this error, you can be sure that this
Packit 6c4009
TRANS particular function will always fail with @code{ENOSYS} unless you
Packit 6c4009
TRANS install a new version of the C library or the operating system. */
Packit 6c4009
    [ERR_REMAP (ENOSYS)] = N_("Function not implemented"),
Packit 6c4009
# if ENOSYS > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOSYS
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#if defined (ENOTSUP) && ENOTSUP != EOPNOTSUPP
Packit 6c4009
/*
Packit 6c4009
TRANS A function returns this error when certain parameter
Packit 6c4009
TRANS values are valid, but the functionality they request is not available.
Packit 6c4009
TRANS This can mean that the function does not implement a particular command
Packit 6c4009
TRANS or option value or flag bit at all.  For functions that operate on some
Packit 6c4009
TRANS object given in a parameter, such as a file descriptor or a port, it
Packit 6c4009
TRANS might instead mean that only @emph{that specific object} (file
Packit 6c4009
TRANS descriptor, port, etc.) is unable to support the other parameters given;
Packit 6c4009
TRANS different file descriptors might support different ranges of parameter
Packit 6c4009
TRANS values.
Packit 6c4009
TRANS
Packit 6c4009
TRANS If the entire function is not available at all in the implementation,
Packit 6c4009
TRANS it returns @code{ENOSYS} instead. */
Packit 6c4009
    [ERR_REMAP (ENOTSUP)] = N_("Not supported"),
Packit 6c4009
# if ENOTSUP > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOTSUP
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EILSEQ
Packit 6c4009
/*
Packit 6c4009
TRANS While decoding a multibyte character the function came along an invalid
Packit 6c4009
TRANS or an incomplete sequence of bytes or the given wide character is invalid. */
Packit 6c4009
    [ERR_REMAP (EILSEQ)] = N_("Invalid or incomplete multibyte or wide character"),
Packit 6c4009
# if EILSEQ > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EILSEQ
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EBACKGROUND
Packit 6c4009
/*
Packit 6c4009
TRANS On @gnuhurdsystems{}, servers supporting the @code{term} protocol return
Packit 6c4009
TRANS this error for certain operations when the caller is not in the
Packit 6c4009
TRANS foreground process group of the terminal.  Users do not usually see this
Packit 6c4009
TRANS error because functions such as @code{read} and @code{write} translate
Packit 6c4009
TRANS it into a @code{SIGTTIN} or @code{SIGTTOU} signal.  @xref{Job Control},
Packit 6c4009
TRANS for information on process groups and these signals. */
Packit 6c4009
    [ERR_REMAP (EBACKGROUND)] = N_("Inappropriate operation for background process"),
Packit 6c4009
# if EBACKGROUND > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EBACKGROUND
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EDIED
Packit 6c4009
/*
Packit 6c4009
TRANS On @gnuhurdsystems{}, opening a file returns this error when the file is
Packit 6c4009
TRANS translated by a program and the translator program dies while starting
Packit 6c4009
TRANS up, before it has connected to the file. */
Packit 6c4009
    [ERR_REMAP (EDIED)] = N_("Translator died"),
Packit 6c4009
# if EDIED > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EDIED
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ED
Packit 6c4009
/*
Packit 6c4009
TRANS The experienced user will know what is wrong.
Packit 6c4009
TRANS @c This error code is a joke.  Its perror text is part of the joke.
Packit 6c4009
TRANS @c Don't change it. */
Packit 6c4009
    [ERR_REMAP (ED)] = N_("?"),
Packit 6c4009
# if ED > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ED
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EGREGIOUS
Packit 6c4009
/*
Packit 6c4009
TRANS You did @strong{what}? */
Packit 6c4009
    [ERR_REMAP (EGREGIOUS)] = N_("You really blew it this time"),
Packit 6c4009
# if EGREGIOUS > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EGREGIOUS
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EIEIO
Packit 6c4009
/*
Packit 6c4009
TRANS Go home and have a glass of warm, dairy-fresh milk. */
Packit 6c4009
    [ERR_REMAP (EIEIO)] = N_("Computer bought the farm"),
Packit 6c4009
# if EIEIO > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EIEIO
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EGRATUITOUS
Packit 6c4009
/*
Packit 6c4009
TRANS This error code has no purpose. */
Packit 6c4009
    [ERR_REMAP (EGRATUITOUS)] = N_("Gratuitous error"),
Packit 6c4009
# if EGRATUITOUS > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EGRATUITOUS
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EBADMSG
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EBADMSG)] = N_("Bad message"),
Packit 6c4009
# if EBADMSG > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EBADMSG
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EIDRM
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EIDRM)] = N_("Identifier removed"),
Packit 6c4009
# if EIDRM > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EIDRM
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EMULTIHOP
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EMULTIHOP)] = N_("Multihop attempted"),
Packit 6c4009
# if EMULTIHOP > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EMULTIHOP
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENODATA
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ENODATA)] = N_("No data available"),
Packit 6c4009
# if ENODATA > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENODATA
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOLINK
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ENOLINK)] = N_("Link has been severed"),
Packit 6c4009
# if ENOLINK > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOLINK
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOMSG
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ENOMSG)] = N_("No message of desired type"),
Packit 6c4009
# if ENOMSG > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOMSG
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOSR
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ENOSR)] = N_("Out of streams resources"),
Packit 6c4009
# if ENOSR > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOSR
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOSTR
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ENOSTR)] = N_("Device not a stream"),
Packit 6c4009
# if ENOSTR > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOSTR
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EOVERFLOW
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EOVERFLOW)] = N_("Value too large for defined data type"),
Packit 6c4009
# if EOVERFLOW > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EOVERFLOW
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EPROTO
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EPROTO)] = N_("Protocol error"),
Packit 6c4009
# if EPROTO > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EPROTO
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ETIME
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ETIME)] = N_("Timer expired"),
Packit 6c4009
# if ETIME > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ETIME
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ECANCELED
Packit 6c4009
/*
Packit 6c4009
TRANS An asynchronous operation was canceled before it
Packit 6c4009
TRANS completed.  @xref{Asynchronous I/O}.  When you call @code{aio_cancel},
Packit 6c4009
TRANS the normal result is for the operations affected to complete with this
Packit 6c4009
TRANS error; @pxref{Cancel AIO Operations}. */
Packit 6c4009
    [ERR_REMAP (ECANCELED)] = N_("Operation canceled"),
Packit 6c4009
# if ECANCELED > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ECANCELED
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EOWNERDEAD
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EOWNERDEAD)] = N_("Owner died"),
Packit 6c4009
# if EOWNERDEAD > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EOWNERDEAD
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOTRECOVERABLE
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ENOTRECOVERABLE)] = N_("State not recoverable"),
Packit 6c4009
# if ENOTRECOVERABLE > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOTRECOVERABLE
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ERESTART
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ERESTART)] = N_("Interrupted system call should be restarted"),
Packit 6c4009
# if ERESTART > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ERESTART
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ECHRNG
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ECHRNG)] = N_("Channel number out of range"),
Packit 6c4009
# if ECHRNG > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ECHRNG
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EL2NSYNC
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EL2NSYNC)] = N_("Level 2 not synchronized"),
Packit 6c4009
# if EL2NSYNC > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EL2NSYNC
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EL3HLT
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EL3HLT)] = N_("Level 3 halted"),
Packit 6c4009
# if EL3HLT > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EL3HLT
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EL3RST
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EL3RST)] = N_("Level 3 reset"),
Packit 6c4009
# if EL3RST > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EL3RST
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ELNRNG
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ELNRNG)] = N_("Link number out of range"),
Packit 6c4009
# if ELNRNG > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ELNRNG
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EUNATCH
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EUNATCH)] = N_("Protocol driver not attached"),
Packit 6c4009
# if EUNATCH > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EUNATCH
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOCSI
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ENOCSI)] = N_("No CSI structure available"),
Packit 6c4009
# if ENOCSI > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOCSI
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EL2HLT
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EL2HLT)] = N_("Level 2 halted"),
Packit 6c4009
# if EL2HLT > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EL2HLT
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EBADE
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EBADE)] = N_("Invalid exchange"),
Packit 6c4009
# if EBADE > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EBADE
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EBADR
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EBADR)] = N_("Invalid request descriptor"),
Packit 6c4009
# if EBADR > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EBADR
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EXFULL
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EXFULL)] = N_("Exchange full"),
Packit 6c4009
# if EXFULL > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EXFULL
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOANO
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ENOANO)] = N_("No anode"),
Packit 6c4009
# if ENOANO > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOANO
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EBADRQC
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EBADRQC)] = N_("Invalid request code"),
Packit 6c4009
# if EBADRQC > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EBADRQC
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EBADSLT
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EBADSLT)] = N_("Invalid slot"),
Packit 6c4009
# if EBADSLT > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EBADSLT
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#if defined (EDEADLOCK) && EDEADLOCK != EDEADLK
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EDEADLOCK)] = N_("File locking deadlock error"),
Packit 6c4009
# if EDEADLOCK > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EDEADLOCK
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EBFONT
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EBFONT)] = N_("Bad font file format"),
Packit 6c4009
# if EBFONT > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EBFONT
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENONET
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ENONET)] = N_("Machine is not on the network"),
Packit 6c4009
# if ENONET > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENONET
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOPKG
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ENOPKG)] = N_("Package not installed"),
Packit 6c4009
# if ENOPKG > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOPKG
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EADV
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EADV)] = N_("Advertise error"),
Packit 6c4009
# if EADV > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EADV
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ESRMNT
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ESRMNT)] = N_("Srmount error"),
Packit 6c4009
# if ESRMNT > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ESRMNT
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ECOMM
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ECOMM)] = N_("Communication error on send"),
Packit 6c4009
# if ECOMM > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ECOMM
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EDOTDOT
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EDOTDOT)] = N_("RFS specific error"),
Packit 6c4009
# if EDOTDOT > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EDOTDOT
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOTUNIQ
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ENOTUNIQ)] = N_("Name not unique on network"),
Packit 6c4009
# if ENOTUNIQ > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOTUNIQ
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EBADFD
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EBADFD)] = N_("File descriptor in bad state"),
Packit 6c4009
# if EBADFD > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EBADFD
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EREMCHG
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EREMCHG)] = N_("Remote address changed"),
Packit 6c4009
# if EREMCHG > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EREMCHG
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ELIBACC
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ELIBACC)] = N_("Can not access a needed shared library"),
Packit 6c4009
# if ELIBACC > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ELIBACC
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ELIBBAD
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ELIBBAD)] = N_("Accessing a corrupted shared library"),
Packit 6c4009
# if ELIBBAD > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ELIBBAD
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ELIBSCN
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ELIBSCN)] = N_(".lib section in a.out corrupted"),
Packit 6c4009
# if ELIBSCN > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ELIBSCN
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ELIBMAX
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ELIBMAX)] = N_("Attempting to link in too many shared libraries"),
Packit 6c4009
# if ELIBMAX > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ELIBMAX
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ELIBEXEC
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ELIBEXEC)] = N_("Cannot exec a shared library directly"),
Packit 6c4009
# if ELIBEXEC > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ELIBEXEC
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ESTRPIPE
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ESTRPIPE)] = N_("Streams pipe error"),
Packit 6c4009
# if ESTRPIPE > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ESTRPIPE
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EUCLEAN
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EUCLEAN)] = N_("Structure needs cleaning"),
Packit 6c4009
# if EUCLEAN > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EUCLEAN
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOTNAM
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ENOTNAM)] = N_("Not a XENIX named type file"),
Packit 6c4009
# if ENOTNAM > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOTNAM
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENAVAIL
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ENAVAIL)] = N_("No XENIX semaphores available"),
Packit 6c4009
# if ENAVAIL > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENAVAIL
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EISNAM
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EISNAM)] = N_("Is a named type file"),
Packit 6c4009
# if EISNAM > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EISNAM
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EREMOTEIO
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EREMOTEIO)] = N_("Remote I/O error"),
Packit 6c4009
# if EREMOTEIO > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EREMOTEIO
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOMEDIUM
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ENOMEDIUM)] = N_("No medium found"),
Packit 6c4009
# if ENOMEDIUM > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOMEDIUM
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EMEDIUMTYPE
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EMEDIUMTYPE)] = N_("Wrong medium type"),
Packit 6c4009
# if EMEDIUMTYPE > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EMEDIUMTYPE
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ENOKEY
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ENOKEY)] = N_("Required key not available"),
Packit 6c4009
# if ENOKEY > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ENOKEY
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EKEYEXPIRED
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EKEYEXPIRED)] = N_("Key has expired"),
Packit 6c4009
# if EKEYEXPIRED > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EKEYEXPIRED
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EKEYREVOKED
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EKEYREVOKED)] = N_("Key has been revoked"),
Packit 6c4009
# if EKEYREVOKED > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EKEYREVOKED
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EKEYREJECTED
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EKEYREJECTED)] = N_("Key was rejected by service"),
Packit 6c4009
# if EKEYREJECTED > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EKEYREJECTED
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef ERFKILL
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (ERFKILL)] = N_("Operation not possible due to RF-kill"),
Packit 6c4009
# if ERFKILL > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX ERFKILL
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
#ifdef EHWPOISON
Packit 6c4009
/* */
Packit 6c4009
    [ERR_REMAP (EHWPOISON)] = N_("Memory page has hardware error"),
Packit 6c4009
# if EHWPOISON > ERR_MAX
Packit 6c4009
# undef ERR_MAX
Packit 6c4009
# define ERR_MAX EHWPOISON
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
  };
Packit 6c4009
Packit 6c4009
#define NERR \
Packit 6c4009
  (sizeof _sys_errlist_internal / sizeof _sys_errlist_internal [0])
Packit 6c4009
const int _sys_nerr_internal = NERR;
Packit 6c4009
Packit 6c4009
#if IS_IN (libc) && !defined ERRLIST_NO_COMPAT
Packit 6c4009
# include <errlist-compat.c>
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
#ifdef EMIT_ERR_MAX
Packit 6c4009
void dummy (void)
Packit 6c4009
{ asm volatile (" @@@ %0 @@@ " : : "i" (ERR_REMAP (ERR_MAX))); }
Packit 6c4009
#endif