summaryrefslogtreecommitdiff
path: root/lib/libc/gen/getpwnam.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/getpwnam.3')
-rw-r--r--lib/libc/gen/getpwnam.310
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/gen/getpwnam.3 b/lib/libc/gen/getpwnam.3
index f963ae3288a..87842cc8b42 100644
--- a/lib/libc/gen/getpwnam.3
+++ b/lib/libc/gen/getpwnam.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getpwnam.3,v 1.1 2009/06/01 21:52:03 millert Exp $
+.\" $OpenBSD: getpwnam.3,v 1.2 2009/06/02 05:09:16 jmc Exp $
.\"
.\" Copyright (c) 1988, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 1 2009 $
+.Dd $Mdocdate: June 2 2009 $
.Dt GETPWNAM 3
.Os
.Sh NAME
@@ -93,7 +93,7 @@ is updated to reference those strings.
.Fn setpassent
accomplishes two purposes.
First, it causes
-.Fn getpwent
+.Xr getpwent 3
to
.Dq rewind
to the beginning of the database.
@@ -102,13 +102,13 @@ Additionally, if
is non-zero, file descriptors are left open, significantly speeding
up subsequent accesses for the lookup routines.
These file descriptors can be closed by a call to
-.Fn endpwent .
+.Xr endpwent 3 .
.Pp
It is dangerous for long-running programs to keep the file descriptors
open as the database will become out of date if it is updated while the
program is running.
Furthermore, programs that run child processes should be careful to call
-.Fn endpwent
+.Xr endpwent 3
to close these descriptors before calling
.Xr execve 2
or