You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2005/09/12 02:14:30 UTC

[jira] Created: (STDCXX-20) [Cygwin] madvise() needs a config test

[Cygwin] madvise() needs a config test
--------------------------------------

         Key: STDCXX-20
         URL: http://issues.apache.org/jira/browse/STDCXX-20
     Project: STDCXX
        Type: Bug
  Components: Configuration  
    Versions: 4.1.2    
 Environment: Cygwin
    Reporter: Martin Sebor
     Fix For: 4.1.3


>From http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200509.mbox/%3c200509111213.j8BCDGMG006690@ms-smtp-03.rdc-nyc.rr.com%3e:

-------- Original Message --------
Subject: Cygwin build
Date: Sun, 11 Sep 2005 08:13:38 -0400
From: Lance Diduck <la...@nyc.rr.com>
Reply-To: stdcxx-dev@incubator.apache.org
To: <st...@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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (STDCXX-20) [Cygwin] madvise() needs a config test

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-20?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor reassigned STDCXX-20:
----------------------------------

    Assignee: Martin Sebor

> [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
>         Environment: Cygwin
>            Reporter: Martin Sebor
>         Assigned To: Martin Sebor
>            Priority: Minor
>             Fix For: 4.2
>
>
> From http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200509.mbox/%3c200509111213.j8BCDGMG006690@ms-smtp-03.rdc-nyc.rr.com%3e:
> -------- Original Message --------
> Subject: Cygwin build
> Date: Sun, 11 Sep 2005 08:13:38 -0400
> From: Lance Diduck <la...@nyc.rr.com>
> Reply-To: stdcxx-dev@incubator.apache.org
> To: <st...@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.


[jira] Commented: (STDCXX-20) [Cygwin] madvise() needs a config test

Posted by "Farid Zaripov (JIRA)" <ji...@apache.org>.
    [ 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/%3c200509111213.j8BCDGMG006690@ms-smtp-03.rdc-nyc.rr.com%3e:
> -------- Original Message --------
> Subject: Cygwin build
> Date: Sun, 11 Sep 2005 08:13:38 -0400
> From: Lance Diduck <la...@nyc.rr.com>
> Reply-To: stdcxx-dev@incubator.apache.org
> To: <st...@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.


[jira] Commented: (STDCXX-20) [Cygwin] madvise() needs a config test

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-20?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523864 ] 

Martin Sebor commented on STDCXX-20:
------------------------------------

We can use either of them just as long as the one we go with works the way we want :) (i.e., lets us reliable determnine when a page is mapped and when not.) No all platforms do.

> [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/%3c200509111213.j8BCDGMG006690@ms-smtp-03.rdc-nyc.rr.com%3e:
> -------- Original Message --------
> Subject: Cygwin build
> Date: Sun, 11 Sep 2005 08:13:38 -0400
> From: Lance Diduck <la...@nyc.rr.com>
> Reply-To: stdcxx-dev@incubator.apache.org
> To: <st...@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.


[jira] Assigned: (STDCXX-20) [Cygwin] madvise() needs a config test

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/STDCXX-20?page=all ]

Martin Sebor reassigned STDCXX-20:
----------------------------------

    Assign To: Martin Sebor

> [Cygwin] madvise() needs a config test
> --------------------------------------
>
>          Key: STDCXX-20
>          URL: http://issues.apache.org/jira/browse/STDCXX-20
>      Project: STDCXX
>         Type: Bug
>   Components: Configuration
>     Versions: 4.1.2
>  Environment: Cygwin
>     Reporter: Martin Sebor
>     Assignee: Martin Sebor
>      Fix For: 4.1.3

>
> From http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200509.mbox/%3c200509111213.j8BCDGMG006690@ms-smtp-03.rdc-nyc.rr.com%3e:
> -------- Original Message --------
> Subject: Cygwin build
> Date: Sun, 11 Sep 2005 08:13:38 -0400
> From: Lance Diduck <la...@nyc.rr.com>
> Reply-To: stdcxx-dev@incubator.apache.org
> To: <st...@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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (STDCXX-20) [Cygwin] madvise() needs a config test

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/STDCXX-20?page=all ]

Martin Sebor updated STDCXX-20:
-------------------------------

    Fix Version: 4.1.4
                     (was: 4.1.3)
      Assign To:     (was: Martin Sebor)

> [Cygwin] madvise() needs a config test
> --------------------------------------
>
>          Key: STDCXX-20
>          URL: http://issues.apache.org/jira/browse/STDCXX-20
>      Project: STDCXX
>         Type: Bug
>   Components: Configuration
>     Versions: 4.1.2
>  Environment: Cygwin
>     Reporter: Martin Sebor
>      Fix For: 4.1.4

>
> From http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200509.mbox/%3c200509111213.j8BCDGMG006690@ms-smtp-03.rdc-nyc.rr.com%3e:
> -------- Original Message --------
> Subject: Cygwin build
> Date: Sun, 11 Sep 2005 08:13:38 -0400
> From: Lance Diduck <la...@nyc.rr.com>
> Reply-To: stdcxx-dev@incubator.apache.org
> To: <st...@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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (STDCXX-20) [Cygwin] madvise() needs a config test

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/STDCXX-20?page=all ]

Martin Sebor updated STDCXX-20:
-------------------------------

    Fix Version: 4.2
                     (was: 4.1.4)

> [Cygwin] madvise() needs a config test
> --------------------------------------
>
>          Key: STDCXX-20
>          URL: http://issues.apache.org/jira/browse/STDCXX-20
>      Project: C++ Standard Library
>         Type: Bug

>   Components: Configuration
>     Versions: 4.1.2
>  Environment: Cygwin
>     Reporter: Martin Sebor
>      Fix For: 4.2

>
> From http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200509.mbox/%3c200509111213.j8BCDGMG006690@ms-smtp-03.rdc-nyc.rr.com%3e:
> -------- Original Message --------
> Subject: Cygwin build
> Date: Sun, 11 Sep 2005 08:13:38 -0400
> From: Lance Diduck <la...@nyc.rr.com>
> Reply-To: stdcxx-dev@incubator.apache.org
> To: <st...@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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (STDCXX-20) [Cygwin] madvise() needs a config test

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-20?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor closed STDCXX-20.
------------------------------

    Resolution: Fixed

Test added thus: http://svn.apache.org/viewvc?rev=576644&view=rev

> [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
>            Assignee: Martin Sebor
>            Priority: Minor
>             Fix For: 4.2
>
>
> From http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200509.mbox/%3c200509111213.j8BCDGMG006690@ms-smtp-03.rdc-nyc.rr.com%3e:
> -------- Original Message --------
> Subject: Cygwin build
> Date: Sun, 11 Sep 2005 08:13:38 -0400
> From: Lance Diduck <la...@nyc.rr.com>
> Reply-To: stdcxx-dev@incubator.apache.org
> To: <st...@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.


[jira] Assigned: (STDCXX-20) [Cygwin] madvise() needs a config test

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-20?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor reassigned STDCXX-20:
----------------------------------

    Assignee: Martin Sebor

> [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
>            Assignee: Martin Sebor
>            Priority: Minor
>             Fix For: 4.2
>
>
> From http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200509.mbox/%3c200509111213.j8BCDGMG006690@ms-smtp-03.rdc-nyc.rr.com%3e:
> -------- Original Message --------
> Subject: Cygwin build
> Date: Sun, 11 Sep 2005 08:13:38 -0400
> From: Lance Diduck <la...@nyc.rr.com>
> Reply-To: stdcxx-dev@incubator.apache.org
> To: <st...@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.


[jira] Updated: (STDCXX-20) [Cygwin] madvise() needs a config test

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-20?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor updated STDCXX-20:
-------------------------------

    Priority: Minor  (was: Major)

Reduced Priority to Minor since a workaround is in place.

> [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
>         Environment: Cygwin
>            Reporter: Martin Sebor
>            Priority: Minor
>             Fix For: 4.2
>
>
> From http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200509.mbox/%3c200509111213.j8BCDGMG006690@ms-smtp-03.rdc-nyc.rr.com%3e:
> -------- Original Message --------
> Subject: Cygwin build
> Date: Sun, 11 Sep 2005 08:13:38 -0400
> From: Lance Diduck <la...@nyc.rr.com>
> Reply-To: stdcxx-dev@incubator.apache.org
> To: <st...@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.


[jira] Assigned: (STDCXX-20) [Cygwin] madvise() needs a config test

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-20?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor reassigned STDCXX-20:
----------------------------------

    Assignee:     (was: Martin Sebor)

> [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
>         Environment: Cygwin
>            Reporter: Martin Sebor
>            Priority: Minor
>             Fix For: 4.2
>
>
> From http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200509.mbox/%3c200509111213.j8BCDGMG006690@ms-smtp-03.rdc-nyc.rr.com%3e:
> -------- Original Message --------
> Subject: Cygwin build
> Date: Sun, 11 Sep 2005 08:13:38 -0400
> From: Lance Diduck <la...@nyc.rr.com>
> Reply-To: stdcxx-dev@incubator.apache.org
> To: <st...@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.


[jira] Updated: (STDCXX-20) [Cygwin] madvise() needs a config test

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-20?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor updated STDCXX-20:
-------------------------------

    Affects Version/s: 4.1.3
                       4.1.4

Added 4.1.3 and 3.1.4 to affected versions.

> [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/%3c200509111213.j8BCDGMG006690@ms-smtp-03.rdc-nyc.rr.com%3e:
> -------- Original Message --------
> Subject: Cygwin build
> Date: Sun, 11 Sep 2005 08:13:38 -0400
> From: Lance Diduck <la...@nyc.rr.com>
> Reply-To: stdcxx-dev@incubator.apache.org
> To: <st...@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.