Table 42: Device driver to AIX ERRNO translation
AIX
errno
Device driver
error code
Description
1
EPERM
• General: The process does not have adequate permission to complete the
wanted function.
5
EIO
• Open: An I/O error occurred that indicates a failure to operate the device.
• Write: The physical end of medium was detected, or it is a general error
state that indicates a failure to write to device.
• IOCTL: An I/O error occurred during the operation.
• Close: An I/O error occurred during the operation.
6
ENXIO
• General: The device is not configured and is not receiving requests.
• Write: A write operation was attempted after the device reached end of
medium.
9
EBADF
• General: A bad file descriptor was passed.
• Write: A write operation was attempted on a device that was opened for
read only.
11
EAGAIN
• Read: The device is already opened.
12
ENOMEM
• General: Insufficient memory available for some internal memory
operation.
• Read: The number of bytes requested in a read of a variable block record
was less than the size of the block. Referred to as an over-length condition.
14
EFAULT
• General: A memory failure occurred because of an invalid pointer or
address.
16
EBUSY
• General: An excessive busy state was encountered.
• Open: The device is reserved by another initiator or an excessive busy state
was encountered.
22
EINVAL
• Open: The operation requested had invalid parameters or an invalid
combination of parameters.
• Write: The operation requested had invalid parameters or an invalid
combination of parameters. Or, the number of bytes requested in the write
was not a multiple of the block size for a fixed block transfer. Or, the
number of bytes requested in the write was greater than the maximum
block size allowed by the device for variable block transfers.
28
ENOSPC
• Write: A write operation failed because it reached the early warning mark
while it was running in label processing mode. This return code is only
returned once at the moment that early warning is reached.
46
ENOTREADY
• General: The device is not ready for operation or a tape cartridge is not in
the drive.
• Open: If not opened with the O_NONBLOCK or O_NDELAY, the drive is not
ready for operation or there is no tape cartridge in drive. If the non-
blocking flags are used, the drive is not ready for operation.
Messages 57