summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-01-05 23:02:22 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-01-05 23:02:22 +0000
commitd48aad15ce8341c5b633c9edb2a873a912c3d5d4 (patch)
treedeb4d9f669dd381ca46ed20e56e9ec7077b50a8d
parent83fdaa079f7e26388cd761ef8c01a12d56ee0d4d (diff)
downloadATCD-d48aad15ce8341c5b633c9edb2a873a912c3d5d4.tar.gz
added ACE_OS::putenv
-rw-r--r--ace/OS.h2
-rw-r--r--ace/OS.i7
2 files changed, 9 insertions, 0 deletions
diff --git a/ace/OS.h b/ace/OS.h
index 758753a5fc9..c6e52d41ae0 100644
--- a/ace/OS.h
+++ b/ace/OS.h
@@ -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);
diff --git a/ace/OS.i b/ace/OS.i
index 36338c3e220..c8951776a18 100644
--- a/ace/OS.i
+++ b/ace/OS.i
@@ -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)
{