This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: second call to mmap() results in error


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]