delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/21/20:22:46

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Tue, 21 Nov 2000 19:41:42 -0500
Message-Id: <200011220041.TAA22145@envy.delorie.com>
X-Authentication-Warning: envy.delorie.com: dj set sender to dj AT envy DOT delorie DOT com using -f
From: DJ Delorie <dj AT delorie DOT com>
To: zackw AT Stanford DOT EDU
CC: Kelley DOT Cook AT home DOT com, GCC-Bugs AT gcc DOT gnu DOT org, GCC-patches AT gcc DOT gnu DOT org,
Cygwin AT sources DOT redhat DOT com
In-reply-to: <20001121162522.G17712@wolery.stanford.edu> (zackw@Stanford.EDU)
Subject: Re: Reason for cygwin GCC 2.97 non-bootstrap found
References: <200011211839 DOT eALIdOd15553 AT ahmlir2 DOT mail DOT eds DOT com> <20001121162522 DOT G17712 AT wolery DOT stanford DOT edu>

> Could you [since Kelley is out of town till Sunday, this "you" is
> anyone with a convenient cygwin installation] please compile and run
> the appended test program under cygwin?  It should either exit
> successfully, or crash; I need to know which.

It runs OK.

> #include <sys/types.h>
> #include <sys/mman.h>
> #include <unistd.h>
> #include <string.h>
> 
> #define PAGEPROT PROT_READ|PROT_WRITE
> #define MAPFLAGS MAP_PRIVATE|MAP_ANONYMOUS
> 
> int main(void)
> {
>   size_t pagesize = getpagesize();
>   char *base;
> 
>   base = mmap(0, 16*pagesize, PAGEPROT, MAPFLAGS, -1, 0);
>   memset(base, 0xAB, 16*pagesize);
> 
>   munmap(base + 4*pagesize, pagesize);
> 
>   memset(base, 0xCD, 4*pagesize);
>   memset(base + 5*pagesize, 0xCD, 10*pagesize);
> 
>   return 0;
> }  

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019