intro(2) SYSTEM CALLS intro(2)
NAME
intro
Errnos
This section describes all the system calls. Many of these
calls have one or more error returns. An error condition is
indicated by an otherwise impossible returned value which is
almost always -1 or the NULL pointer. The individual
descriptions specify the details. The following is a com-
plete list of the error names and their descriptions.
EACCES Search permission is denied for a com-
ponent of the path prefix.
EDEADLK A process' attempt to lock a file region
would cause a deadlock between processes
vying for control of that region.
EEXIST The named file exists.
EFAULT buf or path points to an invalid
address.
EFAULT path points outside the allocated
address space of the process.
EINVAL An invalid argument was specified men-
tioning an undefined signal in a call to
the signal or kill routine. Also set by
the functions described in the math
package (3M).
EINTR A signal was caught during the system
call.
EISNAM A XENIX name file (semaphore, shared
data, etc.) was specified when not
expected.
ELOOP Too many symbolic links were encountered
in translating path.
EMULTIHOP Components of path require hopping to
multiple remote machines.
ENAMETOOLONG The length of the path argument exceeds
{PATH_MAX}, or the length of a path com-
ponent exceeds {NAME_MAX} while
(_POSIX_NO_TRUNC) is in effect.
ENAVAIL An opensem(2), waitsem(2) or sigsem(2)
was issued to a XENIX semaphore that has
Last change: XENIX Compatibility Package 1
intro(2) SYSTEM CALLS intro(2)
not been initialized by a call to
creatsem(2). A sigsem was issued to a
XENIX semaphore out of sequence; i.e.,
before the process has issued the
corresponding waitsem to the semaphore.
An nbwaitsem was issued to a semaphore
guarding a resource that is currently in
use by another process. The semaphore
that a process was waiting on has been
left in an inconsistent state when the
process controlling the semaphore exited
without relinquishing control properly;
i.e., without issuing a waitsem on the
semaphore.
ENOENT The named file does not exist or is the
null pathname.
ENOENT A component of the path prefix does not
exist or is a null pathname.
ENOLCK Cannot allocate a record lock for fcntl
or locking.
ENOLINK path points to a remote machine and the
link to that machine is no longer
active.
ENOSPC No space is available.
ENOTDIR A component of the path prefix is not a
directory.
ENOTNAM Not available. A creatsem, opensem(2),
waitsem(2), or sigsem(2) was issued
using and invalid XENIX semaphore iden-
tifier. Or, a process attempted a
sdget(2) on a file that exists but is
not shared data type.
EOVERFLOW A component is too large to store in the
structure pointed to by buf. does not
exist or is a null pathname.
EPERM The effective user ID of the process is
not super-user.
EROFS The directory in which the file is to be
created is located on a read-only file
system.
Last change: XENIX Compatibility Package 2