From: "Thomas Weißschuh" <thomas.weissschuh@linutronix.de>
To: "Willy Tarreau" <w@1wt.eu>, "Thomas Weißschuh" <linux@weissschuh.net>
Cc: linux-kernel@vger.kernel.org,
"Thomas Weißschuh" <thomas.weissschuh@linutronix.de>
Subject: [PATCH 00/10] tools/nolibc: split out functionality into new headers
Date: Wed, 16 Apr 2025 14:06:15 +0200 [thread overview]
Message-ID: <20250416-nolibc-split-sys-v1-0-a069a3f1d145@linutronix.de> (raw)
Porting applications to nolibc is made harder by the lack of standard
header names. Split out the existing functionality from the big catch-all
headers into new dedicated ones.
This series does not introduce any new logic.
The last patch for sys/wait.h will conflict with
"tools/nolibc: implement waitpid() in terms of waitid()" [0].
But as both patches will go through the nolibc tree anyways we can take
care of the conflict there.
Based on linux-nolibc.git/next
[0] https://lore.kernel.org/lkml/20250411-nolibc-kselftest-harness-v3-21-4d9c0295893f@linutronix.de/
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
---
Thomas Weißschuh (10):
tools/nolibc: prepare for headers in subdirectories
tools/nolibc: add elf.h
tools/nolibc: move open() and friends to fcntl.h
tools/nolibc: move getauxval() to sys/auxv.h
tools/nolibc: move mmap() and friends to sys/mman.h
tools/nolibc: move stat() and friends to sys/stat.h
tools/nolibc: move syscall() to sys/syscall.h
tools/nolibc: move gettimeofday() to sys/time.h
tools/nolibc: add sys/types.h shim
tools/nolibc: move wait() and friends to sys/wait.h
tools/include/nolibc/Makefile | 11 +-
tools/include/nolibc/dirent.h | 1 +
tools/include/nolibc/elf.h | 15 +++
tools/include/nolibc/fcntl.h | 69 +++++++++++
tools/include/nolibc/nolibc.h | 8 ++
tools/include/nolibc/stdlib.h | 26 -----
tools/include/nolibc/sys.h | 230 -------------------------------------
tools/include/nolibc/sys/auxv.h | 41 +++++++
tools/include/nolibc/sys/mman.h | 63 ++++++++++
tools/include/nolibc/sys/stat.h | 74 ++++++++++++
tools/include/nolibc/sys/syscall.h | 19 +++
tools/include/nolibc/sys/time.h | 36 ++++++
tools/include/nolibc/sys/types.h | 7 ++
tools/include/nolibc/sys/wait.h | 71 ++++++++++++
tools/include/nolibc/unistd.h | 6 -
15 files changed, 414 insertions(+), 263 deletions(-)
---
base-commit: 7c73c10b906778384843b9d3ac6c2224727bbf5c
change-id: 20250416-nolibc-split-sys-e7f83832ca77
Best regards,
--
Thomas Weißschuh <thomas.weissschuh@linutronix.de>
next reply other threads:[~2025-04-16 12:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-16 12:06 Thomas Weißschuh [this message]
2025-04-16 12:06 ` [PATCH 01/10] tools/nolibc: prepare for headers in subdirectories Thomas Weißschuh
2025-04-16 12:06 ` [PATCH 02/10] tools/nolibc: add elf.h Thomas Weißschuh
2025-04-16 12:06 ` [PATCH 03/10] tools/nolibc: move open() and friends to fcntl.h Thomas Weißschuh
2025-04-16 12:06 ` [PATCH 04/10] tools/nolibc: move getauxval() to sys/auxv.h Thomas Weißschuh
2025-04-16 12:06 ` [PATCH 05/10] tools/nolibc: move mmap() and friends to sys/mman.h Thomas Weißschuh
2025-04-16 12:06 ` [PATCH 06/10] tools/nolibc: move stat() and friends to sys/stat.h Thomas Weißschuh
2025-04-16 12:06 ` [PATCH 07/10] tools/nolibc: move syscall() to sys/syscall.h Thomas Weißschuh
2025-04-16 12:06 ` [PATCH 08/10] tools/nolibc: move gettimeofday() to sys/time.h Thomas Weißschuh
2025-04-16 12:06 ` [PATCH 09/10] tools/nolibc: add sys/types.h shim Thomas Weißschuh
2025-04-16 12:06 ` [PATCH 10/10] tools/nolibc: move wait() and friends to sys/wait.h Thomas Weißschuh
2025-04-19 9:02 ` [PATCH 00/10] tools/nolibc: split out functionality into new headers Willy Tarreau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250416-nolibc-split-sys-v1-0-a069a3f1d145@linutronix.de \
--to=thomas.weissschuh@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@weissschuh.net \
--cc=w@1wt.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®