diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2013-02-08 15:37:17 -0800 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-02-08 15:37:17 -0800 |
| commit | 8376d87efcbfa648b297c5b03b93e5c02386887d (patch) | |
| tree | 1ceabd5ebd8843023616625f85639b52c5ac1039 /lib/stdlib.in.h | |
| parent | e70e5000f0a6a945b7aad4cccea5bdfdb43a80f5 (diff) | |
| download | emacs-8376d87efcbfa648b297c5b03b93e5c02386887d.tar.gz | |
Merge from gnulib.
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 - " # endif #endif +#if @GNULIB_SECURE_GETENV@ +/* Look up NAME in the environment, returning 0 in insecure situations. */ +# if !@HAVE_SECURE_GETENV@ +_GL_FUNCDECL_SYS (secure_getenv, char *, + (char const *name) _GL_ARG_NONNULL ((1))); +# endif +_GL_CXXALIAS_SYS (secure_getenv, int, (char const *name)); +_GL_CXXALIASWARN (secure_getenv); +#elif defined GNULIB_POSIXCHECK +# undef secure_getenv +# if HAVE_RAW_DECL_SECURE_GETENV +_GL_WARN_ON_USE (secure_getenv, "secure_getenv is unportable - " + "use gnulib module secure_getenv for portability"); +# endif +#endif + #if @GNULIB_SETENV@ /* Set NAME to VALUE in the environment. If REPLACE is nonzero, overwrite an existing value. */ |
