| 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)
- get user_attr entry
userattr_t *getuserattr(void);
userattr_t *getusernam(const char *name);
userattr_t *getuseruid(uid_tuid);
voidfree_userattr(userattr_t *userattr);
voidsetuserattr(void);
voidenduserattr(void);
userattr_t *fgetuserattr(FILE *f);
Thegetuserattr(),getusernam(), andgetuseruid() functions each return auser_attr(4) entry. Entries cancome from any of the sources specified in thensswitch.conf(4) file. Thegetuserattr() function enumeratesuser_attr entries. Thegetusernam() function searches for auser_attr entrywith a given user namename. Thegetuseruid() function searches for auser_attr entry with a given user IDuid. Successive calls to these functionsreturn either successiveuser_attr entries orNULL.
Thefgetuserattr() function does not usensswitch.conf but reads and parses thenext line from the streamf. This stream is assumed to havethe format of theuser_attr files.
Thefree_userattr() function releases memory allocated by thegetusernam(),getuserattr(), andfgetuserattr()functions.
The internal representation of auser_attr entry is auserattr_t structure definedin <user_attr.h> with the following members:
char *name; /* name of the user */char *qualifier; /* reserved for future use */char *res1; /* reserved for future use */char *res2; /* reserved for future use */kva_t *attr; /* list of attributes */
Thesetuserattr() function “rewinds” to the beginning of the enumeration ofuser_attrentries. Calls togetusernam() may leave the enumeration in an indeterminatestate, sosetuserattr() should be called before the first call togetuserattr().
Theenduserattr() function may be called to indicate thatuser_attr processing iscomplete; the library may then close any openuser_attr file, deallocate anyinternal storage, and so forth.
Thegetuserattr() function returns a pointer to auserattr_t if it successfullyenumerates an entry; otherwise it returnsNULL, indicating the end of theenumeration.
Thegetusernam() function returns a pointer to auserattr_t if it successfullylocates the requested entry; otherwise it returnsNULL.
Thegetuserattr() andgetusernam() functions both allocate memory for the pointers theyreturn. This memory should be deallocated with thefree_userattr() function.
Individual attributes can be referenced in theattr structure by calling thekva_match(3C) function.
Because the list of legal keys is likely to expand, code must be written to ignore unknown key-value pairs without error.
extended user attributes
configuration file lookup information for the name server switch
Seeattributes(5) for descriptions of the following attributes:
|
getauthattr(3C),getexecattr(3C),getprofattr(3C),user_attr(4),attributes(5)
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |