[PATCH 0/4] tools/nolibc: pass mode to open syscall if O_TMPFILE is set
From: Thomas Weißschuh
Date: Wed Apr 29 2026 - 10:56:00 EST
When O_TMPFILE is set, the open mode needs to be passed to the kernel as
per the documentation.
Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
---
Thomas Weißschuh (4):
tools/nolibc: split implicit open flags into a macro
tools/nolibc: split open mode handling into a macro
tools/nolibc: pass mode to open syscall if O_TMPFILE is set
selftests/nolibc: test open mode handling
tools/include/nolibc/fcntl.h | 46 ++++++++++++----------------
tools/testing/selftests/nolibc/nolibc-test.c | 23 ++++++++++++++
2 files changed, 43 insertions(+), 26 deletions(-)
---
base-commit: 266df86c4893fed1a7f027e767fe1c7f6456b100
change-id: 20260429-nolibc-open-tmpfile-19e677e33c8f
Best regards,
--
Thomas Weißschuh <linux@xxxxxxxxxxxxxx>