[PATCH] io: Use gnulib fts implementation (BZ 22944, BZ 20331)

Andreas Schwab schwab@suse.de
Mon Feb 23 14:33:57 GMT 2026


On Feb 23 2026, Adhemerval Zanella wrote:

> +      if (parent != NULL && 0 <= parent->fts_level)
                               parent->fts_level >= 0

> +      if (0 <= fd)
             fd >= 0

> +      if (0 <= prev_fd_in_slot)
             prev_fd_in_slot >= 0

> +      if (0 <= old)
             old >= 0

> +            if (0 <= sp->fts_cwd_fd)
                   sp->fts_cwd_fd >= 0

> +                        if (ISSET(FTS_CWDFD) && 0 <= dir_fd)
                                                   dir_fd >= 0

> +      if (0 <= fd)
             fd >= 0

> +                && 0 <= FSTATAT (sp->fts_cwd_fd, p->fts_accpath, sbp,
> +                                 AT_SYMLINK_NOFOLLOW))
                   && FSTATAT (sp->fts_cwd_fd, p->fts_accpath, sbp,
                               AT_SYMLINK_NOFOLLOW) >= 0)

> +        fts_assert (0 <= fd || dir != NULL);
                       fd >= 0

> +            if (ISSET (FTS_CWDFD) && 0 <= fd)
                                        fd >= 0

> +                if (0 <= parent_fd)
                       parent_fd >= 0

> +      && 0 <= tuning->shrink_threshold
            tuning->shrink_threshold >= 0

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


More information about the Libc-alpha mailing list