SETERROR(K) UNIX System V SETERROR(K)
Name
seterror - sets u.u_error with error code
Syntax
#include "sys/errno.h"
void
seterror(errno)
int errno;
Description
This routine sets u.u_error to the value specified in errno.
Possible values for errno are defined in sys/errno.h. This
routine can only be called from user context and not during
system initialization.
Typically, the following error codes are used in drivers:
Value Description
__________________________________
EACCES Permission denied
EAGAIN No more processes
EBUSY Mount device busy
EFAULT Bad address
EINTR Interrupted system call
EINVAL Invalid argument
EIO I/O error
ENODEV No such device
ENOENT No such file or directory
ENOMEM Not enough core
ENOSPC No space left on device
ENXIO No such device or address
EPERM Not super-user
(printed 7/6/89)