[PATCH nolibc 0/14] nolibc updates for v6.4

From: Paul E. McKenney
Date: Mon Mar 20 2023 - 21:13:10 EST


Hello!

This series contains nolibc updates for v6.4, plus one that is fixes a
regression and will thus be offered up soon for v6.3:

1. tools/nolibc: always disable stack protector for tests, courtesy
of Thomas Weißschuh. This one will be offered for v6.3.

2. tools/nolibc: Add gitignore to avoid git complaints about sysroot.

3. tools/nolibc: add stdint.h, courtesy of Vincent Dagonneau.

4. tools/nolibc: add integer types and integer limit macros,
courtesy of Vincent Dagonneau.

5. tools/nolibc: enlarge column width of tests, courtesy of Vincent
Dagonneau.

6. tools/nolibc: add tests for the integer limits in stdint.h,
courtesy of Vincent Dagonneau.

7. tools/nolibc: add getuid() and geteuid(), courtesy of Willy
Tarreau.

8. selftests/nolibc: skip the chroot_root and link_dir tests when
not privileged, courtesy of Willy Tarreau.

9. tools/nolibc: check for S_I* macros before defining them,
courtesy of Willy Tarreau.

10. tools/nolibc: Include linux/fcntl.h and remove duplicate code,
courtesy of Feiyang Chen.

11. tools/nolibc: Add statx() and make stat() rely on statx() if
necessary, courtesy of Feiyang Chen.

12. tools/nolibc: Add support for LoongArch, courtesy of Feiyang Chen.

13. selftests/nolibc: Add support for LoongArch, courtesy of
Feiyang Chen.

14. selftests/nolibc: Adjust indentation for Makefile, courtesy of
Feiyang Chen.

Thanx, Paul

------------------------------------------------------------------------

b/tools/include/nolibc/.gitignore | 1
b/tools/include/nolibc/Makefile | 4
b/tools/include/nolibc/arch-loongarch.h | 200 +++++++++++++++++++++++++
b/tools/include/nolibc/arch.h | 2
b/tools/include/nolibc/std.h | 15 -
b/tools/include/nolibc/stdint.h | 24 +++
b/tools/include/nolibc/sys.h | 42 +++++
b/tools/include/nolibc/types.h | 23 ++
b/tools/testing/selftests/nolibc/Makefile | 3
b/tools/testing/selftests/nolibc/nolibc-test.c | 96 ++++++------
tools/include/nolibc/stdint.h | 75 +++++++++
tools/include/nolibc/sys.h | 58 +++++++
tools/include/nolibc/types.h | 5
tools/testing/selftests/nolibc/Makefile | 78 +++++----
tools/testing/selftests/nolibc/nolibc-test.c | 61 +++++++
15 files changed, 577 insertions(+), 110 deletions(-)