MONDAY, APRIL 20, 2026 GLIBC DIGEST · OPEN-SOURCE SYSTEMS DAILY VOL. 1 · NO. 110
Late Edition · APRIL 20, 2026 · VOL. 1 · NO. 110
The glibc Digest
— A Daily Record of the GNU C Library —
io Proposed

io: Consolidate ftw implementation

This patch consolidates the ftw implementation by removing wordsize-64 and arch-specific implementations where off_t matches off64_t.

This patch consolidates the ftw implementation by removing wordsize-64 and arch-specific implementations for ABIs where off_t is the same as off64_t. The ftw.c implementation is moved to ftw-common.c to simplify the __OFF_T_MATCHES_OFF64_T usage. Upstream has approved the patch and requests that it be pushed.

Technical Tradeoffs

  • Reduces code duplication by consolidating implementations.
  • Simplifies maintenance by using a common implementation.
  • Removes arch-specific implementations where off_t and off64_t are the same.

Part of a Series

Filed Under: ioftwconsolidationcode cleanup