[PATCH 3/3] io: Sync fts with gnulib

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Fri Apr 17 17:30:42 GMT 2026



On 17/04/26 14:20, Paul Eggert wrote:
> 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.

Thanks, I will update the patch.


More information about the Libc-alpha mailing list