diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2008-10-19 13:23:17 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2008-10-19 13:23:17 +0000 |
commit | 2cadb9337c054573408c4bcdba064c150dc5e789 (patch) | |
tree | 69b943e0bdd7aafe9d625b5cfcf0a9f5ddc21d06 /lib/libc | |
parent | 3d72eee370eb318c6e6541a08881c6a60151ec7f (diff) |
document fts_open error handling; from Tim van der Molen
ok millert
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/fts.3 | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/libc/gen/fts.3 b/lib/libc/gen/fts.3 index cb2eef1d72a..88f646e7d28 100644 --- a/lib/libc/gen/fts.3 +++ b/lib/libc/gen/fts.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: fts.3,v 1.23 2007/05/31 19:19:28 jmc Exp $ +.\" $OpenBSD: fts.3,v 1.24 2008/10/19 13:23:16 jmc 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: May 31 2007 $ +.Dd $Mdocdate: October 19 2008 $ .Dt FTS 3 .Os .Sh NAME @@ -491,6 +491,14 @@ the directory traversal order is in the order listed in .Fa path_argv for the root paths, and in the order listed in the directory for everything else. +.Pp +If an error occurs, +.Fn fts_open +returns +.Dv NULL +and sets +.Va errno +appropriately. .Ss FTS_READ The .Fn fts_read |