diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-12-21 17:25:26 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-12-21 17:25:26 +0000 |
commit | f1ecea97fae80c9031fd0a75a34fe698e97016ce (patch) | |
tree | f772f0e70a6cb6fe70208f6ea552e75ff63b0556 /lib/libc | |
parent | 2b9c09eae6a78aa5a432344310d543a777410693 (diff) |
typo; initalizes -> intializes. Some other fixes while I'm here.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/directory.3 | 43 |
1 files changed, 16 insertions, 27 deletions
diff --git a/lib/libc/gen/directory.3 b/lib/libc/gen/directory.3 index 1256e853de7..e302ea9bf6e 100644 --- a/lib/libc/gen/directory.3 +++ b/lib/libc/gen/directory.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: directory.3,v 1.13 2000/04/18 03:01:25 aaron Exp $ +.\" $OpenBSD: directory.3,v 1.14 2000/12/21 17:25:25 aaron Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -66,15 +66,10 @@ .Sh DESCRIPTION The .Fn opendir -function -opens the directory named by +function opens the directory named by .Fa filename , -associates a directory stream -with it -and -returns a pointer to be used to identify the -directory stream -in subsequent operations. +associates a directory stream with it, and returns a pointer to be used +to identify the directory stream in subsequent operations. A null pointer is returned if .Fa filename cannot be accessed, or if @@ -83,9 +78,8 @@ cannot allocate enough memory to hold the entire structure. .Pp The .Fn readdir -function -returns a pointer to the next directory entry in the named directory -stream +function returns a pointer to the next directory entry in the named +directory stream .Fa dirp . It returns .Dv NULL @@ -97,7 +91,9 @@ The .Fn readdir_r function (much like .Fn readdir ) -initalizes the dirent structure referenced by +initializes the +.Li dirent +structure referenced by .Fa entry to represent the next directory entry in the named directory stream .Fa dirp , @@ -119,15 +115,13 @@ Upon reaching the end of the directory stream, this pointer shall have the value .Pp The .Fn telldir -function -returns the current location associated with the named +function returns the current location associated with the named directory stream .Fa dirp . .Pp The .Fn seekdir -function -sets the position of the next +function sets the position of the next .Fn readdir operation on the named directory stream .Fa dirp . @@ -154,28 +148,23 @@ and before any calls to .Pp The .Fn rewinddir -function -resets the position of the named -directory stream +function resets the position of the named directory stream .Fa dirp to the beginning of the directory. .Pp The .Fn closedir -function -closes the named directory stream -and frees the structure associated with the +function closes the named directory stream and frees the structure +associated with the .Fa dirp -pointer, -returning 0 on success. +pointer, returning 0 on success. On failure, \-1 is returned and the global variable .Va errno is set to indicate the error. .Pp The .Fn dirfd -function -returns the integer file descriptor associated with the named +function returns the integer file descriptor associated with the named directory stream .Fa dirp (see |