(Away from computer with credentials for the bug tracker, so just replying
here)

Format of the output isn’t defined (and differs substantially between at
least FreeBSD and GNU utilities).

Nothing prevents confstr() values from containing new lines, which makes
the output ambiguous.
(The implementation on the Deathstation 9000 will obviously include a local
confstr() name _CS_ALL_PC_NAMES which returns a string with all the _PC_*
names, new line separated, with commentary on them)


The inconsistency and ambiguity of the existing -a options is why in 2013
on OpenBSD we instead went with -l and -L for listing just the names that
can be used without/with a path argument.

Philip Guenther


On Wednesday, March 6, 2024, Austin Group Bug Tracker via austin-group-l at
The Open Group <austin-group-l@opengroup.org> wrote:

>
> A NOTE has been added to this issue.
> ======================================================================
> https://austingroupbugs.net/view.php?id=1808
> ======================================================================
> Reported By:                cquike
> Assigned To:
> ======================================================================
> Project:                    1003.1(2016/18)/Issue7+TC2
> Issue ID:                   1808
> Category:                   Shell and Utilities
> Type:                       Clarification Requested
> Severity:                   Editorial
> Priority:                   normal
> Status:                     New
> Name:                       Enrique Garcia
> Organization:
> User Reference:
> Section:                    getconf
> Page Number:                (page or range of pages)
> Line Number:                (Line or range of lines)
> Interp Status:              ---
> Final Accepted Text:
> ======================================================================
> Date Submitted:             2024-02-03 01:44 UTC
> Last Modified:              2024-03-06 10:40 UTC
> ======================================================================
> Summary:                    Add option -a to getconf utility
> ======================================================================
>
> ----------------------------------------------------------------------
>  (0006705) cquike (reporter) - 2024-03-06 10:40
>  https://austingroupbugs.net/view.php?id=1808#c6705
> ----------------------------------------------------------------------
> New proposed change after above feedback:
>
> "
> In the SYNOPSIS section of getconf add at the end:
>
>        getconf -a [file]
>
> In the DESCRIPTION section of getconf add:
>
>        When used with -a, the getconf utility shall write to the standard
> output the value of all the system variables defined by sysconf(),
> confstr() as well as the constants listed under the headings ``Maximum
> Values'' and ``Minimum Values'' in the description of the <limits.h> header
> in the Base Definitions volume of POSIX.1-2017. If file is provided, all
> path configuration variables are reported for file using pathconf()
> function defined in the System Interfaces volume of POSIX.1-2017. In both
> cases, the implementation may add other local values.
> "
>
> Issue History
> Date Modified    Username       Field                    Change
>
> ======================================================================
> 2024-02-03 01:44 cquike         New Issue
>
> 2024-02-03 01:44 cquike         Name                      => Enrique
> Garcia
> 2024-02-03 01:44 cquike         Section                   => getconf
>
> 2024-02-03 01:44 cquike         Page Number               => (page or
> range of
> pages)
> 2024-02-03 01:44 cquike         Line Number               => (Line or
> range of
> lines)
> 2024-02-25 05:48 kre            Note Added: 0006674
>
> 2024-03-06 10:40 cquike         Note Added: 0006705
>
> ======================================================================
>
>
>
  • [1003.1(2016... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
      • Re:... Philip Guenther via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group

Reply via email to