Mercurial > gnulib
annotate modules/secure_getenv @ 17313:8108e0239bb6
secure_getenv: new module
* MODULES.html.sh (Extra functions based on ANSI C 89):
Add secure_getenv.
* doc/glibc-functions/secure_getenv.texi: New file.
* doc/gnulib.texi: Include it.
* lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
New files.
* lib/stdlib.in.h (secure_getenv): New decl.
* m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
* modules/stdlib (stdlib.h):
Add secure_getenv checks.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Mon, 04 Feb 2013 18:33:23 -0800 |
parents | |
children |
rev | line source |
---|---|
17313 | 1 Description: |
2 Look up an environment variable, returning 0 in insecure situations. | |
3 | |
4 Files: | |
5 lib/secure_getenv.c | |
6 m4/secure_getenv.m4 | |
7 | |
8 Depends-on: | |
9 stdlib | |
10 extensions | |
11 | |
12 configure.ac: | |
13 gl_FUNC_SECURE_GETENV | |
14 if test $HAVE_SECURE_GETENV = 0; then | |
15 AC_LIBOBJ([secure_getenv]) | |
16 gl_PREREQ_SECURE_GETENV | |
17 fi | |
18 gl_STDLIB_MODULE_INDICATOR([secure_getenv]) | |
19 | |
20 Makefile.am: | |
21 | |
22 Include: | |
23 <stdlib.h> | |
24 | |
25 Link: | |
26 | |
27 License: | |
28 LGPLv2+ | |
29 | |
30 Maintainer: | |
31 all |