File:  [DVB] / dietlibc / lib / secure_getenv.c
Revision 1.1: download - view: text, annotated - select for diffs
Thu Aug 31 23:26:33 2017 UTC (6 years, 9 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
add secure_getenv

#define _GNU_SOURCE
#include <stdlib.h>
#include <sys/auxv.h>

char* secure_getenv(const char* name) {
  if (getauxval(AT_SECURE))
    return NULL;
  return getenv(name);
}

LinuxTV legacy CVS <linuxtv.org/cvs>