commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r803579 - in /commons/sandbox/runtime/trunk/src/main/native/os: linux/env.c solaris/env.c win32/env.c
Date Wed, 12 Aug 2009 16:11:37 GMT
Author: mturk
Date: Wed Aug 12 16:11:36 2009
New Revision: 803579

URL: http://svn.apache.org/viewvc?rev=803579&view=rev
Log:
Add env api header file

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/linux/env.c
    commons/sandbox/runtime/trunk/src/main/native/os/solaris/env.c
    commons/sandbox/runtime/trunk/src/main/native/os/win32/env.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/linux/env.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/linux/env.c?rev=803579&r1=803578&r2=803579&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/linux/env.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/linux/env.c Wed Aug 12 16:11:36 2009
@@ -19,6 +19,7 @@
 #include "acr_arch.h"
 #include "acr_error.h"
 #include "acr_memory.h"
+#include "acr_env.h"
 
 
 ACR_DECLARE(char *) ACR_EnvGet(const char *var)

Modified: commons/sandbox/runtime/trunk/src/main/native/os/solaris/env.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/solaris/env.c?rev=803579&r1=803578&r2=803579&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/solaris/env.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/solaris/env.c Wed Aug 12 16:11:36 2009
@@ -19,6 +19,7 @@
 #include "acr_arch.h"
 #include "acr_error.h"
 #include "acr_memory.h"
+#include "acr_env.h"
 
 ACR_DECLARE(char *) ACR_EnvGet(const char *var)
 {

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/env.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/env.c?rev=803579&r1=803578&r2=803579&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/env.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/env.c Wed Aug 12 16:11:36 2009
@@ -20,6 +20,7 @@
 #include "acr_arch.h"
 #include "acr_error.h"
 #include "acr_memory.h"
+#include "acr_env.h"
 
 static int _msvcrt_putenv(const char *envstring)
 {
@@ -126,7 +127,6 @@
 
 ACR_DECLARE(int) ACR_EnvSet(const char *var, const char *val)
 {
-    int rc;
     char *estr;
 
     if (!var || !*var || !val) {
@@ -139,7 +139,7 @@
 
     /* Override the existing setting by forcibly defining the var */
     sprintf(estr, "%s=%s", var, val);
-    if (msvcrt_putenv(estr)) {
+    if (_msvcrt_putenv(estr)) {
         int se = errno;
         free(estr);
         errno = se;
@@ -166,7 +166,7 @@
 
     /* Override the existing setting by forcibly defining the var */
     sprintf(estr, "%s=", var);
-    if (msvcrt_putenv(estr)) {
+    if (_msvcrt_putenv(estr)) {
         int se = errno;
         free(estr);
         errno = se;



Mime
View raw message