This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: second call to mmap() results in error
- From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr at ncbi dot nlm dot nih dot gov>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Thu, 30 Jan 2014 17:24:06 +0000
- Subject: RE: second call to mmap() results in error
- Authentication-results: sourceware.org; auth=none
- References: <01a801cf1cfa$77957900$66c06b00$ at lbmsys dot com> <20140129181250 dot GW2821 at calimero dot vinschen dot de> <52E95786 dot 8050606 at gmail dot com> <20140130095822 dot GY2821 at calimero dot vinschen dot de> <001801cf1db6$66c47c40$344d74c0$ at lbmsys dot com> <20140130124558 dot GA2821 at calimero dot vinschen dot de> <003801cf1dbd$fc3ffc70$f4bff550$ at lbmsys dot com> <20140130170142 dot GD2821 at calimero dot vinschen dot de>
> 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