HP C/iX Library Reference Manual (30026-90004)
Chapter 4 33
HP C/iX Library Header Descriptions
Header File Contents
NOTE
The values associated with symbolic names are subject to change. It is
suggested that the symbolic names in errno.h> be used rather than the
actual numeric values.
ENOENT (2) No such file. This error occurs when a file name is specified and the file
should exist but doesn't.
EBADF (9) Bad file number. Either a file descriptor does not refer to an open file, a
read (respectively write) request is made to a file that is open only for
writing (respectively reading), or the file descriptor is not in the legal
range of file descriptors.
ENOMEM (12) Not enough space. A brk or sbrk call requested more space than the
system is able to supply.
EACCES (13) Permission denied. An attempt was made to access a file in a way
forbidden by the protection system.
EFAULT (14) Bad address. A bad address argument was detected, such as a null
pointer.
EINVAL (22) Invalid argument. An invalid argument, such as a bad oflag open
argument or a bad lseek offset argument. This can also be set by the math
functions.
EMFILE (24) Too many open files. No process may have more than a system-defined
number of file descriptors open at a time. See _NFILE in stdio.h>.
EFBIG (27) File too large. The current output request would exceed the file limit.
ESEEK (29) Illegal seek. An attempt to seek in a file that does not support seeking
was detected, such as a seek on a terminal file.
EDOM (33) Math argument. The argument of a function in the math package is out of
the domain of the function.
ERANGE (34) Result too large. The value of a function in the math package is not
representable within machine precision.
ENOBUFS (49) No buffer space available. An operation on a file was not performed
because the system lacked sufficient buffer space.
ESYSERR (50) System error. A call from an HP C/iX library function to a system intrinsic,
or to the heap manager, has failed. When the ESYSERR occurs, three
global variables are set:
_mpe_intrinsic _mpe_errno _mpe_status
The _mpe_intrinsic variable returns a numeric value denoting the intrinsic
that has failed. The _mpe_errno variable contains the error number given
by the failing intrinsic or, for a file system error, the number received by an
FCHECK intrinsic call. The _mpe_status variable contains an MPESTATUS
value: the first (high-order) 16 bits contain the error number and the