51 static int dict_env_update(
DICT *dict,
const char *name,
const char *value)
64 if (setenv(name, value, 1))
72 static const char *dict_env_lookup(
DICT *dict,
const char *name)
90 static void dict_env_close(
DICT *dict)
104 dict->
lookup = dict_env_lookup;
105 dict->
update = dict_env_update;
106 dict->
close = dict_env_close;
void(* close)(struct DICT *)
#define DICT_FLAG_FOLD_FIX
VSTRING * vstring_strcpy(VSTRING *vp, const char *src)
#define DICT_TYPE_ENVIRON
int(* update)(struct DICT *, const char *, const char *)
#define DICT_STAT_SUCCESS
#define DICT_OWNER_TRUSTED
char * safe_getenv(const char *)
VSTRING * vstring_alloc(ssize_t len)
char * lowercase(char *string)
const char *(* lookup)(struct DICT *, const char *)
NORETURN msg_fatal(const char *fmt,...)
VSTRING * vstring_free(VSTRING *vp)
DICT * dict_env_open(const char *name, int unused_flags, int dict_flags)
DICT * dict_alloc(const char *, const char *, ssize_t)