71 lines
1.9 KiB
C++
71 lines
1.9 KiB
C++
/*
|
|
* env.h Environment string operations
|
|
*
|
|
* =========================================================================
|
|
*
|
|
* Open Watcom Project
|
|
*
|
|
* Copyright (c) 2002-2010 Open Watcom Contributors. All Rights Reserved.
|
|
* Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved.
|
|
*
|
|
* This file is automatically generated. Do not edit directly.
|
|
*
|
|
* =========================================================================
|
|
*/
|
|
#ifndef _ENV_H_INCLUDED
|
|
#define _ENV_H_INCLUDED
|
|
|
|
#ifndef _ENABLE_AUTODEPEND
|
|
#pragma read_only_file;
|
|
#endif
|
|
|
|
#ifndef _COMDEF_H_INCLUDED
|
|
#include <_comdef.h>
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef __cplusplus
|
|
#ifndef _WCHAR_T_DEFINED
|
|
#define _WCHAR_T_DEFINED
|
|
#define _WCHAR_T_DEFINED_
|
|
typedef unsigned short wchar_t;
|
|
#endif
|
|
#endif
|
|
|
|
/*
|
|
* POSIX 1003.1 Prototypes.
|
|
*/
|
|
_WCRTLINK extern int clearenv( void );
|
|
#ifdef __cplusplus
|
|
namespace std {
|
|
#endif
|
|
_WCRTLINK extern char *getenv( const char *__name );
|
|
#ifdef __cplusplus
|
|
}
|
|
using std::getenv;
|
|
#endif
|
|
_WCRTLINK extern int setenv( const char *__name, const char *__newvalue,
|
|
int __overwrite );
|
|
_WCRTLINK extern void unsetenv(const char *name);
|
|
|
|
#if !defined(NO_EXT_KEYS) /* extensions enabled */
|
|
_WCRTLINK extern int putenv( const char *__env_string );
|
|
#endif /* extensions enabled */
|
|
|
|
_WCRTLINK extern int _setenv( const char *__name, const char *__newvalue,
|
|
int __overwrite );
|
|
_WCRTLINK extern wchar_t *_wgetenv( const wchar_t *__name );
|
|
_WCRTLINK extern int _wsetenv( const wchar_t *__name,
|
|
const wchar_t *__newvalue,
|
|
int __overwrite );
|
|
_WCRTLINK extern int _wputenv( const wchar_t *__env_string );
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif
|