summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVincent Torri <vincent dot torri at gmail dot com>2015-12-03 10:52:56 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-12-05 21:05:23 +0100
commit4f242fb48a5cf18b6e5ea6598681486abf791771 (patch)
tree046ab329439ee52df73ffefdf1657fb006b4a7c5 /src
parent3b44645363dcdd561edd9610a64f3d2c382753a9 (diff)
efl: add binary mode to fdopen() calls
This allows better compatibility with Windows Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/bin/embryo/embryo_cc_sc1.c2
-rw-r--r--src/lib/edje/edje_edit.c2
-rw-r--r--src/lib/elua/cache.c2
-rw-r--r--src/tests/elua/elua_lib.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/embryo/embryo_cc_sc1.c b/src/bin/embryo/embryo_cc_sc1.c
index 30a5329de8..b5d0c4f698 100644
--- a/src/bin/embryo/embryo_cc_sc1.c
+++ b/src/bin/embryo/embryo_cc_sc1.c
@@ -193,7 +193,7 @@ sc_eofsrc(void *handle)
193void * 193void *
194sc_openasm(int fd) 194sc_openasm(int fd)
195{ 195{
196 return fdopen(fd, "w+"); 196 return fdopen(fd, "wb+");
197} 197}
198 198
199void 199void
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index f714fc3a3f..f4f282a83a 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -10156,7 +10156,7 @@ _edje_edit_embryo_rebuild(Edje_Edit *eed)
10156 if (fd < 0) 10156 if (fd < 0)
10157 return EINA_FALSE; /* FIXME: report something */ 10157 return EINA_FALSE; /* FIXME: report something */
10158 10158
10159 f = fdopen(fd, "w"); 10159 f = fdopen(fd, "wb");
10160 if (!f) 10160 if (!f)
10161 { 10161 {
10162 close(fd); 10162 close(fd);
diff --git a/src/lib/elua/cache.c b/src/lib/elua/cache.c
index 99d7b6a220..d03d9bfb94 100644
--- a/src/lib/elua/cache.c
+++ b/src/lib/elua/cache.c
@@ -80,7 +80,7 @@ bc_tmp_open(const char *fname, char *buf, size_t buflen)
80#endif 80#endif
81 if (fd < 0) 81 if (fd < 0)
82 return NULL; 82 return NULL;
83 return fdopen(fd, "w"); 83 return fdopen(fd, "wb");
84} 84}
85 85
86static void 86static void
diff --git a/src/tests/elua/elua_lib.c b/src/tests/elua/elua_lib.c
index aecc26a022..ef043bab63 100644
--- a/src/tests/elua/elua_lib.c
+++ b/src/tests/elua/elua_lib.c
@@ -98,7 +98,7 @@ START_TEST(elua_api)
98 98
99 fd = mkstemp(buf); 99 fd = mkstemp(buf);
100 fail_if(fd < 0); 100 fail_if(fd < 0);
101 f = fdopen(fd, "w"); 101 f = fdopen(fd, "wb");
102 fail_if(!f); 102 fail_if(!f);
103 fprintf(f, "return 5\n"); 103 fprintf(f, "return 5\n");
104 fclose(f); 104 fclose(f);