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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [environ.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/* Header for environment manipulation library.
2
   Copyright 1989, 1992, 2000 Free Software Foundation, Inc.
3
 
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
6
   the Free Software Foundation; either version 2 of the License, or
7
   (at your option) any later version.
8
 
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.
13
 
14
   You should have received a copy of the GNU General Public License
15
   along with this program; if not, write to the Free Software
16
   Foundation, Inc., 59 Temple Place - Suite 330,
17
   Boston, MA 02111-1307, USA.  */
18
 
19
#if !defined (ENVIRON_H)
20
#define ENVIRON_H 1
21
 
22
/* We manipulate environments represented as these structures.  */
23
 
24
struct environ
25
  {
26
    /* Number of usable slots allocated in VECTOR.
27
       VECTOR always has one slot not counted here,
28
       to hold the terminating zero.  */
29
    int allocated;
30
    /* A vector of slots, ALLOCATED + 1 of them.
31
       The first few slots contain strings "VAR=VALUE"
32
       and the next one contains zero.
33
       Then come some unused slots.  */
34
    char **vector;
35
  };
36
 
37
extern struct environ *make_environ (void);
38
 
39
extern void free_environ (struct environ *);
40
 
41
extern void init_environ (struct environ *);
42
 
43
extern char *get_in_environ (const struct environ *, const char *);
44
 
45
extern void set_in_environ (struct environ *, const char *, const char *);
46
 
47
extern void unset_in_environ (struct environ *, char *);
48
 
49
extern char **environ_vector (struct environ *);
50
 
51
#endif /* defined (ENVIRON_H) */

powered by: WebSVN 2.1.0

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