SCO OpenServer
seterror(D3oddi)
seterror --
set error code in u.u_error
Synopsis
#include <sys/errno.h>
void seterror(int errno);
Description
This routine sets u.u_error
to the value specified in errno .
Return values
None
Usage
Typically, the following error codes are used in drivers:
[If this table is unreadable, a preformatted table follows]
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 superuser (root)
+-------+---------------------------+
|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 superuser (root) |
+-------+---------------------------+
Context and synchronization
User
context .
Hardware applicability
All
Version applicability
oddi:
1, 2, 2mp, 3, 3mp, 4, 4mp, 5, 5mp, 6, 6mp
SVR5 DDI compatibility
DDI drivers use different semantics
for reporting errors to user-level processes
and so there is no function that corresponds to
seterror ( ).
Instead, each entry point routine returns
an errno to the calling process.
The valid errno s are listed on the
errnos (D5)
manual page.
References
``Error handling'' in HDK Technical Reference
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 5 HDK - June 2005