From 2cadb9337c054573408c4bcdba064c150dc5e789 Mon Sep 17 00:00:00 2001 From: Jason McIntyre Date: Sun, 19 Oct 2008 13:23:17 +0000 Subject: document fts_open error handling; from Tim van der Molen ok millert --- lib/libc/gen/fts.3 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'lib/libc') 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 -- cgit v1.2.3