HP-UX Reference (11i v1 00/12) - 2 System Calls (vol 5)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man2/!!!intro.2
________________________________________________________________
___ ___
c
crashconf(2) crashconf(2)
if (device_return[0] > -num_ccerrs)
fprintf(stderr, "%s: error: %s", device_to_add[0],
ccerrs[-device_return[0]]);
} else if (device_return[0] > 0) {
int warn_num;
for (warn_num = 0; warn_num < NUM_CCWARNS; warn_num++)
if (device_return[0] & (1 << warn_num))
fprintf(stderr,"%s: warning: %s",
device_to_add[0], ccwarns[warn_num]);
}
RETURN VALUE
Upon successful completion, zero is returned. Otherwise, a value of −1 is returned and errno is set to
indicate the error. If DC_DEVICES is set, a one (1) may be returned to indicate that at least one device
has been configured but one or more devices failed to configure.
ERRORS
crashconf() fails if one or more of the following is true:
[EPERM] The calling process does not have appropriate privileges.
[EINVAL] operation does not have at least one of DC_INCLUDE
, DC_EXCLUDE ,or
DC_DEVICES set.
[EINVAL] operation has both DC_INCLUDE and DC_EXCLUDE set, and the same class (bit) is
specified in both includeClasses and excludeClasses.
[EINVAL] operation has
DC_DEVICES set, and deviceCount is less than zero or greater than
DC_MAXDEVICES .
SEE ALSO
crashconf(1M), pstat_getcrashinfo(2), pstat_getcrashdev(2).
HP-UX Release 11i: December 2000 − 3 − Section 2−−43
___
___