ClickHouse/base/glibc-compatibility/musl/secure_getenv.c
2020-11-24 17:55:02 +03:00

9 lines
162 B
C

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