Lines Matching refs:env
5 #include "env-util.h"
18 void env_put(const char *env)
24 if (putenv(p_strdup(env_pool, env)) != 0)
25 i_fatal("putenv(%s) failed: %m", env);
112 struct env_backup *env;
121 env = p_new(pool, struct env_backup, 1);
122 env->pool = pool;
123 env->strings = p_new(pool, const char *, count + 1);
125 env->strings[i] = p_strdup(pool, environ[i]);
126 return env;
129 void env_backup_restore(struct env_backup *env)
134 for (i = 0; env->strings[i] != NULL; i++)
135 env_put(env->strings[i]);
140 struct env_backup *env = *_env;
143 pool_unref(&env->pool);