This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: second call to mmap() results in error
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 30 Jan 2014 13:39:56 -0500
- Subject: Re: second call to mmap() results in error
- Authentication-results: sourceware.org; auth=none
- References: <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> <5F8AAC04F9616747BC4CC0E803D5907D0C4763CC at MLBXv04 dot nih dot gov> <52EA9A53 dot 2050203 at cygwin dot com> <5F8AAC04F9616747BC4CC0E803D5907D0C4764C5 at MLBXv04 dot nih dot gov>
- Reply-to: cygwin at cygwin dot com
On Thu, Jan 30, 2014 at 06:36:34PM +0000, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote:
>> Maybe you missed Corinna's reply?
>>
>> <http://cygwin.com/ml/cygwin/2014-01/msg00519.html>
>
>No, I did not. She was going after ftruncate() there.
>
>Yet, the problem seems to be in cygwin's <sys/mman.h>, which does this:
>
>#ifndef __INSIDE_CYGWIN__
>extern void *mmap (void *__addr, size_t __len, int __prot, int __flags, int __fd, off_t __off);
>#endif
>
>which means that user code can't use the prototype. Why is it conditional?
#if*n*def __INSIDE_CYGWIN__
--
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