This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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]

[Bug libc/15576] New: sysconf may change returned value during the lifetime of a process.


http://sourceware.org/bugzilla/show_bug.cgi?id=15576

            Bug ID: 15576
           Summary: sysconf may change returned value during the lifetime
                    of a process.
           Product: glibc
           Version: 2.18
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: aoliva at redhat dot com
                CC: drepper.fsp at gmail dot com

Posix requires âThe value shall not change during the lifetime of the calling
process, except that sysconf(_SC_OPEN_MAX) may return different values before
and after a call to setrlimit() which changes the RLIMIT_NOFILE soft limit.â

In my code review, I noticed the returned value may change over time for
TZNAME_MAX, depending on selected timezones; NPROCS, NPROCS_CONF, PHYS_PAGES,
AVPHYS_PAGES, NGROUPS_MAX, SIGQUEUE_MAX, depending on variable values read from
/proc at each call, and from rlimit-obtained values CHILD_MAX, OPEN_MAX,
ARG_MAX, SIGQUEUE_MAX.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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