axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r374622 - /webservices/axis2/trunk/c/modules/util/file_handler.c
Date Fri, 03 Feb 2006 09:48:59 GMT
Author: damitha
Date: Fri Feb  3 01:48:54 2006
New Revision: 374622

URL: http://svn.apache.org/viewcvs?rev=374622&view=rev
Log:
removed env specific code

Modified:
    webservices/axis2/trunk/c/modules/util/file_handler.c

Modified: webservices/axis2/trunk/c/modules/util/file_handler.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/util/file_handler.c?rev=374622&r1=374621&r2=374622&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/util/file_handler.c (original)
+++ webservices/axis2/trunk/c/modules/util/file_handler.c Fri Feb  3 01:48:54 2006
@@ -17,23 +17,24 @@
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
-#include <unistd.h>
+#include <axis2_platform_auto_sense.h>
 
 #include <axis2_file_handler.h>
 
 void* AXIS2_CALL 
 axis2_file_handler_open(const axis2_char_t *file_name, 
-                            const axis2_char_t *options,
-                            axis2_env_t **env)
+                            const axis2_char_t *options)
+                            
 {
     FILE *file_ptr;
-    axis2_char_t *f_opt;
-	axis2_char_t *f_name = (axis2_char_t*) AXIS2_STRDUP(file_name, env);
-	if(!f_name) return NULL;
-	    f_opt = (axis2_char_t*) AXIS2_STRDUP(options, env);
-	if(!f_opt) return NULL;
 	
-	file_ptr = fopen (f_name, f_opt);
+	if (!file_name)
+		return NULL;
+
+	if (!options)
+		return NULL;
+	
+	file_ptr = fopen (file_name, options);
 	return file_ptr;
 }
 
@@ -50,7 +51,7 @@
 {
     int i = 0;
     axis2_status_t status = AXIS2_FAILURE;
-    i = access(path, mode);
+    i = AXIS2_ACCESS(path, mode);
     if(0 == i)
     {
         status = AXIS2_SUCCESS;



Mime
View raw message