Module Name: src Committed By: jschauma Date: Mon Oct 28 01:18:54 UTC 2024
Modified Files: src/lib/libc/gen: fts.3 Log Message: Explicitly note that on error, fts_open() returns NULL and sets errno. This uses the same language as used by OpenBSD's fts_open(3). To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/lib/libc/gen/fts.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/gen/fts.3 diff -u src/lib/libc/gen/fts.3:1.31 src/lib/libc/gen/fts.3:1.32 --- src/lib/libc/gen/fts.3:1.31 Sun Jun 30 19:19:12 2013 +++ src/lib/libc/gen/fts.3 Mon Oct 28 01:18:54 2024 @@ -1,4 +1,4 @@ -.\" $NetBSD: fts.3,v 1.31 2013/06/30 19:19:12 wiz Exp $ +.\" $NetBSD: fts.3,v 1.32 2024/10/28 01:18:54 jschauma 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 March 30, 2011 +.Dd October 27, 2024 .Dt FTS 3 .Os .Sh NAME @@ -506,6 +506,14 @@ the directory traversal order is in the .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. .Sh FTS_READ The .Fn fts_read