test suite fixlet for gdb.trace
[deliverable/binutils-gdb.git] / gdb / environ.h
CommitLineData
c906108c 1/* Header for environment manipulation library.
28e7fd62 2 Copyright (C) 1989-2013 Free Software Foundation, Inc.
c906108c 3
c5aa993b
JM
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
a9762ec7 6 the Free Software Foundation; either version 3 of the License, or
c5aa993b 7 (at your option) any later version.
c906108c 8
c5aa993b
JM
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
c906108c 13
c5aa993b 14 You should have received a copy of the GNU General Public License
a9762ec7 15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
c906108c
SS
16
17#if !defined (ENVIRON_H)
18#define ENVIRON_H 1
19
20/* We manipulate environments represented as these structures. */
21
1bf1958d 22struct gdb_environ
c5aa993b
JM
23 {
24 /* Number of usable slots allocated in VECTOR.
25 VECTOR always has one slot not counted here,
26 to hold the terminating zero. */
27 int allocated;
28 /* A vector of slots, ALLOCATED + 1 of them.
29 The first few slots contain strings "VAR=VALUE"
30 and the next one contains zero.
31 Then come some unused slots. */
32 char **vector;
33 };
c906108c 34
1bf1958d 35extern struct gdb_environ *make_environ (void);
c906108c 36
1bf1958d 37extern void free_environ (struct gdb_environ *);
c906108c 38
1bf1958d 39extern void init_environ (struct gdb_environ *);
c906108c 40
1bf1958d 41extern char *get_in_environ (const struct gdb_environ *, const char *);
c906108c 42
1bf1958d 43extern void set_in_environ (struct gdb_environ *, const char *, const char *);
c906108c 44
1bf1958d 45extern void unset_in_environ (struct gdb_environ *, char *);
c906108c 46
1bf1958d 47extern char **environ_vector (struct gdb_environ *);
c906108c 48
c5aa993b 49#endif /* defined (ENVIRON_H) */
This page took 0.915968 seconds and 4 git commands to generate.