Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/file


Modified Files:
        evas_path.c 


Log Message:


resolve symlinks...

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/file/evas_path.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- evas_path.c 8 Nov 2002 08:02:15 -0000       1.1
+++ evas_path.c 10 Jan 2003 02:05:37 -0000      1.2
@@ -8,9 +8,12 @@
 
 #ifndef _WIN32_WCE
 
+#include <limits.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include <sys/param.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <unistd.h>
 /* get the casefold feature! */
 #define _GNU_SOURCE
 #include <fnmatch.h>
@@ -120,6 +123,15 @@
    return 0;
 }
 
+char *
+evas_file_path_resolve(const char *file)
+{
+   char buf[PATH_MAX], *buf2;
+   
+   if (!realpath(file, buf)) return NULL;
+   buf2 = strdup(buf);
+   return buf2;
+}
 
 #else
 
@@ -327,7 +339,6 @@
    return files;
 }
 
-
 DATA64
 evas_file_modified_time(const char *file)
 {
@@ -352,5 +363,11 @@
    modtime.u.LowPart = find.ftCreationTime.dwLowDateTime;
    
    return modtime.QuadPart;
+}
+
+char *
+evas_file_path_resolve(const char *file)
+{
+   return strdup(file);
 }
 #endif




-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to