[PATCH 3/3] io: Sync fts with gnulib
Paul Eggert
eggert@cs.ucla.edu
Fri Apr 17 17:20:28 GMT 2026
On 2026-04-17 06:24, Adhemerval Zanella wrote:
> + When fts_info == FTS_NSOK this supports expressions like
> + (fts_statp->st_mode ? !!S_ISDIR (fts_statp->st_mode): -1), which yields
> + 1 for a directory, 0 for a non-directory, and -1 for unknown. */
In rereading this patch, I suggest changing the example to use a FIFO
rather than a directory, since directories never yield fts_info ==
FTS_NSOK. I installed the attached patch into Gnulib and you can use
this in glibc too. Sorry about the confusion.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-doc-doc-FTS_NOSTAT-with-FIFO-not-directory.patch
Type: text/x-patch
Size: 1303 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20260417/61709bcb/attachment.bin>
More information about the Libc-alpha
mailing list