sl@0
|
1 |
/************************************************************************
|
sl@0
|
2 |
*
|
sl@0
|
3 |
* environ.h - declarations of testsuite helpers
|
sl@0
|
4 |
*
|
sl@0
|
5 |
* $Id: environ.h 290013 2005-09-18 23:47:55Z sebor $
|
sl@0
|
6 |
*
|
sl@0
|
7 |
************************************************************************
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Copyright (c) 1994-2005 Quovadx, Inc., acting through its Rogue Wave
|
sl@0
|
10 |
* Software division. Licensed under the Apache License, Version 2.0 (the
|
sl@0
|
11 |
* "License"); you may not use this file except in compliance with the
|
sl@0
|
12 |
* License. You may obtain a copy of the License at
|
sl@0
|
13 |
* http://www.apache.org/licenses/LICENSE-2.0. Unless required by
|
sl@0
|
14 |
* applicable law or agreed to in writing, software distributed under
|
sl@0
|
15 |
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
sl@0
|
16 |
* CONDITIONS OF ANY KIND, either express or implied. See the License
|
sl@0
|
17 |
* for the specific language governing permissions and limitations under
|
sl@0
|
18 |
* the License.
|
sl@0
|
19 |
*
|
sl@0
|
20 |
**************************************************************************/
|
sl@0
|
21 |
|
sl@0
|
22 |
#ifndef RW_ENVIRON_H_INCLUDED
|
sl@0
|
23 |
#define RW_ENVIRON_H_INCLUDED
|
sl@0
|
24 |
|
sl@0
|
25 |
|
sl@0
|
26 |
#include <testdefs.h>
|
sl@0
|
27 |
|
sl@0
|
28 |
|
sl@0
|
29 |
// rw_putenv is a wrapper for the C standard library putenv function
|
sl@0
|
30 |
// when called with the first argument of 0, rw_putenv defines any
|
sl@0
|
31 |
// environment variables specified in the RW_PUTENV environment
|
sl@0
|
32 |
// variable (e.g., RW_PUTENV=:foo=1:bar=2 will cause the variables
|
sl@0
|
33 |
// foo=1 and bar=2 to be defined in the environment)
|
sl@0
|
34 |
_TEST_EXPORT int
|
sl@0
|
35 |
rw_putenv (const char*, int = -1);
|
sl@0
|
36 |
|
sl@0
|
37 |
|
sl@0
|
38 |
#endif // RW_ENVIRON_H_INCLUDED
|