Files
freebsd/include
Dag-Erling Smørgrav f0ac5e919f fts: Add blocks support.
This adds an `fts_open_b()` variant of `fts_open()` which takes a block
instead of a function pointer.

This was inspired by, and is intended to be compatible with, Apple's
implementation; however, although our FTS and theirs share a common
ancestor, they have diverged significantly.  That and the fact that
we still target compilers which don't support blocks means Apple's
implementation was not directly reusable.

This is the second use case for blocks in FreeBSD (the first being
`qsort_b()`, which we use here).  This suggest we might want to add
a `COMPILER_FEATURE` for blocks to avoid hardcoding any further
`COMPILER_TYPE` checks.

MFC after:	never
Relnotes:	yes
Sponsored by:	Klara, Inc.
Reviewed by:	kevans, theraven, imp
Differential Revision:	https://reviews.freebsd.org/D49877
2025-04-22 19:25:56 +02:00
..
…
2024-12-29 17:57:46 +00:00
2023-11-26 22:23:28 -07:00
2023-11-26 22:23:28 -07:00
2023-11-26 22:23:28 -07:00
2023-08-16 11:54:16 -06:00
2023-11-26 22:23:28 -07:00
2023-11-26 22:23:28 -07:00
2023-11-26 22:23:28 -07:00
2023-08-16 11:54:16 -06:00
2023-11-26 22:23:28 -07:00
2023-08-16 11:54:16 -06:00
2023-11-26 22:23:28 -07:00
2023-11-26 22:23:28 -07:00
2025-04-22 19:25:56 +02:00
2023-08-16 11:54:16 -06:00
2023-11-26 22:23:28 -07:00
2023-11-26 22:23:28 -07:00
2023-08-16 11:54:16 -06:00
2023-08-16 11:54:16 -06:00
2023-08-16 11:54:16 -06:00
2023-11-26 22:23:28 -07:00
2024-10-14 10:26:17 -07:00
2023-08-16 11:54:23 -06:00
2023-11-26 22:23:28 -07:00
2023-11-26 22:23:28 -07:00
2023-11-26 22:23:28 -07:00
2023-11-26 22:23:28 -07:00
2023-11-26 22:23:28 -07:00
2023-08-16 11:54:16 -06:00
2024-08-26 18:27:29 +02:00
2023-08-16 11:54:16 -06:00
2024-04-23 19:51:22 +03:00
2023-11-26 22:23:28 -07:00
2023-11-26 22:23:28 -07:00
2023-11-26 22:23:28 -07:00
2023-11-26 22:23:28 -07:00
2023-08-16 11:54:23 -06:00
2023-11-26 22:23:28 -07:00
2025-04-17 18:19:44 +03:00
2023-11-26 22:23:28 -07:00
2023-09-07 06:40:14 +00:00
2024-11-29 17:25:32 +02:00
2023-11-26 22:23:28 -07:00
2023-11-26 22:23:28 -07:00
2023-08-16 11:54:16 -06:00
2023-11-26 22:23:28 -07:00
2023-08-16 11:54:16 -06:00
2023-11-26 22:23:28 -07:00
2023-08-16 11:54:16 -06:00
2023-08-16 11:54:16 -06:00
2023-11-26 22:23:28 -07:00
2023-08-16 11:54:16 -06:00
2023-08-16 11:54:16 -06:00
2023-08-16 11:54:23 -06:00