Dynamic Load Balance
3.6.1+32-59d1
src
support
env.h
Go to the documentation of this file.
1
/*********************************************************************************/
2
/* Copyright 2009-2021 Barcelona Supercomputing Center */
3
/* */
4
/* This file is part of the DLB library. */
5
/* */
6
/* DLB is free software: you can redistribute it and/or modify */
7
/* it under the terms of the GNU Lesser General Public License as published by */
8
/* the Free Software Foundation, either version 3 of the License, or */
9
/* (at your option) any later version. */
10
/* */
11
/* DLB is distributed in the hope that it will be useful, */
12
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
13
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
14
/* GNU Lesser General Public License for more details. */
15
/* */
16
/* You should have received a copy of the GNU Lesser General Public License */
17
/* along with DLB. If not, see <https://www.gnu.org/licenses/>. */
18
/*********************************************************************************/
19
20
#ifndef ENV_H
21
#define ENV_H
22
23
typedef
enum
env_add_condition_e {
24
ENV_OVERWRITE_NEVER
,
/* variable is set only if name does not exist */
25
ENV_OVERWRITE_ALWAYS
,
/* variable is set even if name exists */
26
ENV_UPDATE_IF_EXISTS
,
/* variable is set only if name exists */
27
ENV_APPEND
/* variable is updated appending value */
28
}
env_add_condition_t
;
29
30
void
dlb_setenv
(
const
char
*name,
const
char
*value,
char
***next_environ,
31
env_add_condition_t
condition);
32
33
#endif
/* ENV_H */
env_add_condition_t
env_add_condition_t
Definition:
env.h:23
ENV_OVERWRITE_ALWAYS
@ ENV_OVERWRITE_ALWAYS
Definition:
env.h:25
ENV_UPDATE_IF_EXISTS
@ ENV_UPDATE_IF_EXISTS
Definition:
env.h:26
ENV_APPEND
@ ENV_APPEND
Definition:
env.h:27
ENV_OVERWRITE_NEVER
@ ENV_OVERWRITE_NEVER
Definition:
env.h:24
dlb_setenv
void dlb_setenv(const char *name, const char *value, char ***next_environ, env_add_condition_t condition)
Definition:
env.c:88
Generated by
1.9.4