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


> 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?

Anton Lavrentiev

Contractor NIH/NLM/NCBI

P.S. http://linux.die.net/man/2/mmap


--
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]