From 04dbe8ec23fbecfc26ba96cd15cd4e3910bf4b44 Mon Sep 17 00:00:00 2001 From: raster Date: Thu, 9 Dec 2010 02:46:11 +0000 Subject: [PATCH] ok - make it 8192. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@55387 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/include/eina_file.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/include/eina_file.h b/src/include/eina_file.h index 15bc431..0a8af51 100644 --- a/src/include/eina_file.h +++ b/src/include/eina_file.h @@ -69,10 +69,13 @@ typedef enum { /* Why do this? Well PATH_MAX may vary from when eina itself is compiled * to when the app using eina is compiled. exposing the path buffer below * cant safely and portably vary based on how/when you compile. it should - * always be the same for both eina inside ANd for apps outside that use eina - * so define this ti 8192 minus ther other struct bits so that - * Eina_File_Direct_Info can take a nice round 2 pages. */ -#define EINA_PATH_MAX (8192 - (sizeof(size_t) * 3) - sizeof(Eina_File_Type)) + * always be the same for both eina inside AND for apps outside that use eina + * so define this to 8192 - most PATH_MAX values are like 4096 or 1024 (with + * windows i think being 260), so 8192 should cover almost all cases. there + * is a possibility that PATH_MAX could be more than 8192. if anyone spots + * a path_max that is bigger - let us know, but, for now we will assume + * it never happens */ +#define EINA_PATH_MAX 8192 /** * @struct _Eina_File_Direct_Info * A structure to store informations of a path. -- 2.7.4