[libc-commits] [libc] [libc] Add program_invocation(_short)_name and tweak err.h functions (PR #212448)
Pavel Labath via libc-commits
libc-commits at lists.llvm.org
Mon Aug 3 02:16:12 PDT 2026
================
@@ -83,6 +85,15 @@ static TLSDescriptor tls;
// Initialize the POSIX global declared in unistd.h
environ = reinterpret_cast<char **>(env_ptr);
+ if (app.args->argc > 0 && app.args->argv[0] != 0) {
----------------
labath wrote:
For better or worse `argv` is defined as `uintptr_t[]` (that's why there's a cast below).
https://github.com/llvm/llvm-project/pull/212448
More information about the libc-commits
mailing list