summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-12-27 09:24:07 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2017-01-14 18:31:49 +0100
commit50dd36a50ad76dee11edd67e69b5e0da11871fad (patch)
treeaf8f4703888682093d59d4705db028467017caac /include
parentf21612d0097cde145c6a9a1b3127e99e83100448 (diff)
add secure_getenv() function
Diffstat (limited to 'include')
-rw-r--r--include/stdlib.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index a108c84a9..cbc0473f4 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -575,12 +575,10 @@ extern char *getenv (const char *__name) __THROW __nonnull ((1)) __wur;
libc_hidden_proto(getenv)
__END_NAMESPACE_STD
-#if 0
/* This function is similar to the above but returns NULL if the
programs is running with SUID or SGID enabled. */
-extern char *__secure_getenv (const char *__name)
+extern char *secure_getenv (const char *__name)
__THROW __nonnull ((1)) __wur;
-#endif
#if defined __USE_SVID || defined __USE_XOPEN
/* The SVID says this is in <stdio.h>, but this seems a better place. */