public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "michael dot kerrisk at googlemail dot com" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sources.redhat.com Subject: [Bug libc/5786] sysconf(_SC_ARG_MAX) no longer accurate since Linux kernel 2.6.23 Date: Tue, 26 Feb 2008 14:33:00 -0000 [thread overview] Message-ID: <20080226143309.14747.qmail@sourceware.org> (raw) In-Reply-To: <20080222153833.5786.michael.kerrisk@gmail.com> ------- Additional Comments From michael dot kerrisk at googlemail dot com 2008-02-26 14:33 ------- Subject: Re: sysconf(_SC_ARG_MAX) no longer accurate since Linux kernel 2.6.23 On 26 Feb 2008 13:57:17 -0000, carlos at codesourcery dot com <sourceware-bugzilla@sourceware.org> wrote: > > ------- Additional Comments From carlos at codesourcery dot com 2008-02-26 13:57 ------- > I think we are in agreement here: > > A. It is worthwhile to recommend a change to POSIX.1, making note that ARG_MAX > is now variable. The exact wording of the change is up for discussion. > > Let me clarify the following issues: > > 1. The kernel must not lower the value of ARG_MAX in include/linux/limits.h. > This would break binary compatibility. I'm inclined to agree. > 2. I would propose that RLIMIT_ARG_MAX be a read and write value. How the kernel > implements this does not have to be discussed here. Sounds fine. The only possible object would be that we are changing the ABI that was put in place in 2.6.23. But I'm not sure how much that really matters. > 3. glibc would use getrlimit(RLIMIT_ARG_MAX, &lim); to determine if the > currently running kernel supports a variable size of argument and environ space. Sounds okay. > Notes: > - Without (2) and (3) userspace lacks a programmatic way to determine the [argv > + environ] space limit. Userspace could still probe the size by repeatedly > calling execve and looking for E2BIG errors, unfortunately there are performance > considerations. Agreed. -- http://sourceware.org/bugzilla/show_bug.cgi?id=5786 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
next prev parent reply other threads:[~2008-02-26 14:33 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-02-22 15:39 [Bug libc/5786] New: " michael dot kerrisk at gmail dot com 2008-02-23 0:28 ` [Bug libc/5786] " carlos at codesourcery dot com 2008-02-23 7:52 ` michael dot kerrisk at googlemail dot com 2008-02-25 17:13 ` Carlos O'Donell 2008-02-25 17:14 ` carlos at codesourcery dot com 2008-02-26 9:54 ` michael dot kerrisk at googlemail dot com 2008-02-26 13:58 ` carlos at codesourcery dot com 2008-02-26 14:33 ` michael dot kerrisk at googlemail dot com [this message] 2008-03-08 7:40 ` drepper at redhat dot com [not found] <bug-5786-131@http.sourceware.org/bugzilla/> 2014-02-16 19:43 ` jackie.rosen at hushmail dot com 2014-05-28 19:44 ` schwab at sourceware dot org 2014-07-02 7:03 ` fweimer at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20080226143309.14747.qmail@sourceware.org \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sources.redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).