[all-commits] [llvm/llvm-project] bef95e: [libc][stdlib] Add unsetenv (#202422)
Jeff Bailey via All-commits
all-commits at lists.llvm.org
Thu Jun 25 07:07:30 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bef95e54674592946530fdda73e4fea7809263f3
https://github.com/llvm/llvm-project/commit/bef95e54674592946530fdda73e4fea7809263f3
Author: Jeff Bailey <jbailey at raspberryginger.com>
Date: 2026-06-25 (Thu, 25 Jun 2026)
Changed paths:
M libc/config/linux/aarch64/entrypoints.txt
M libc/config/linux/riscv/entrypoints.txt
M libc/config/linux/x86_64/entrypoints.txt
M libc/include/stdlib.yaml
M libc/src/CMakeLists.txt
M libc/src/stdlib/CMakeLists.txt
M libc/src/stdlib/environ_internal.cpp
M libc/src/stdlib/environ_internal.h
M libc/src/stdlib/linux/CMakeLists.txt
A libc/src/stdlib/linux/unsetenv.cpp
A libc/src/stdlib/unsetenv.h
M libc/test/integration/src/stdlib/CMakeLists.txt
A libc/test/integration/src/stdlib/unsetenv_test.cpp
Log Message:
-----------
[libc][stdlib] Add unsetenv (#202422)
Added the POSIX unsetenv() function and its internal support.
Implemented EnvironmentManager::unset() to remove a variable by name,
free the string if allocated, and compact the array.
Updated EnvironmentManager to synchronize the public global environ
pointer when transitioning to managed storage.
Registered for x86_64, aarch64, and riscv. Integration tests cover basic
operations and edge cases.
Assisted-by: Automated tooling, human reviewed.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list