Print this page
9728 3secdb man pages need some tlc

*** 1,11 **** '\" te .\" Copyright (c) 2005, Sun Microsystems, Inc. All Rights Reserved. .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] ! .TH GETUSERATTR 3SECDB "Mar 31, 2005" .SH NAME getuserattr, getusernam, getuseruid, free_userattr, setuserattr, enduserattr, fgetuserattr \- get user_attr entry .SH SYNOPSIS .LP --- 1,11 ---- '\" te .\" Copyright (c) 2005, Sun Microsystems, Inc. All Rights Reserved. .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] ! .TH GETUSERATTR 3SECDB "Aug 13, 2018" .SH NAME getuserattr, getusernam, getuseruid, free_userattr, setuserattr, enduserattr, fgetuserattr \- get user_attr entry .SH SYNOPSIS .LP
*** 45,55 **** .nf \fBuserattr_t *\fR\fBfgetuserattr\fR(\fBFILE *\fR\fIf\fR); .fi .SH DESCRIPTION - .sp .LP The \fBgetuserattr()\fR, \fBgetusernam()\fR, and \fBgetuseruid()\fR functions each return a \fBuser_attr\fR(4) entry. Entries can come from any of the sources specified in the \fBnsswitch.conf\fR(4) file. The \fBgetuserattr()\fR function enumerates \fBuser_attr\fR entries. The \fBgetusernam()\fR function --- 45,54 ----
*** 91,126 **** .LP The \fBenduserattr()\fR function may be called to indicate that \fBuser_attr\fR processing is complete; the library may then close any open \fBuser_attr\fR file, deallocate any internal storage, and so forth. .SH RETURN VALUES - .sp .LP The \fBgetuserattr()\fR function returns a pointer to a \fBuserattr_t\fR if it successfully enumerates an entry; otherwise it returns \fINULL\fR, indicating the end of the enumeration. .sp .LP The \fBgetusernam()\fR function returns a pointer to a \fBuserattr_t\fR if it successfully locates the requested entry; otherwise it returns \fINULL\fR. .SH USAGE - .sp .LP The \fBgetuserattr()\fR and \fBgetusernam()\fR functions both allocate memory for the pointers they return. This memory should be deallocated with the \fBfree_userattr()\fR function. .sp .LP Individual attributes can be referenced in the \fBattr\fR structure by calling the \fBkva_match\fR(3SECDB) function. ! .SH WARININGS ! .sp .LP Because the list of legal keys is likely to expand, code must be written to ignore unknown key-value pairs without error. .SH FILES - .sp .ne 2 .na \fB\fB/etc/user_attr\fR\fR .ad .RS 22n --- 90,121 ---- .LP The \fBenduserattr()\fR function may be called to indicate that \fBuser_attr\fR processing is complete; the library may then close any open \fBuser_attr\fR file, deallocate any internal storage, and so forth. .SH RETURN VALUES .LP The \fBgetuserattr()\fR function returns a pointer to a \fBuserattr_t\fR if it successfully enumerates an entry; otherwise it returns \fINULL\fR, indicating the end of the enumeration. .sp .LP The \fBgetusernam()\fR function returns a pointer to a \fBuserattr_t\fR if it successfully locates the requested entry; otherwise it returns \fINULL\fR. .SH USAGE .LP The \fBgetuserattr()\fR and \fBgetusernam()\fR functions both allocate memory for the pointers they return. This memory should be deallocated with the \fBfree_userattr()\fR function. .sp .LP Individual attributes can be referenced in the \fBattr\fR structure by calling the \fBkva_match\fR(3SECDB) function. ! .SH WARNINGS .LP Because the list of legal keys is likely to expand, code must be written to ignore unknown key-value pairs without error. .SH FILES .ne 2 .na \fB\fB/etc/user_attr\fR\fR .ad .RS 22n
*** 131,145 **** .ne 2 .na \fB\fB/etc/nsswitch.conf\fR\fR .ad .RS 22n ! configuration file lookup information for the name server switch .RE .SH ATTRIBUTES - .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp --- 126,139 ---- .ne 2 .na \fB\fB/etc/nsswitch.conf\fR\fR .ad .RS 22n ! configuration file lookup information for the name service switch .RE .SH ATTRIBUTES .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp
*** 151,159 **** _ MT-Level MT-Safe .TE .SH SEE ALSO - .sp .LP \fBgetauthattr\fR(3SECDB), \fBgetexecattr\fR(3SECDB), ! \fBgetprofattr\fR(3SECDB), \fBuser_attr\fR(4), \fBattributes\fR(5) --- 145,153 ---- _ MT-Level MT-Safe .TE .SH SEE ALSO .LP \fBgetauthattr\fR(3SECDB), \fBgetexecattr\fR(3SECDB), ! \fBgetprofattr\fR(3SECDB), \fBkva_match\fR(3SECDB), \fBuser_attr\fR(4), ! \fBattributes\fR(5)