diff options
Diffstat (limited to 'lib/stdlib.in.h')
| -rw-r--r-- | lib/stdlib.in.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index 422ad714c32..e054c520ebe 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h | |||
| @@ -767,6 +767,22 @@ _GL_WARN_ON_USE (rpmatch, "rpmatch is unportable - " | |||
| 767 | # endif | 767 | # endif |
| 768 | #endif | 768 | #endif |
| 769 | 769 | ||
| 770 | #if @GNULIB_SECURE_GETENV@ | ||
| 771 | /* Look up NAME in the environment, returning 0 in insecure situations. */ | ||
| 772 | # if !@HAVE_SECURE_GETENV@ | ||
| 773 | _GL_FUNCDECL_SYS (secure_getenv, char *, | ||
| 774 | (char const *name) _GL_ARG_NONNULL ((1))); | ||
| 775 | # endif | ||
| 776 | _GL_CXXALIAS_SYS (secure_getenv, int, (char const *name)); | ||
| 777 | _GL_CXXALIASWARN (secure_getenv); | ||
| 778 | #elif defined GNULIB_POSIXCHECK | ||
| 779 | # undef secure_getenv | ||
| 780 | # if HAVE_RAW_DECL_SECURE_GETENV | ||
| 781 | _GL_WARN_ON_USE (secure_getenv, "secure_getenv is unportable - " | ||
| 782 | "use gnulib module secure_getenv for portability"); | ||
| 783 | # endif | ||
| 784 | #endif | ||
| 785 | |||
| 770 | #if @GNULIB_SETENV@ | 786 | #if @GNULIB_SETENV@ |
| 771 | /* Set NAME to VALUE in the environment. | 787 | /* Set NAME to VALUE in the environment. |
| 772 | If REPLACE is nonzero, overwrite an existing value. */ | 788 | If REPLACE is nonzero, overwrite an existing value. */ |