Eina_Bool ok = EINA_FALSE;
char rbuf[] = "test_buffer";
char wbuf[1024] = {0,};
- int fd_read_2, fd_write_2;
+ int fd_read_2 = -1;
+ int fd_write_2 = 0;
+
+#if 0 /* fmemopen had returned NULL on Tizen 3.0. But, it returns pointer on Unified binary. */
FILE *fd_read = fmemopen(rbuf, strlen(rbuf), "r");
if (!fd_read)
{
}
else
fd_write_2 = fileno(fd_write);
+#endif
pipe1 = ecore_pipe_full_add(Pipe_Cb, NULL, fileno(stdin), fileno(stdout), EINA_FALSE, EINA_FALSE);
pipe2 = ecore_pipe_full_add(Pipe_Cb, NULL, fd_read_2, fd_write_2, EINA_FALSE, EINA_FALSE);
}
ecore_pipe_del(pipe1);
ecore_pipe_del(pipe2);
+#if 0 /* fmemopen had returned NULL on Tizen 3.0. But, it returns pointer on Unified binary. */
close(fd_read);
close(fd_write);
+#endif
if (ok != EINA_TRUE)
{
Eina_Bool ok = EINA_FALSE;
char rbuf[] = "test_buffer";
char wbuf[1024] = {0,};
- int fd_read_2, fd_write_2;
+ int fd_read_2 = -1;
+ int fd_write_2 = 0;
+
+#if 0 /* fmemopen had returned NULL on Tizen 3.0. But, it returns pointer on Unified binary. */
FILE *fd_read = fmemopen(rbuf, strlen(rbuf), "r");
if (!fd_read)
{
}
else
fd_write_2 = fileno(fd_write);
+#endif
pipe1 = ecore_pipe_full_add(Pipe_Cb, NULL, fileno(stdin), fileno(stdout), EINA_FALSE, EINA_FALSE);
pipe2 = ecore_pipe_full_add(Pipe_Cb, NULL, fd_read_2, fd_write_2, EINA_FALSE, EINA_FALSE);
}
ecore_pipe_del(pipe1);
ecore_pipe_del(pipe2);
+#if 0 /* fmemopen had returned NULL on Tizen 3.0. But, it returns pointer on Unified binary. */
close(fd_read);
close(fd_write);
+#endif
if (ok != EINA_TRUE)
{