httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <>
Subject Re: APR: non-blocking file I/O?
Date Fri, 26 Mar 1999 11:44:23 GMT
On Fri, 26 Mar 1999, Brian Havard wrote:

> I've been taking a look at the APR file-io API and saw
> #define APR_NONBLOCK 256          /* Don't block when reading or writing */
> Unless you're trying to implement user-land threads, is there any need for
> non-blocking file I/O? I ask because OS/2 doesn't do it natively. Pipes and
> sockets are ok but not actual disk files.

Same as unix...  You can say O_NDELAY when you open() something, but if
it's a file it's a nop.  Some unixes provide aio (async i/o) ... and if
you've got real native threads you can simulate non-blocking disk i/o. 

At any rate, I think that's referring to sockets and pipes. 


View raw message