summaryrefslogblamecommitdiffstats
path: root/include/env.h
blob: 9c6a3fd1780615be30d966849e8712a4d1a555b7 (plain) (tree)
1
2
3
4
5
6


                        
                                

                                          






                                                                              
                             
 
#ifndef UTIL_LINUX_ENV_H
#define UTIL_LINUX_ENV_H

extern void sanitize_env (void);
extern char *safe_getenv(const char *arg);

static inline void
xsetenv (char const *name, char const *val, int overwrite)
{
  if (setenv (name, val, overwrite) != 0)
    err (EXIT_FAILURE,  _("failed to set the %s environment variable"), name);
}

#endif /* UTIL_LINUX_ENV_H */