HP-UX Reference (11i v2 07/12) - 2 System Calls (vol 5)

p
pset_getattr(2) pset_getattr(2)
Security Restrictions
Some or all of the actions associated with this system call require the
PSET privilege. Processes owned by
the superuser have this privilege. Processes owned by other users may have this privilege, depending on
system configuration. See privileges(5) for more information about privileged access on systems that sup-
port fine-grained privileges.
RETURN VALUE
The functions return zero on successful completion. Otherwise, -1 is returned and errno is set to indicate
the error.
ERRORS
pset_getattr()
or pset_setattr()
fails if one or more of the following is true:
[EFAULT] The memory location pointed to by val is not writable by the user for
pset_getattr()
.
[EINVAL] The specified processor set pset, the attribute type, or the attribute val is invalid.
[EINVAL] The memory location pointed to by val is NULL for
pset_getattr()
.
[ENOSYS] The processor set functionality is not supported by the underlying HP-UX version.
[ENOTSUP]
The requested attribute value is not supported for the
pset_setattr()
function.
[EPERM] The user does not have the necessary permissions to query or change the processor set
attributes.
AUTHOR
get_getattr and set_getattr were developed by HP.
SEE ALSO
psrset(1M), pset_assign(2), pset_bind(2), pset_create(2), pset_ctl(2), pset_destroy(2), privgrp(4),
privileges(5).
HP-UX 11i Version 2: December 2007 Update 3 Hewlett-Packard Company 273