3 standard error codes (errno), Using motload – Artesyn MOTLoad Firmware Package User's Manual (February 2015) User Manual
Page 33

Using MOTLoad
MOTLoad Firmware Package User’s Manual (6806800C24D)
33
Error numbers (errno) can be derived from either the standard I/O error codes as listed in the
Standard Error Codes (errno) table or from driver-/device-specific errors. Error codes unique to
either the driver or the device are greater than 0x00010000. Currently, only the standard I/O
error codes are used for utilities.
2.4.3
Standard Error Codes (errno)
The following table lists the standard error codes (errno):
IOBLOCK_IOCTL_DISK_CHANGE
109
IOBLOCK_IOCTL_MOTOR_ON
110
IOBLOCK_IOCTL_MOTOR_OFF
111
IOBLOCK_IOCTL_BSEEK_SET
112
IOBLOCK_IOCTL_BSEEK_CURRENT
113
IOBLOCK_IOCTL_BSEEK_END
114
IOSTD_ERROR_DEVICE_NOT_FOUND
1
/* device not found */
IOSTD_ERROR_FD_TABLE_FULL
2
/* file descriptor table full */
IOSTD_ERROR_FD_NOT_FOUND
3
/* file descriptor not found */
IOSTD_ERROR_FD_NOT_VALID
4
/* invalid file descriptor */
IOSTD_ERROR_MODE_CONFLICT
5
/* mode conflict */
IOSTD_ERROR_ILLEGAL_REQUEST
6
/* illegal request */
IOSTD_ERROR_DEVICE_TYPE_INVALID
7
/* invalid device type */
IOSTD_ERROR_DEVICE_TYPE_UNKNOWN
8
/* unknown device type */
IOSTD_ERROR_DEVICE_LOCKED
9
/* device locked */
IOSTD_ERROR_DEVICE_WRITE
10
/* device write error */
IOSTD_ERROR_DEVICE_READ
11
/* device read error */
IOSTD_ERROR_UNKNOWN_IOCTL
12
/* unknown ioctl function */
IOSTD_ERROR_OWNERSHIP
13
/* ownership failure */