cuserid.3 (79754) | cuserid.3 (81251) |
---|---|
1.\" 2.\" Copyright (c) 1995 Joerg Wunsch 3.\" 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: --- 15 unchanged lines hidden (view full) --- 24.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT, 25.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 26.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31.\" | 1.\" 2.\" Copyright (c) 1995 Joerg Wunsch 3.\" 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: --- 15 unchanged lines hidden (view full) --- 24.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT, 25.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 26.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31.\" |
32.\" $FreeBSD: head/lib/libcompat/4.4/cuserid.3 79754 2001-07-15 07:53:42Z dd $ | 32.\" $FreeBSD: head/lib/libcompat/4.4/cuserid.3 81251 2001-08-07 15:48:51Z ru $ |
33.\" 34.Dd April 10, 1995 35.Os 36.Dt CUSERID 3 37.Sh NAME 38.Nm cuserid 39.Nd get user name associated with effective UID 40.Sh LIBRARY --- 27 unchanged lines hidden (view full) --- 68.Fa s 69is NULL, an internal array is used and its address will be returned. 70.Sh RETURN VALUES 71.Fn cuserid 72returns the address of an array in which the name has been stored. 73.Pp 74If the name associated with the effective UID of the current process 75could not be found, either a null pointer will be returned, or | 33.\" 34.Dd April 10, 1995 35.Os 36.Dt CUSERID 3 37.Sh NAME 38.Nm cuserid 39.Nd get user name associated with effective UID 40.Sh LIBRARY --- 27 unchanged lines hidden (view full) --- 68.Fa s 69is NULL, an internal array is used and its address will be returned. 70.Sh RETURN VALUES 71.Fn cuserid 72returns the address of an array in which the name has been stored. 73.Pp 74If the name associated with the effective UID of the current process 75could not be found, either a null pointer will be returned, or |
76.Po 77if | 76(if |
78.Fa s | 77.Fa s |
79is non-NULL 80.Pc | 78is non-NULL) |
81the buffer 82.Fa s 83will be filled with a null string. 84.Sh SEE ALSO 85.Xr geteuid 2 , 86.Xr getpwuid 3 | 79the buffer 80.Fa s 81will be filled with a null string. 82.Sh SEE ALSO 83.Xr geteuid 2 , 84.Xr getpwuid 3 |