getenv(3) Library Functions Manual getenv(3) getenv, secure_getenv - LIBRARY Standard C library (libc, -lc) #include char *getenv(const char *name); char *secure_getenv(const char *name); glibc (. feature_test_macros(7)): secure_getenv(): _GNU_SOURCE getenv() name value. GNU secure_getenv() getenv(), NULL, << >>. , : o ID ID ID ID ( set-user-ID set-group-ID); o ; o . Linux. secure_getenv() , , set-user-ID set-group-ID . getenv() NULL, . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |getenv(), secure_getenv() | | MT-Safe env | +----------------------------+----------------------------------------------------------+--------------------------+ getenv() C11, POSIX.1-2008. secure_getenv() GNU. getenv() POSIX.1-2001, C89, C99, SVr4, 4.3BSD. secure_getenv() glibc 2.17. =. getenv() . , . getenv() . , getenv(), getenv() putenv(3), setenv(3) unsetenv(3). << >> secure_getenv() AT_SECURE , . . clearenv(3), getauxval(3), putenv(3), setenv(3), unsetenv(3), capabilities(7), environ(7) Azamat Hackimov , Dmitry Bolkhovskikh , Vladislav , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . getenv(3)