[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mmapping of /dev/zero always fails on darwin
From: |
Derek Price |
Subject: |
Re: mmapping of /dev/zero always fails on darwin |
Date: |
Mon, 12 Sep 2005 17:00:50 -0400 |
User-agent: |
Mozilla Thunderbird 1.0.6 (Windows/20050716) |
Peter O'Gorman wrote:
> As you can see from this little snippet of gcc configure, you can't
> mmap /dev/zero on darwin.
>
> AC_CACHE_CHECK([whether mmap from /dev/zero works],
> gcc_cv_func_mmap_dev_zero,
> [# Add a system to this blacklist if it has mmap() but /dev/zero
> # does not exist, or if mmapping /dev/zero does not give anonymous
> # zeroed pages with both the following properties:
> # 1. If you map N consecutive pages in with one call, and then
> # unmap any subset of those pages, the pages that were not
> # explicitly unmapped remain accessible.
> # 2. If you map two adjacent blocks of memory and then unmap them
> # both at once, they must both go away.
> # Systems known to be in this category are Windows (all variants),
> # VMS, and Darwin.
I don't suppose you could come up with a configure test or a short C
program that fails to compile (preferrably) or run (if necessary) to
spot this, short of actually switching on the system name or something
similar?
Regards,
Derek
--
Derek R. Price
CVS Solutions Architect
Ximbiot <http://ximbiot.com>
v: +1 717.579.6168
f: +1 717.234.3125
<mailto:address@hidden>
- mmapping of /dev/zero always fails on darwin, Peter O'Gorman, 2005/09/09
- Re: mmapping of /dev/zero always fails on darwin,
Derek Price <=
- Re: mmapping of /dev/zero always fails on darwin, Peter O'Gorman, 2005/09/12
- Re: [bug-gnulib] Re: mmapping of /dev/zero always fails on darwin, Bruno Haible, 2005/09/13
- Re: [bug-gnulib] Re: mmapping of /dev/zero always fails on darwin, Peter O'Gorman, 2005/09/14
- Re: [bug-gnulib] Re: mmapping of /dev/zero always fails on darwin, Peter O'Gorman, 2005/09/14
- Re: [bug-gnulib] Re: mmapping of /dev/zero always fails on darwin, Derek Price, 2005/09/13
Re: [bug-gnulib] mmapping of /dev/zero always fails on darwin, Bruno Haible, 2005/09/13