mbox series

[pseudo,v2,0/4] Add open_tree() wrapper

Message ID 20260904130627.453678-1-frezidok1@gmail.com
Headers show
Series Add open_tree() wrapper | expand

Message

Dmitry Sakhonchik Sept. 4, 2026, 1:06 p.m. UTC
From: Dmitry Sakhonchik <frezidok1@gmail.com>

v2:
- Handle relative paths correctly in the open_tree wrapper
- Add fallback to SYS_open_tree when libc function is absent
- Add tests coverage with relative paths (dirfd != AT_FDCWD)
- Add support and tests for syscall(SYS_open_tree, ...)

Dmitry Sakhonchik (4):
  ports/linux/guts: Add open_tree wrapper
  test: Add open_tree test
  ports/linux/pseudo_wrappers.c: Add syscall support for open_tree()
    wrapper
  test: Add open_tree syscall test

 ports/linux/guts/open_tree.c   |  46 ++++++++++
 ports/linux/portdefs.h         |   9 ++
 ports/linux/pseudo_wrappers.c  |  14 +++
 ports/linux/wrapfuncs.in       |   1 +
 test/test-open_tree-syscall.c  | 152 +++++++++++++++++++++++++++++++++
 test/test-open_tree-syscall.sh |   5 ++
 test/test-open_tree.c          | 139 ++++++++++++++++++++++++++++++
 test/test-open_tree.sh         |   5 ++
 8 files changed, 371 insertions(+)
 create mode 100644 ports/linux/guts/open_tree.c
 create mode 100644 test/test-open_tree-syscall.c
 create mode 100755 test/test-open_tree-syscall.sh
 create mode 100644 test/test-open_tree.c
 create mode 100755 test/test-open_tree.sh