httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Havard" <bri...@kheldar.apana.org.au>
Subject Re: cvs commit: apache-2.0/src/lib/apr/test testfile.c
Date Thu, 25 May 2000 01:19:43 GMT
On 24 May 2000 22:32:50 -0000, rbb@locus.apache.org wrote:

>rbb         00/05/24 15:32:47
>
>  Modified:    src/lib/apr/file_io/unix fileacc.c
>               src/lib/apr/include apr.h.in apr_network_io.h
>               src/lib/apr/network_io/unix poll.c
>               src/lib/apr/test testfile.c
>  Log:
>  Add a new APR function.  This function basically lets a file masquerade as
>  a socket so that we can poll on it.  This is not my favorite idea, but
>  since some platforms don't allow us to poll files and some do, we have to
>  find a happy medium, this is it.  :-|

Why do we need this?



>  +/* Any time a file and socket are represented as the same type, this macro
>  + * should be true.  I don't know of any platforms using Autoconf where this
>  + * isn't true (OS/2? maybe), but I know it isn't true for Windows.  For right
>  + * now, just define it as 1, and Windows will define it correctly, if this
>  + * turns out to not work, we can devise an Autoconf test for it later.  rbb
>  + */
>  +#define APR_FILES_AS_SOCKETS      1

For OS/2 this isn't true, as you suspect. I think BeOS also.

-- 
 ______________________________________________________________________________
 |  Brian Havard                 |  "He is not the messiah!                   |
 |  brianh@kheldar.apana.org.au  |  He's a very naughty boy!" - Life of Brian |
 ------------------------------------------------------------------------------


Mime
View raw message