| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 3: Basic Library Functions Oracle Solaris 11 Information Library |
enable_extended_FILE_stdio(3C)
posix_spawnattr_getschedparam(3C)
posix_spawnattr_getschedpolicy(3C)
posix_spawnattr_getsigdefault(3C)
posix_spawnattr_getsigignore_np(3C)
posix_spawnattr_getsigmask(3C)
posix_spawnattr_setschedparam(3C)
posix_spawnattr_setschedpolicy(3C)
posix_spawnattr_setsigdefault(3C)
posix_spawnattr_setsigignore_np(3C)
posix_spawnattr_setsigmask(3C)
posix_spawn_file_actions_addclose(3C)
posix_spawn_file_actions_addclosefrom_np(3C)
posix_spawn_file_actions_adddup2(3C)
posix_spawn_file_actions_addopen(3C)
posix_spawn_file_actions_destroy(3C)
posix_spawn_file_actions_init(3C)
pthread_attr_getdetachstate(3C)
pthread_attr_getinheritsched(3C)
pthread_attr_getschedparam(3C)
pthread_attr_getschedpolicy(3C)
pthread_attr_setdetachstate(3C)
pthread_attr_setinheritsched(3C)
pthread_attr_setschedparam(3C)
pthread_attr_setschedpolicy(3C)
pthread_barrierattr_destroy(3C)
pthread_barrierattr_getpshared(3C)
pthread_barrierattr_setpshared(3C)
pthread_condattr_getpshared(3C)
pthread_condattr_setpshared(3C)
pthread_cond_reltimedwait_np(3C)
pthread_key_create_once_np(3C)
pthread_mutexattr_getprioceiling(3C)
pthread_mutexattr_getprotocol(3C)
pthread_mutexattr_getpshared(3C)
pthread_mutexattr_getrobust(3C)
pthread_mutexattr_setprioceiling(3C)
pthread_mutexattr_setprotocol(3C)
pthread_mutexattr_setpshared(3C)
pthread_mutexattr_setrobust(3C)
pthread_mutex_getprioceiling(3C)
pthread_mutex_reltimedlock_np(3C)
pthread_mutex_setprioceiling(3C)
pthread_rwlockattr_destroy(3C)
pthread_rwlockattr_getpshared(3C)
pthread_rwlockattr_setpshared(3C)
pthread_rwlock_reltimedrdlock_np(3C)
pthread_rwlock_reltimedwrlock_np(3C)
pthread_rwlock_timedrdlock(3C)
pthread_rwlock_timedwrlock(3C)
rctlblk_get_enforced_value(3C)
- privilege set manipulation functions
#include <priv.h>intpriv_addset(priv_set_t *sp,const char *priv);
priv_set_t *priv_allocset(void);
voidpriv_copyset(const priv_set_t *src,priv_set_t *dst);
intpriv_delset(priv_set_t *sp,const char *priv);
voidpriv_emptyset(priv_set_t *sp);
voidpriv_basicset(priv_set_t *sp);
voidpriv_fillset(priv_set_t *sp);
voidpriv_freeset(priv_set_t *sp);
voidpriv_intersect(const priv_set_t *src,priv_set_t *dst);
voidpriv_inverse(priv_set_t *sp);
boolean_tpriv_isemptyset(const priv_set_t *sp);
boolean_tpriv_isequalset(const priv_set_t *src,const priv_set_t *dst);
boolean_tpriv_isfullset(const priv_set_t *sp);
boolean_tpriv_ismember(const priv_set_t *sp,const char *priv);
boolean_tpriv_issubset(const priv_set_t *src,const priv_set_t *dst);
voidpriv_union(const priv_set_t *src,priv_set_t *dst);
Thesp,src, anddst arguments point to privilege sets. Theprivargument points to a named privilege.
Thepriv_addset() function adds the named privilegepriv tosp.
Thepriv_allocset() function allocates sufficient memory to contain a privilege set. Thevalue of the returned privilege set is indeterminate. The function returnsNULLand setserrno when it fails to allocate memory.
Thepriv_copyset() function copies the setsrc todst.
Thepriv_delset() function removes the named privilegepriv fromsp.
Thepriv_emptyset() function clears all privileges fromsp.
Thepriv_basicset() function copies the basic privilege set tosp.
Thepriv_fillset() function asserts all privileges insp, including the privileges notcurrently defined in the system.
Thepriv_freeset() function frees the storage allocated bypriv_allocset().
Thepriv_intersect() function intersectssrc withdst and places the results indst.
Thepriv_inverse() function inverts the privilege set given as argument in place.
Thepriv_isemptyset() function checks whether the argument is an empty set.
Thepriv_isequalset() function checks whether the privilege setsrc is equal todst.
Thepriv_isfullset() function checks whether the argument is a full set. Afull set is a set with all bits set, regardless of whetherthe privilege is currently defined in the system.
Thepriv_ismember() function checks whether the named privilegepriv is a memberofsp.
Thepriv_issubset() function checks whethersrc is a subset ofdst.
Thepriv_union() function takes the union ofsrc anddst and placesthe result indst.
Upon successful completion,priv_allocset() returns a pointer to an opaque data structure.It returnsNULL if memory allocation fails and setserrno to indicatethe error.
Upon successful completion,priv_isemptyset(),priv_isfullset(),priv_isequalset(),priv_issubset(), andpriv_ismember() returnB_TRUE. Otherwise,they returnB_FALSE.
Upon successful completion,priv_delset() andpriv_addset() return 0. Otherwise, they return -1and seterrno to indicate the error.
Thepriv_allocset() function will fail if:
The physical limits of the system are exceeded by the memory allocation needed to hold a privilege set.
There is insufficient memory for allocation to hold a privilege set. The application can try again later.
Thepriv_delset() andpriv_addset() functions will fail if:
The privilege argument is not a valid privilege name.
Seeattributes(5) for descriptions of the following attributes:
|
setppriv(2),malloc(3C),priv_str_to_set(3C),attributes(5),privileges(5)
The functions that compare sets operate on all bits of the set,regardless of whether the specific privileges are currently defined in the system.
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |