public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/7095] New: Please support getconf -v XBS5_*LP*OFF*
@ 2008-12-11 21:57 lacos at elte dot hu
  2009-02-07  8:20 ` [Bug libc/7095] " drepper at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: lacos at elte dot hu @ 2008-12-11 21:57 UTC (permalink / raw)
  To: glibc-bugs

(1) http://sources.redhat.com/glibc/ states about glibc:

"It follows all relevant standards ([...] Unix98 [...])."

(2) The Single UNIX(R) Specification, Version 2 specifies getconf under

http://opengroup.org/onlinepubs/007908799/xcu/getconf.html

in part as follows:

"If the command:

getconf _XBS5_ILP32_OFF32

does not write "-1\n" or "undefined\n" to standard output, then commands of the
form:

getconf -v XBS5_ILP32_OFF32 ...

will determine values for configuration variables corresponding to the
XBS5_ILP32_OFF32 compilation environment specified in c89, EXTENDED DESCRIPTION."

(3) On my machine, using 2.3.6 from Debian Etch:

$ getconf _XBS5_ILP32_OFF32
1

$ getconf -v XBS5_ILP32_OFF32 XBS5_ILP32_OFF32_CFLAGS
getconf: unknown specification "XBS5_ILP32_OFF32"

$ getconf XBS5_ILP32_OFF32_CFLAGS
-m32

In other words, getconf knows how to handle the CFLAGS getconf name, but it
doesn't recognize the specification (programming environment) getconf name.

(4) I checked the "specs" array in the current version of libc/posix/getconf.c
(CVS version 1.48). It still only contains the SUSv3 (UNIX 03) specification
names. (Jakub Jelinek posted

http://sourceware.org/ml/libc-hacker/2004-11/msg00062.html

on 26 Nov 2004, and cvs annotate says Ulrich Drepper merged the patch in v1.36
the same day, and the lines I deem to be relevant weren't touched since then.)

I'd like to ask you to add the four XBS5 specification names so that glibc's
getconf can be correctly interrogated by programs aiming at SUSv2 conformance
(as SUSv2 isn't obsolete yet).

Thanks,
lacos

-- 
           Summary: Please support getconf -v XBS5_*LP*OFF*
           Product: glibc
           Version: 2.3.6
            Status: NEW
          Severity: minor
          Priority: P3
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: lacos at elte dot hu
                CC: glibc-bugs at sources dot redhat dot com


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug libc/7095] Please support getconf -v XBS5_*LP*OFF*
  2008-12-11 21:57 [Bug libc/7095] New: Please support getconf -v XBS5_*LP*OFF* lacos at elte dot hu
@ 2009-02-07  8:20 ` drepper at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: drepper at redhat dot com @ 2009-02-07  8:20 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2009-02-07 08:19 -------
I agree old environments should be supported.  It should be fixed in cvs.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-07  8:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-11 21:57 [Bug libc/7095] New: Please support getconf -v XBS5_*LP*OFF* lacos at elte dot hu
2009-02-07  8:20 ` [Bug libc/7095] " drepper at redhat dot com

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).