OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [gdb/] [environ.h] - Blame information for rev 321

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.