69 lines
1.7 KiB
C
69 lines
1.7 KiB
C
/* envLib.h - environment varable library header file */
|
|
|
|
/*
|
|
* Copyright (c) 1990-2005 Wind River Systems, Inc.
|
|
*
|
|
* The right to copy, distribute or otherwise make use of this software
|
|
* may be licensed only pursuant to the terms of an applicable Wind River
|
|
* license agreement.
|
|
*/
|
|
|
|
/*
|
|
modification history
|
|
--------------------
|
|
01k,27apr05,kk add NOMANUAL to environ macro for apigen (SPR# 108372)
|
|
01j,17mar04,pad Added envGet() prototype.
|
|
01i,22sep92,rrr added support for c++
|
|
01h,19jul92,smb moved prototype for getenv to stdlib.h
|
|
added include stdlib.h
|
|
01g,04jul92,jcf cleaned up.
|
|
01f,26may92,rrr the tree shuffle
|
|
01e,09dec91,rrr fixed bad prototype (envShow).
|
|
01d,04oct91,rrr passed through the ansification filter
|
|
-changed copyright notice
|
|
01c,05oct90,shl added copyright notice.
|
|
made #endif ANSI style.
|
|
01b,01aug90,jcf cleanup.
|
|
01a,12jul90,rdc written.
|
|
*/
|
|
|
|
|
|
#ifndef __INCenvLibh
|
|
#define __INCenvLibh
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "taskLib.h"
|
|
#include "stdlib.h"
|
|
|
|
/*******************************************************************************
|
|
*
|
|
* environ - environment pointer
|
|
*
|
|
* The following macro is provided for code that manipulates the environment
|
|
* variable array directly.
|
|
*
|
|
* \NOMANUAL
|
|
*/
|
|
|
|
#define environ \
|
|
( \
|
|
(taskIdCurrent->ppEnviron == NULL) ? \
|
|
ppGlobalEnviron : taskIdCurrent->ppEnviron \
|
|
)
|
|
|
|
extern STATUS envLibInit (BOOL installHooks);
|
|
extern STATUS envPrivateCreate (int taskId, int envSource);
|
|
extern STATUS envPrivateDestroy (int taskId);
|
|
extern char ** envGet (int taskId);
|
|
extern STATUS putenv (char * pEnvString);
|
|
extern void envShow (int taskId);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __INCenvLibh */
|