27 #ifndef OPAL_ENVIRON_H
28 #define OPAL_ENVIRON_H
30 #include "opal_config.h"
32 #ifdef HAVE_CRT_EXTERNS_H
33 #include <crt_externs.h>
61 OPAL_DECLSPEC
char **
opal_environ_merge(
char **minor,
char **major) __opal_attribute_warn_unused_result__;
109 OPAL_DECLSPEC
int opal_setenv(
const char *name,
const char *value,
110 bool overwrite,
char ***env) __opal_attribute_nonnull__(1);
126 OPAL_DECLSPEC
int opal_unsetenv(
const char *name,
char ***env) __opal_attribute_nonnull__(1);
131 OPAL_DECLSPEC
const char* opal_home_directory(
void );
132 OPAL_DECLSPEC
const char* opal_tmp_directory(
void );
136 #if !defined(__WINDOWS__)
138 #ifdef HAVE__NSGETENVIRON
139 #define environ (*_NSGetEnviron())
141 OPAL_DECLSPEC
extern char **environ;
OPAL_DECLSPEC int opal_unsetenv(const char *name, char ***env) __opal_attribute_nonnull__(1)
Portable version of unsetenv(3), allowing editing of any environ-like array.
Definition: opal_environ.c:180
BEGIN_C_DECLS OPAL_DECLSPEC char ** opal_environ_merge(char **minor, char **major) __opal_attribute_warn_unused_result__
Merge two environ-like arrays into a single, new array, ensuring that there are no duplicate entries...
Definition: opal_environ.c:43
OPAL_DECLSPEC int opal_setenv(const char *name, const char *value, bool overwrite, char ***env) __opal_attribute_nonnull__(1)
Portable version of setenv(3), allowing editing of any environ-like array.
Definition: opal_environ.c:97