Skip to content

Implement openat2 wrapper

Mark Hatle yocto-patches 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4test-syscall: Remove build warningtest/test-syscall.c+1 -10 replies
2/4ports/linux/pseudo_wrappers.c: Reorder the syscall operationsports/linux/pseudo_wrappers.c+16 -130 replies
3/4ports/linux/pseudo_wrappers.c: Call the wrappers where possibleports/linux/pseudo_wrappers.c+17 -120 replies
4/4openat2: Implement openat2 wrapperports/linux/openat2/guts/openat2.c ports/linux/pseudo_wrappers.c test/test-syscall.c+187 -140 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [pseudo][PATCH 0/4] Implement openat2 wrapper

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(-)
Signature · 1 line
1.8.3.1