mbox series

[pseudo,v3,0/3] nftw, ftw: add wrappers

Message ID 1746302395-8723-1-git-send-email-mark.hatle@kernel.crashing.org
Headers show
Series nftw, ftw: add wrappers | expand

Message

Mark Hatle May 3, 2025, 7:59 p.m. UTC
From: Mark Hatle <mark.hatle@amd.com>

Note in this set patch 3/3 does not work yet.  The test cases need more work.


v3:
Rework from Mark Hatle

Split the ftw/ftw64 -> nftw/nftw64 change from the rest
Rework the integration around the nftw* wrappers
Respond to comments from Gyorgy

v2:
Rework from Gyorgy Sarvari

Gyorgy Sarvari via lists.yoctoproject.org (2):
  nftw, nftw64: add wrapper
  ftw, nftw, ftw64 and nftw64: add tests

Mark Hatle (1):
  Move ftw and ftw64 to calling ntfw and nftw64

 Makefile.in                         |   4 +-
 guts/README                         |   8 +-
 ports/linux/guts/ftw64.c            |   9 +-
 ports/linux/guts/nftw64.c           |   2 +-
 ports/linux/pseudo_wrappers.c       |  10 ++
 ports/unix/guts/ftw.c               |  10 +-
 ports/unix/guts/nftw.c              |   2 +-
 ports/unix/guts/nftw_wrapper_base.c | 195 +++++++++++++++++++++++
 ports/unix/pseudo_wrappers.c        |  10 ++
 test/ftw-test-impl.c                | 226 ++++++++++++++++++++++++++
 test/nftw-test-impl.c               | 236 ++++++++++++++++++++++++++++
 test/test-ftw.c                     |   4 +
 test/test-ftw64.c                   |   4 +
 test/test-nftw.c                    |   4 +
 test/test-nftw.sh                   |  90 +++++++++++
 test/test-nftw64.c                  |   4 +
 16 files changed, 808 insertions(+), 10 deletions(-)
 create mode 100644 ports/unix/guts/nftw_wrapper_base.c
 create mode 100644 test/ftw-test-impl.c
 create mode 100644 test/nftw-test-impl.c
 create mode 100644 test/test-ftw.c
 create mode 100644 test/test-ftw64.c
 create mode 100644 test/test-nftw.c
 create mode 100755 test/test-nftw.sh
 create mode 100644 test/test-nftw64.c

Comments

Richard Purdie May 4, 2025, 4:21 p.m. UTC | #1
On Sat, 2025-05-03 at 14:59 -0500, Mark Hatle wrote:
> From: Mark Hatle <mark.hatle@amd.com>
> 
> Note in this set patch 3/3 does not work yet.  The test cases need
> more work.
> 
> 
> v3:
> Rework from Mark Hatle
> 
> Split the ftw/ftw64 -> nftw/nftw64 change from the rest
> Rework the integration around the nftw* wrappers
> Respond to comments from Gyorgy
> 
> v2:
> Rework from Gyorgy Sarvari
> 
> Gyorgy Sarvari via lists.yoctoproject.org (2):
>   nftw, nftw64: add wrapper
>   ftw, nftw, ftw64 and nftw64: add tests
> 
> Mark Hatle (1):
>   Move ftw and ftw64 to calling ntfw and nftw64

FWIW I put the first two patches through a build on the autobuilder
applied to pseudo and I didn't see any issue.

Cheers,

Richard