MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / jemalloc_secure_getenv

Function jemalloc_secure_getenv

deps/memkind/src/jemalloc/src/jemalloc.c:696–708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

694 */
695
696static char *
697jemalloc_secure_getenv(const char *name) {
698#ifdef JEMALLOC_HAVE_SECURE_GETENV
699 return secure_getenv(name);
700#else
701# ifdef JEMALLOC_HAVE_ISSETUGID
702 if (issetugid() != 0) {
703 return NULL;
704 }
705# endif
706 return getenv(name);
707#endif
708}
709
710static unsigned
711malloc_ncpus(void) {

Callers 1

malloc_conf_initFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected