Enlightenment SVN schrieb:
> Log:
>    * 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)
>   
>   
> Author:       caro
> Date:         2009-05-29 07:32:57 -0700 (Fri, 29 May 2009)
> New Revision: 40846
>
> Modified:
>   trunk/ecore/src/lib/ecore/ecore_pipe.c 
>
> Modified: trunk/ecore/src/lib/ecore/ecore_pipe.c
> ===================================================================
> --- trunk/ecore/src/lib/ecore/ecore_pipe.c    2009-05-28 21:56:48 UTC (rev 
> 40845)
> +++ trunk/ecore/src/lib/ecore/ecore_pipe.c    2009-05-29 14:32:57 UTC (rev 
> 40846)
> @@ -35,6 +35,9 @@
>  
>  # define pipe_write(fd, buffer, size) send((fd), (char *)(buffer), size, 0)
>  # define pipe_read(fd, buffer, size)  recv((fd), (char *)(buffer), size, 0)
> +# define pipe_close(fd)               closesocket(fd)
> +# define PIPE_FD_INVALID              INVALID_SOCKET
> +# define PIPE_FD_ERROR                SOCKET_ERROR
>  
>  #else
>  
> @@ -43,6 +46,9 @@
>  
>  # define pipe_write(fd, buffer, size) write((fd), buffer, size)
>  # define pipe_read(fd, buffer, size)  read((fd), buffer, size)
> +# define pipe_close(fd)               close(fd)
> +# define pipe_fd_invalid              -1
>   

I haven't test it, but shouldn't this be upper-case, too, like it is in 
some lines above?


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to