os/ossrv/stdcpp/tsrc/Stdcpp_test/stdcxx/include/environ.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/stdcpp/tsrc/Stdcpp_test/stdcxx/include/environ.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,38 @@
     1.4 +/************************************************************************
     1.5 + *
     1.6 + * environ.h - declarations of testsuite helpers
     1.7 + *
     1.8 + * $Id: environ.h 290013 2005-09-18 23:47:55Z sebor $
     1.9 + *
    1.10 + ************************************************************************
    1.11 + *
    1.12 + * Copyright (c) 1994-2005 Quovadx,  Inc., acting through its  Rogue Wave
    1.13 + * Software division. Licensed under the Apache License, Version 2.0 (the
    1.14 + * "License");  you may  not use this file except  in compliance with the
    1.15 + * License.    You    may   obtain   a   copy   of    the   License    at
    1.16 + * http://www.apache.org/licenses/LICENSE-2.0.    Unless   required    by
    1.17 + * applicable law  or agreed to  in writing,  software  distributed under
    1.18 + * the License is distributed on an "AS IS" BASIS,  WITHOUT WARRANTIES OR
    1.19 + * CONDITIONS OF  ANY KIND, either  express or implied.  See  the License
    1.20 + * for the specific language governing permissions  and limitations under
    1.21 + * the License.
    1.22 + *
    1.23 + **************************************************************************/
    1.24 +
    1.25 +#ifndef RW_ENVIRON_H_INCLUDED
    1.26 +#define RW_ENVIRON_H_INCLUDED
    1.27 +
    1.28 +
    1.29 +#include <testdefs.h>
    1.30 +
    1.31 +
    1.32 +// rw_putenv is a wrapper for the C standard library putenv function
    1.33 +// when called with the first argument of 0, rw_putenv defines any
    1.34 +// environment variables specified in the RW_PUTENV environment
    1.35 +// variable (e.g., RW_PUTENV=:foo=1:bar=2 will cause the variables
    1.36 +// foo=1 and bar=2 to be defined in the environment)
    1.37 +_TEST_EXPORT int
    1.38 +rw_putenv (const char*, int = -1);
    1.39 +
    1.40 +
    1.41 +#endif   // RW_ENVIRON_H_INCLUDED