[ https://issues.apache.org/jira/browse/STDCXX-20?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523858 ]
Farid Zaripov commented on STDCXX-20: ------------------------------------- Cygwin has posix_madvise() function: /usr/include/sys/mman.h: ... extern int posix_madvise (void *__addr, size_t __len, int __advice); ... Here is the information about the function: http://www.opengroup.org/onlinepubs/000095399/functions/posix_madvise.html Interesting that www.opengroup.org knows nothing about madvise(). There no page http://www.opengroup.org/onlinepubs/000095399/functions/madvise.html and madvise() not mentioned at page with description of sys/mman.h: http://www.opengroup.org/onlinepubs/000095399/basedefs/sys/mman.h.html Below is a part of the mman.h on RedHat Enterprise Linux 4: ------------ #ifdef __USE_BSD /* Advise the system about particular usage patterns the program follows for the region starting at ADDR and extending LEN bytes. */ extern int madvise (void *__addr, size_t __len, int __advice) __THROW; #endif #ifdef __USE_XOPEN2K /* This is the POSIX name for this function. */ extern int posix_madvise (void *__addr, size_t __len, int __advice) __THROW; #endif ------------ By default the both functions are defined. Since posix_madvise() is always defined (I suppose that is true), perhaps we should use it instead of madvise() ? > [Cygwin] madvise() needs a config test > -------------------------------------- > > Key: STDCXX-20 > URL: https://issues.apache.org/jira/browse/STDCXX-20 > Project: C++ Standard Library > Issue Type: Bug > Components: Configuration > Affects Versions: 4.1.2, 4.1.3, 4.1.4 > Environment: Cygwin > Reporter: Martin Sebor > Priority: Minor > Fix For: 4.2 > > > From > http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200509.mbox/[EMAIL > PROTECTED]: > -------- Original Message -------- > Subject: Cygwin build > Date: Sun, 11 Sep 2005 08:13:38 -0400 > From: Lance Diduck <[EMAIL PROTECTED]> > Reply-To: stdcxx-dev@incubator.apache.org > To: <stdcxx-dev@incubator.apache.org> > Notes on Cygwin build __CYGWIN__ using gcc 3.4.4 BUILDTYPE=11s default modes > [...] > 2. config.h file should have a entry for _RWSTD_NO_MADVISE I modified the > build's config file directly, I'm not sre how to modify the things that > generate the config.h in the first place. > [...] -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.