mbox series

[pseudo,0/4] Implement openat2 wrapper

Message ID 1768439403-23665-1-git-send-email-mark.hatle@kernel.crashing.org
Headers show
Series Implement openat2 wrapper | expand

Message

Mark Hatle Jan. 15, 2026, 1:09 a.m. UTC
Since openat2 isn't a regular function on most systems, the implementation
is a bit strange.  We implement the openat2 function based on the existing
openat (in the future, we may be able to get rid of openat redirecting it
to this new openat2.)  Then instead of calling real_openat2, we call
real_syscall instead.

This appears to work where I've run it, but I don't have a very extensive
test case at this time.  Any review of this serious would be appreciated.

Mark Hatle (1):
  openat2: Implement openat2 wrapper

mark.hatle (3):
  test-syscall: Remove build warning
  ports/linux/pseudo_wrappers.c: Reorder the syscall operations
  ports/linux/pseudo_wrappers.c: Call the wrappers where possible

 ports/linux/openat2/guts/openat2.c | 186 +++++++++++++++++++++++++++++++++++--
 ports/linux/pseudo_wrappers.c      |  51 ++++++----
 test/test-syscall.c                |  12 ++-
 3 files changed, 215 insertions(+), 34 deletions(-)