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:message-id:date:from:reply-to:mime-version:to
	:subject:references:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=s0wBcDYs86LhjqoM
	4JjeVZHxa2jG1n060ePs30GG0srBtaupu+AXoEfpj56lb/MoFo7gC05gyEdOSH2s
	dFURUd2ZOHr1nAYojEVtBhpYc5ke0AD7sVPCLw/AvdpFtpkPqsyMUSaiP4DqseEY
	zYM78cfVACFBmNfnci6s24/gV68=
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:message-id:date:from:reply-to:mime-version:to
	:subject:references:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=B4EspyapOOf4R+o9I5EiOt
	eg2hc=; b=SOYJ5Lca26fWS2I+qptJMEe2F1cTPjCKI7pI8FJnTA0WoinfYGbYTZ
	TMYzuD0gM77njp8TT7aLx+CXGmIwsoNworyoxccZmn4zj11AiRmWMVHxYi1QHird
	2R4ewQwF84AIbPK0DIOBVlQXLy2JvGE9pQL76b+BKP4lL4uQFoc6Q=
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.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: vms173017pub.verizon.net
Message-id: <52EA9A53.2050203@cygwin.com>
Date: Thu, 30 Jan 2014 13:30:43 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Reply-to: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
MIME-version: 1.0
To: cygwin@cygwin.com
Subject: Re: second call to mmap() results in error
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> <5F8AAC04F9616747BC4CC0E803D5907D0C4763CC@MLBXv04.nih.gov>
In-reply-to: <5F8AAC04F9616747BC4CC0E803D5907D0C4763CC@MLBXv04.nih.gov>
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7bit

On 1/30/2014 12:24 PM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote:
>> 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?

Maybe you missed Corinna's reply?

<http://cygwin.com/ml/cygwin/2014-01/msg00519.html>


-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

