linux/tools/include/nolibc
Thomas Weißschuh 638b481613 tools/nolibc: cast default values of program_invocation_name
With -Wwrite-strings the plain assignment triggers a warning as a
'const char *' is assigned to a 'char *', removing the const qualifier.

Casting the const away is fine, as there is no valid modification that
can be done to an empty string anyways.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://patch.msgid.link/20260525-nolibc-write-strings-v2-1-ab5cc16c7b23@weissschuh.net
2026-05-26 21:06:12 +02:00
..
sys tools/nolibc: cast pointers returned from system calls through integers 2026-04-27 20:08:54 +02:00
.gitignore tools/nolibc: Add gitignore to avoid git complaints about sysroot 2023-03-20 08:45:21 -07:00
alloca.h tools/nolibc: add alloca() 2026-04-27 09:00:50 +02:00
arch-arm.h tools/nolibc: add ftruncate() 2026-05-24 23:58:04 +02:00
arch-arm64.h tools/nolibc: Rename __no_stack_protector to __nolibc_no_stack_protector 2026-04-27 18:14:47 +02:00
arch-loongarch.h tools/nolibc: Rename __no_stack_protector to __nolibc_no_stack_protector 2026-04-27 18:14:47 +02:00
arch-m68k.h tools/nolibc: Rename __no_stack_protector to __nolibc_no_stack_protector 2026-04-27 18:14:47 +02:00
arch-mips.h tools/nolibc: add ftruncate() 2026-05-24 23:58:04 +02:00
arch-openrisc.h tools/nolibc: add support for OpenRISC / or1k 2026-05-03 16:34:58 +02:00
arch-parisc.h tools/nolibc: add support for 32-bit parisc 2026-05-03 16:39:54 +02:00
arch-powerpc.h tools/nolibc: add ftruncate() 2026-05-24 23:58:04 +02:00
arch-riscv.h tools/nolibc: Rename __no_stack_protector to __nolibc_no_stack_protector 2026-04-27 18:14:47 +02:00
arch-s390.h tools/nolibc: Rename __no_stack_protector to __nolibc_no_stack_protector 2026-04-27 18:14:47 +02:00
arch-sh.h tools/nolibc: Rename __no_stack_protector to __nolibc_no_stack_protector 2026-04-27 18:14:47 +02:00
arch-sparc.h tools/nolibc: Rename __no_stack_protector to __nolibc_no_stack_protector 2026-04-27 18:14:47 +02:00
arch-x86.h tools/nolibc: handle 64-bit system call arguments on x32 2026-04-27 20:09:00 +02:00
arch.h tools/nolibc: add support for 32-bit parisc 2026-05-03 16:39:54 +02:00
assert.h tools/nolibc: add assert() and assert.h 2026-04-27 09:00:49 +02:00
byteswap.h tools/nolibc: add byteorder conversions 2026-04-07 09:27:25 +02:00
compiler.h tools/nolibc: Rename __no_stack_protector to __nolibc_no_stack_protector 2026-04-27 18:14:47 +02:00
crt.h tools/nolibc: add __nolibc_arg_to_reg() 2026-04-27 20:08:48 +02:00
ctype.h tools/nolibc: include nolibc.h early from all header files 2025-05-21 15:31:50 +02:00
dirent.h tools/nolibc: rename sys_foo() functions to _sys_foo() 2026-03-22 11:03:59 +01:00
elf.h tools/nolibc: include nolibc.h early from all header files 2025-05-21 15:31:50 +02:00
endian.h tools/nolibc: add byteorder conversions 2026-04-07 09:27:25 +02:00
err.h tools/nolibc: add err.h 2026-03-22 10:40:37 +01:00
errno.h tools/nolibc: cast default values of program_invocation_name 2026-05-26 21:06:12 +02:00
fcntl.h tools/nolibc: always pass mode to open syscall 2026-05-14 17:41:14 +02:00
getopt.h tools/nolibc: getopt: Fix potential out of bounds access 2026-05-20 18:43:17 +02:00
inttypes.h tools/nolibc: add the more portable inttypes.h 2025-11-02 14:28:20 +01:00
limits.h tools/nolibc: add limits.h shim header 2025-03-03 20:00:12 +01:00
Makefile tools/nolibc: add support for 32-bit parisc 2026-05-03 16:39:54 +02:00
math.h tools/nolibc: add abs() and friends 2025-05-21 15:32:05 +02:00
nolibc.h tools/nolibc: add alloca() 2026-04-27 09:00:50 +02:00
poll.h tools/nolibc: rename sys_foo() functions to _sys_foo() 2026-03-22 11:03:59 +01:00
sched.h tools/nolibc: rename sys_foo() functions to _sys_foo() 2026-03-22 11:03:59 +01:00
signal.h tools/nolibc: rename sys_foo() functions to _sys_foo() 2026-03-22 11:03:59 +01:00
stackprotector.h tools/nolibc: stackprotector: Avoid stalling program startup if crng is not init yet 2026-05-24 23:52:58 +02:00
std.h tools/nolibc: make dev_t 64 bits wide 2026-04-04 10:28:57 +02:00
stdarg.h tools/nolibc: add stdarg.h header 2023-10-12 21:13:52 +02:00
stdbool.h tools/nolibc: add stdbool.h header 2024-07-29 07:52:57 +02:00
stddef.h tools/nolibc: use __builtin_offsetof() 2026-04-04 10:48:14 +02:00
stdint.h tools/nolibc: use intmax definitions from compiler 2025-04-22 10:56:24 +02:00
stdio.h tools/nolibc: add support for asprintf() 2026-04-06 19:46:51 +02:00
stdlib.h tools/nolibc: check for overflow in calloc() without divisions 2026-04-06 19:46:52 +02:00
string.h tools/nolibc: add missing memchr() to string.h 2025-11-02 12:11:48 +01:00
sys.h tools/nolibc: add a helper to split a 64-bit argument into 32-bit halves 2026-05-24 23:57:59 +02:00
time.h tools/nolibc: rename sys_foo() functions to _sys_foo() 2026-03-22 11:03:59 +01:00
types.h tools/nolibc: always use 64-bit time types 2026-01-04 10:29:03 +01:00
unistd.h tools/nolibc: add ftruncate() 2026-05-24 23:58:04 +02:00