clearenv(3) Library Functions Manual clearenv(3) clearenv - C (libc, -lc) #include int clearenv(void); glibc (. feature_test_macros(7)): clearenv(): /* glibc >= 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _SVID_SOURCE || _BSD_SOURCE clearenv() - environ NULL. putenv(3) setenv(3). clearenv() . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |clearenv() | | MT-Unsafe const:env | +----------------------------+----------------------------------------------------------+--------------------------+ putenv() POSIX.1-2008. clearenv() . putenv() glibc 2.0. POSIX.1-2001. clearenv() glibc 2.0. UNIX (DG/UX, HP-UX, QNX, ) POSIX.9 ( FORTRAN77). POSIX.1-1996 clearenv() putenv() , , (
B.4.6.1). , POSIX.1-2001 putenv(), clearenv() -- . , clearenv() , environ = NULL; . clearenv() , , , exec(3). , . , clearenv() environ(7); , . DG/UX Tru64 : environ putenv(3), getenv(3) clearenv(), clearenv() . getenv(3), putenv(3), setenv(3), unsetenv(3), environ(7) () Azamat Hackimov , Dmitriy S. Seregin , Dmitry Bolkhovskikh , Katrin Kutepova , Yuri Kozlov , Kirill Rekhov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . clearenv(3)