glibc-compatibility: Add secure_getenv().

This commit is contained in:
Vitaly Baranov 2020-11-14 11:37:15 +03:00
parent 3253a525e2
commit 7b0f94b5f2

View File

@ -0,0 +1,8 @@
#define _GNU_SOURCE
#include <stdlib.h>
#include <sys/auxv.h>
char * secure_getenv(const char * name)
{
return getauxval(AT_SECURE) ? NULL : getenv(name);
}