autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cross-platform availability of header files


From: Ralf Corsepius
Subject: Re: Cross-platform availability of header files
Date: Sat, 16 Mar 2013 06:06:18 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130219 Thunderbird/17.0.3

On 03/15/2013 09:13 PM, Zack Weinberg wrote:
On 2013-03-15 8:57 AM, Ralf Corsepius wrote:

aio.h and sys/mman.h are not available everywhere

aio.h certainly, but are you aware of a *specific Unix-like system*
which is in current use and does not provide <sys/mman.h>?
Unix-like! Not all OSes are Unix-like.

Most prominent one without mman.h is mingw. Others, I am aware about are certain newlib based toolchains.

Newlib also is one of the places which has a history of struggling with the _POSIX_*-defines (Also affects Cygwin).

That header
is mandatory in POSIX-2008 (although not before then) and the last time
I can remember encountering a workstation-scale Unix environment that
didn't have it was in the mid-nineties sometime.  I'd believe there
might be embedded mostly-POSIX-compliant environments still that don't
do virtual memory, but I've never seen one.
Correct - RTEMS is one of these. We have a rudimentary implementation of aio.h since 2010 and don't have mmap.h at all.

Ralf





reply via email to

[Prev in Thread] Current Thread [Next in Thread]