diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-04-25 19:11:49 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-04-25 19:11:49 +0000 |
commit | 0189da9e7093ccf446208cd8975e69c83a8c8556 (patch) | |
tree | 562343545cd6fa4f413fafac58c8b2dde429e3e5 /lib/libc/gen/getpwent.3 | |
parent | 3cc0268ca1c600add3a8d5d6885aebf543f096ae (diff) |
well if you cannot do a libc commit properly a week before 2.7 tree lock, surely it can wait till after 2.7
Diffstat (limited to 'lib/libc/gen/getpwent.3')
-rw-r--r-- | lib/libc/gen/getpwent.3 | 45 |
1 files changed, 1 insertions, 44 deletions
diff --git a/lib/libc/gen/getpwent.3 b/lib/libc/gen/getpwent.3 index 96e8bebfb4d..41ae1b44597 100644 --- a/lib/libc/gen/getpwent.3 +++ b/lib/libc/gen/getpwent.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getpwent.3,v 1.12 2000/04/25 12:21:05 d Exp $ +.\" $OpenBSD: getpwent.3,v 1.13 2000/04/25 19:11:48 deraadt Exp $ .\" .\" Copyright (c) 1988, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -37,9 +37,7 @@ .Sh NAME .Nm getpwent , .Nm getpwnam , -.Nm getpwnam_r , .Nm getpwuid , -.Nm getpwuid_r , .Nm setpassent , .Nm setpwent , .Nm endpwent @@ -51,13 +49,9 @@ .Fn getpwent void .Ft struct passwd * .Fn getpwnam "const char *login" -.Ft int -.Fn getpwnam_r "const char *login" "struct passwd *pwd" "char *buffer" "size_t bufsize" "struct passwd **result" .Ft struct passwd * .Fn getpwuid "uid_t uid" .Ft int -.Fn getpwuid_r "uid_t uid" "struct passwd *pwd" "char *buffer" "size_t bufsize" "struct passwd **result" -.Ft int .Fn setpassent "int stayopen" .Ft void .Fn setpwent void @@ -135,29 +129,6 @@ If the process which calls them has an effective UID of 0, the encrypted password will be returned, otherwise, the password field of the returned structure will point to the string .Ql * . -.Pp -The -.Fn getpwuid_r -and -.Fn getpwnam_r -functions both update the passwd structure pointed to by -.Fa pwd -and store a pointer to that structure at the location pointed to by -.Fa result . -The structure shall contain an entry from the user database with a matching -.Fa uid -or -.Fa login . -Storage referenced by the structure shall be allocated from the memory -provided with the -.Fa buffer -parameter, which is -.Fa bufsize -characters in size. -.\" The maximum size needed for this buffer can be determined with the -.\" _SC_GETPW_R_SIZE_MAX -.\" .Xr sysconf 2 -.\" parameter. .Sh RETURN VALUES The functions .Fn getpwent , @@ -175,20 +146,6 @@ and .Fn setpwent functions have no return value. -The functions -.Fn getpwuid_r -and -.Fn getpwnam_r -return a null pointer in the location pointed to by -.Fa result -and return the error number -on error or if the requested entry is not found. -The error value -.Ev ERANGE -is returned if insufficient storage was supplied via -.Fa buffer -and -.Fa bufsize. .Sh FILES .Bl -tag -width /etc/master.passwd -compact .It Pa /etc/pwd.db |