diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2012-01-01 13:32:26 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2012-01-01 13:32:26 +0000 |
commit | aeec66b169404c4af2c887766a6170a11a879b94 (patch) | |
tree | c3664319e02c85626f86e665890f70d9a45db3fb /lib | |
parent | 5d2d9d838382847de54dd179c68522345f332380 (diff) |
Updates regarding fts_close(3):
1) The close(2) return value and errno are ignored.
2) The errno is set by fchdir(2), not by chdir(2),
which has much less potential for errors.
3) Use .Rv -std.
While here, remove STANDARDS. Keith Bostic added that hope in 1990
and tweaked the wording in 1993, but it didn't come true since then.
ok kettenis@ jmc@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/fts.3 | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/lib/libc/gen/fts.3 b/lib/libc/gen/fts.3 index e81834df98e..d6aedad85e0 100644 --- a/lib/libc/gen/fts.3 +++ b/lib/libc/gen/fts.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: fts.3,v 1.28 2010/09/24 13:56:32 millert Exp $ +.\" $OpenBSD: fts.3,v 1.29 2012/01/01 13:32:25 schwarze Exp $ .\" .\" Copyright (c) 1989, 1991, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)fts.3 8.5 (Berkeley) 4/16/94 .\" -.Dd $Mdocdate: September 24 2010 $ +.Dd $Mdocdate: January 1 2012 $ .Dt FTS 3 .Os .Sh NAME @@ -716,9 +716,7 @@ and restores the current directory to the directory from which .Fn fts_open was called to open .Fa ftsp . -The -.Fn fts_close -function returns 0 on success or \-1 if an error occurred. +.Rv -std fts_close .Sh ERRORS The function .Fn fts_open @@ -733,10 +731,8 @@ The function .Fn fts_close may fail and set .Va errno -for any of the errors specified for the library functions -.Xr chdir 2 -and -.Xr close 2 . +for any of the errors specified for the library function +.Xr fchdir 2 . .Pp The functions .Fn fts_read @@ -769,12 +765,6 @@ The specified option is invalid. .Xr chdir 2 , .Xr stat 2 , .Xr qsort 3 -.Sh STANDARDS -The -.Nm -API is expected to be included in a future -.St -p1003.1-88 -revision. .Sh HISTORY The .Nm |