Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4973 | right-hear | 1 | /* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */ |
2 | #ifndef __dj_include_libc_environ_h_ |
||
3 | #define __dj_include_libc_environ_h_ |
||
4 | |||
5 | #ifdef __cplusplus |
||
6 | extern "C" { |
||
7 | #endif |
||
8 | |||
9 | #ifndef __dj_ENFORCE_ANSI_FREESTANDING |
||
10 | |||
11 | #ifndef __STRICT_ANSI__ |
||
12 | |||
13 | #ifndef _POSIX_SOURCE |
||
14 | |||
15 | /* This starts at 1 and gets incremented every time some |
||
16 | variable in the environment is added, deleted, or changes |
||
17 | its value. It is meant to be used by functions that depend |
||
18 | on values of environment variables, but don't want to call |
||
19 | `getenv' unnecessarily (example: `__use_lfn'). |
||
20 | |||
21 | To use this feature, define a static variable that is |
||
22 | initialized to zero, and compare its value with the value of |
||
23 | `__environ_changed': if they differ, you should call `getenv' |
||
24 | (and record the last value of `__environ_changed' you've seen). */ |
||
25 | extern unsigned __environ_changed; |
||
26 | |||
27 | #endif /* !_POSIX_SOURCE */ |
||
28 | #endif /* !__STRICT_ANSI__ */ |
||
29 | #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */ |
||
30 | |||
31 | #ifndef __dj_ENFORCE_FUNCTION_CALLS |
||
32 | #endif /* !__dj_ENFORCE_FUNCTION_CALLS */ |
||
33 | |||
34 | #ifdef __cplusplus |
||
35 | } |
||
36 | #endif |
||
37 | |||
38 | #endif /* !__dj_include_environ_h_ */ |