[PATCH v2 0/4] tools/nolibc: pass mode to open syscall if O_TMPFILE is set
From: Thomas Weißschuh
Date: Thu May 14 2026 - 08:05:44 EST
When O_TMPFILE is set, the open mode needs to be passed to the kernel as
per the documentation.
---
Changes in v2:
- Always pass the mode to the kernel
- Rebase on latest nolibc/for-next
- Link to v1: https://patch.msgid.link/20260429-nolibc-open-tmpfile-v1-0-63d19c95c0a5@xxxxxxxxxxxxxx
To: Willy Tarreau <w@xxxxxx>
Cc: linux-kernel@xxxxxxxxxxxxxxx
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: always pass mode to open syscall
selftests/nolibc: test open mode handling
tools/include/nolibc/fcntl.h | 43 +++++++++++-----------------
tools/testing/selftests/nolibc/nolibc-test.c | 23 +++++++++++++++
2 files changed, 40 insertions(+), 26 deletions(-)
---
base-commit: bb2d82d41894cb30d836e9796ff67d2f9a71eccf
change-id: 20260429-nolibc-open-tmpfile-19e677e33c8f
Best regards,
--
Thomas Weißschuh <linux@xxxxxxxxxxxxxx>