X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:subject:date:message-id:references
	:in-reply-to:content-type:content-transfer-encoding
	:mime-version; q=dns; s=default; b=g0b/ZMk6G0/9ktcBOpdN3aEUTlCAa
	jCHFcVrYGOZdBJ5S6tK2f1fjJf4ktHq3FvDG+5oOQjm71TyLcEOByKloGoVxM+RO
	v/pTC2g8WoQSdo/TbDyYpkEmvL2xVknMeZpkZymQgZ+xOMciOZtOh/7o5ccb04Bx
	UGhBGV28PevGNY=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:subject:date:message-id:references
	:in-reply-to:content-type:content-transfer-encoding
	:mime-version; s=default; bh=uhe9PGfLK5nMbDbxsi1v1AkjtQk=; b=Osd
	12ZSlmm6/EtzSf1xF7dT3KGvluDOKNlMQUeCwSZXbR4sVz9hnSfWR1OvODXNWCtt
	0+/O3soDZf9nn1MaqND94NJxYLKtW7rrA9rUkWFtkbsNJflY5BbGdoB9T7wdLbA3
	e43yh9zjkS0/Ljems+Ksu3Y2r8Y+Bw+cO7x5fmd0=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,MIME_BASE64_BLANKS,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: nihxway2out.hub.nih.gov
X-IronPortListener: Outbound_SMTP
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AhQFAAuK6lKcKEer/2dsb2JhbABZgwyBD4MBuiQYdBZ0giUBAQEDARIREUoLAgEIDQ0CBiACAgIdExUQAgQbGodbCKE1ih2gNxeBKY0oOIJvNYEUBI5jkDWLL4Mtgio
From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr@ncbi.nlm.nih.gov>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: RE: second call to mmap() results in error
Date: Thu, 30 Jan 2014 17:24:06 +0000
Message-ID: <5F8AAC04F9616747BC4CC0E803D5907D0C4763CC@MLBXv04.nih.gov>
References: <01a801cf1cfa$77957900$66c06b00$@lbmsys.com> <20140129181250.GW2821@calimero.vinschen.de> <52E95786.8050606@gmail.com> <20140130095822.GY2821@calimero.vinschen.de> <001801cf1db6$66c47c40$344d74c0$@lbmsys.com> <20140130124558.GA2821@calimero.vinschen.de> <003801cf1dbd$fc3ffc70$f4bff550$@lbmsys.com> <20140130170142.GD2821@calimero.vinschen.de>
In-Reply-To: <20140130170142.GD2821@calimero.vinschen.de>
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id s0UHOMVJ017659

> Adding the <unistd.h> fixes the problem in all its iterations

I must be missing a point here, so what was the problem with the original
test program (which BTW worked fine on my CYGWIN installation).  Seems like
<unistd.h> was not needed there?  And how adding just <unistd.h> (w/o adding
ftruncate(), IIUC) has made it work?

Thanks,

Anton Lavrentiev
Contractor NIH/NLM/NCBI


