HP-UX Reference (11i v2 07/12) - 7 Device (Special) Files, 9 General Information, Index (vol 10)

s
sad(7) sad(7)
RETURN VALUE
Unless specified otherwise, upon successful completion, the
sad ioctl() commands return a value of 0
(zero). Otherwise, a value of -1 is returned.
ERRORS
If any of the following conditions occur, the
sad ioctl commands return the corresponding value:
SAD_SAP
[EEXIST] The specified major/minor device number pair (
sad_major/sad_minor
) has
already been configured.
[EFAULT] The arg parameter points outside the allocated address space.
[EINVAL] The major device number (
sad_major) is invalid, the number of modules
(
sap_list[MAXAPUSH][FMNAMESZ+1]
) is invalid, or the list of module
names is invalid.
[ENODEV] The device is not configured for
autopush. This value is returned from a
SAD_GAP command.
[ENOSR] A internal autopush data structure cannot be allocated.
[ENOSTR] The major device does not represent a STREAMS driver.
[ERANGE] The sap_lastminor
field is less than the sap_minor field when the com-
mand is
SAP_RANGE, or the minor device specified in a SAP_CLEAR command
does not exist.
[EACCES] Only a superuser or user with
NETADMIN privilege is allowed to execute the
SAD_SAP ioctl().
SAD_GAP
[EFAULT] The arg parameter points outside the allocated address space.
[EINVAL] The major device number (sad_major) is invalid.
[ENODEV] The device is not configured for
autopush.
[ENOSTR] The major device does not represent a STREAMS driver.
SAD_VML
[EFAULT] The arg parameter points outside the allocated address space.
[EINVAL] The list of module names is invalid.
SEE ALSO
autopush(1M), ioctl(2), open(2), privileges(5), streamio(7).
HP-UX 11i Version 2: December 2007 Update 3 Hewlett-Packard Company 145