getlogin.2 (108028) | getlogin.2 (108087) |
---|---|
1.\" Copyright (c) 1989, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)getlogin.2 8.1 (Berkeley) 6/9/93 | 1.\" Copyright (c) 1989, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)getlogin.2 8.1 (Berkeley) 6/9/93 |
33.\" $FreeBSD: head/lib/libc/sys/getlogin.2 108028 2002-12-18 09:22:32Z ru $ | 33.\" $FreeBSD: head/lib/libc/sys/getlogin.2 108087 2002-12-19 09:40:28Z ru $ |
34.\" 35.Dd June 9, 1993 36.Dt GETLOGIN 2 37.Os 38.Sh NAME 39.Nm getlogin , 40.Nm getlogin_r , 41.Nm setlogin --- 105 unchanged lines hidden (view full) --- 147.Pp 148.Rv -std setlogin 149.Sh ERRORS 150The following errors may be returned by these calls: 151.Bl -tag -width Er 152.It Bq Er EFAULT 153The 154.Fa name | 34.\" 35.Dd June 9, 1993 36.Dt GETLOGIN 2 37.Os 38.Sh NAME 39.Nm getlogin , 40.Nm getlogin_r , 41.Nm setlogin --- 105 unchanged lines hidden (view full) --- 147.Pp 148.Rv -std setlogin 149.Sh ERRORS 150The following errors may be returned by these calls: 151.Bl -tag -width Er 152.It Bq Er EFAULT 153The 154.Fa name |
155parameter gave an | 155argument gave an |
156invalid address. 157.It Bq Er EINVAL 158The 159.Fa name | 156invalid address. 157.It Bq Er EINVAL 158The 159.Fa name |
160parameter | 160argument |
161pointed to a string that was too long. 162Login names are limited to 163.Dv MAXLOGNAME 164(from | 161pointed to a string that was too long. 162Login names are limited to 163.Dv MAXLOGNAME 164(from |
165.Ao Pa sys/param.h Ac ) | 165.Aq Pa sys/param.h ) |
166characters, currently 17 including null. 167.It Bq Er EPERM 168The caller tried to set the login name and was not the super-user. 169.It Bq Er ERANGE 170The size of the buffer is smaller than the result to be returned. 171.El 172.Sh SEE ALSO 173.Xr setsid 2 , --- 33 unchanged lines hidden --- | 166characters, currently 17 including null. 167.It Bq Er EPERM 168The caller tried to set the login name and was not the super-user. 169.It Bq Er ERANGE 170The size of the buffer is smaller than the result to be returned. 171.El 172.Sh SEE ALSO 173.Xr setsid 2 , --- 33 unchanged lines hidden --- |