diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-01-05 23:02:22 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-01-05 23:02:22 +0000 |
commit | d48aad15ce8341c5b633c9edb2a873a912c3d5d4 (patch) | |
tree | deb4d9f669dd381ca46ed20e56e9ec7077b50a8d | |
parent | 83fdaa079f7e26388cd761ef8c01a12d56ee0d4d (diff) | |
download | ATCD-d48aad15ce8341c5b633c9edb2a873a912c3d5d4.tar.gz |
added ACE_OS::putenv
-rw-r--r-- | ace/OS.h | 2 | ||||
-rw-r--r-- | ace/OS.i | 7 |
2 files changed, 9 insertions, 0 deletions
@@ -1899,6 +1899,7 @@ protected: // can be taken recursively). # include /**/ <semLib.h> +# include /**/ <envLib.h> # include /**/ <hostLib.h> # include /**/ <ioLib.h> # include /**/ <remLib.h> @@ -3840,6 +3841,7 @@ public: // = A set of wrappers for miscellaneous operations. static int atoi (const char *s); static char *getenv (const char *symbol); + static int putenv (const char *string); static int getopt (int argc, char *const *argv, const char *optstring); @@ -7769,6 +7769,13 @@ ACE_OS::getenv (const char *symbol) ACE_OSCALL_RETURN (::getenv (symbol), char *, 0); } +ACE_INLINE int +ACE_OS::putenv (const char *string) +{ + // ACE_TRACE ("ACE_OS::putenv"); + ACE_OSCALL_RETURN (::putenv (string), int, -1); +} + ACE_INLINE ACE_Str_Buf::ACE_Str_Buf (void *b, int l, int max) { |