* on Windows, pipe() creates sockets and not file descriptoes,
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 29 May 2009 14:32:57 +0000 (14:32 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 29 May 2009 14:32:57 +0000 (14:32 +0000)
commit7610628ee9f6881ed79ba1c70eaac2faf79e1d1c
treea1d2997549dc2f39262275917e9b4a246539e1d8
parentc4645a7377e0af3f5fe2a147f56e277a3ef45734
 * on Windows, pipe() creates sockets and not file descriptoes,
   hence we must use closesocket() to close a socket instead of
   close(). In addition, we should improve the closing of the
   socket (see http://tangentsoft.net/wskfaq/newbie.html#howclose)

 * use PIPE_FD_INVALID for invalid fd / socket

 * use PIPE_FD_ERROR for invalid result when sending / receiving
   data on fd / sockets

next step is to manage correctly errno on Windows with WSAGetLastError()
(see http://tangentsoft.net/wskfaq/articles/bsd-compatibility.html)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@40846 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/lib/ecore/ecore_pipe.c