httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Stein <>
Subject Re: cvs commit: apache-2.0/src/lib/apr APRDesign
Date Mon, 18 Oct 1999 22:45:16 GMT
On 18 Oct 1999 wrote:
>   +
>   +This macro should evaluate to true if APR has this feature on this platform.
>   +For example, Linux and Windows have mmap'ed files, and APR is providing an
>   +interface for mmapp'ing a file.  On both Linux and Windows, APR_HAS_MMAP
>   +should evaluate to one, and the ap_mmap_* functions should map files into
>   +memory and return the appropriate status codes.
>   +
>   +If your OS of choice does not have mmap'ed files, APR_HAS_MMAP should evaluate 
>   +to zero, and all ap_mmap_* functions should automatically return APR_ENOTIMPL.
>   +The second step is a precaution.  We will not break at compile time, just
>   +because a programmer tried to write code that uses functions which may not be
>   +there, but we will make sure the programmer knows he isn't doing anything.

Euh... isn't it safe to break the thing at compile time?

I'd hate to see the case if somebody forgets to check an error value and
builds a server that fails in mysterious ways.


Greg Stein,

View raw message