[PATCH v2 0/6] tools/nolibc: make dev_t 64 bits wide
From: Thomas Weißschuh
Date: Sat Apr 04 2026 - 04:08:42 EST
Handle all possible values of minor and major numbers.
Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
---
Changes in v2:
- Stay compatible with applications expecting makedev(), major() or
minor() to be macros.
- Link to v1: https://patch.msgid.link/20260331-nolibc-makedev-v1-0-ee79ee31e4d6@xxxxxxxxxxxxxx
---
Thomas Weißschuh (6):
selftests/nolibc: add some tests for makedev() and friends
selftests/nolibc: add a test for stat().st_rdev
tools/nolibc: move the logic of makedev() and friends into functions
tools/nolibc: make dev_t 64 bits wide
tools/nolibc: handle all major and minor numbers in makedev() and friends
tools/nolibc: use makedev() in fstatat()
tools/include/nolibc/std.h | 2 +-
tools/include/nolibc/sys/stat.h | 9 +++------
tools/include/nolibc/sys/sysmacros.h | 25 +++++++++++++++++++++----
tools/testing/selftests/nolibc/nolibc-test.c | 7 +++++++
4 files changed, 32 insertions(+), 11 deletions(-)
---
base-commit: 3b6f598c904f5f18506383ca279896d84a5d4f00
change-id: 20260331-nolibc-makedev-a002250090bd
Best regards,
--
Thomas Weißschuh <linux@xxxxxxxxxxxxxx>