envLib.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:2k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* envLib.h - environment varable library header file */
  2. /* Copyright 1984-1992 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01i,22sep92,rrr  added support for c++
  7. 01h,19jul92,smb  moved prototype for getenv to stdlib.h
  8.                  added include stdlib.h
  9. 01g,04jul92,jcf  cleaned up.
  10. 01f,26may92,rrr  the tree shuffle
  11. 01e,09dec91,rrr  fixed bad prototype (envShow).
  12. 01d,04oct91,rrr  passed through the ansification filter
  13.   -changed copyright notice
  14. 01c,05oct90,shl  added copyright notice.
  15.                  made #endif ANSI style.
  16. 01b,01aug90,jcf  cleanup.
  17. 01a,12jul90,rdc  written.
  18. */
  19. #ifndef __INCenvLibh
  20. #define __INCenvLibh
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. #include "taskLib.h"
  25. #include "stdlib.h"
  26. /*******************************************************************************
  27. *
  28. * environ - environment pointer
  29. *
  30. * The following macro is provided for code that manipulates the environment
  31. * variable array directly.
  32. */
  33. #define environ 
  34.     (       
  35.     (taskIdCurrent->ppEnviron == NULL) ? 
  36.     ppGlobalEnviron : taskIdCurrent->ppEnviron 
  37.     )
  38. #if defined(__STDC__) || defined(__cplusplus)
  39. extern STATUS  envLibInit (BOOL installHooks);
  40. extern STATUS  envPrivateCreate (int taskId, int envSource);
  41. extern STATUS  envPrivateDestroy (int taskId);
  42. extern STATUS  putenv (char *pEnvString);
  43. extern void  envShow (int taskId);
  44. #else /* __STDC__ */
  45. extern STATUS  envLibInit ();
  46. extern STATUS  envPrivateCreate ();
  47. extern STATUS  envPrivateDestroy ();
  48. extern STATUS  putenv ();
  49. extern void  envShow ();
  50. #endif /* __STDC__ */
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54. #endif /* __INCenvLibh */