HP-UX Reference (11i v1 00/12) - 2 System Calls (vol 5)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man2/!!!intro.2
________________________________________________________________
___ ___
e
errno(2) errno(2)
[EMSGSIZE] Message too long. The socket requires that the message be sent atomically, and the size of
the message to be sent made this impossible.
[ENAMETOOLONG]
File name too long. A path specified exceeds the maximum path length for the system.
The maximum path length is specified by PATH_MAX and is defined in <limits.h>.
PATH_MAX is guaranteed to be at least 1023 bytes. This error is also generated if the
length of a path name component exceeds NAME_MAX and the _POSIX_NO_TRUNC
option is in effect for the specified path. Currently, _POSIX_NO_TRUNC is in effect only
for HFS file systems configured to allow path name components up to 255 bytes long (see
convertfs(1M)) and therefore only path names referring to such file systems can generate
the error for this case. The values of NAME_MAX, PATH_MAX, and _POSIX_NO_TRUNC
for a particular path name can be queried by using the pathconf() system call (see
pathconf(2)).
[ENETDOWN] Network is down. A socket operation encountered a dead network.
[ENETRESET] Network dropped connection on reset. The host you were connected to crashed and
rebooted.
[ENETUNREACH]
Network is unreachable. A socket operation was attempted to an unreachable network.
[ENFILE] File table overflow. The systems table of open files is full, and temporarily no more
open()s can be accepted.
[ENOBUFS] No buffer space available. An operation on a socket was not performed because the system
lacked sufficient buffer space.
[ENODEV] No such device. An attempt was made to apply an inappropriate system call to a device
(such as read a write-only device).
[ENOENT] No such file or directory. This error occurs when a file name is specified and the le should
exist but does not, or when one of the directories in a path name does not exist. It also
occurs with msgget(), semget(), and shmget() when key does not refer to any
object and the IPC_CREAT flag is not set.
[ENOEXEC] Exec format error. A request is made to execute a le which, although it has the appropri-
ate permissions, does not start with a valid magic number (see a.out(4)), or the file is too
small to have a valid executable file header.
[ENOLCK] System lock table is full. Too many files have file locks on them, or there are too many
record locks on files, or there are too many instances of a reading or writing process sleep-
ing until an enforcement mode lock clears. This error may also indicate system problems in
handling a lock request on a remote NFS file. This error is also currently returned for all
attempts to perform locking operations on a remote NFS file that has its locking enforce-
ment mode bit set, since the stateless nature of NFS prevents maintaining the necessary
lock information.
[ENOLINK] No connection. The link with the device has been severed or disconnected.
[ENOMEM] Not enough space. During a system call such as exec(), brk(), fork(),or
sbrk(),
a program asks for more space than the system is able to supply. This may not be a tem-
porary condition; the maximum space size is a system parameter. The error can also occur
if there is not enough swap space during a
fork().
[ENOMSG] No message of desired type. An attempt was made to receive a message of a type that does
not exist on the specified message queue; see msgop(2).
[ENOPROTOOPT]
Protocol not available. A bad option was specified in a getsockopt() or set-
sockopt()
call (see getsockopt(2)).
[ENOSPC] No space left on device. During a write() to an ordinary file, there is no free space left
on the device; or no space in system table during msgget(), semget(),or semop()
while SEM_UNDO flag is set.
[ENOSYM] Symbol does not exist in executable. The dynamic loader was unable to resolve a symbolic
reference in a shared library during a call to one of the dynamic loader interface routines
(see shl_load(3X)). The program may be in an inconsistent state and should be terminated
HP-UX Release 11i: December 2000 3 Section 253
___
___