324124 |
30-Sep-2017 |
jhb |
MFC 323631: Add an -a flag to getconf.
When -a is specified, the name and value of all system or path configuration values is reported to standard output.
Sponsored by: Chelsio Communications |
321151 |
18-Jul-2017 |
ngie |
MFC r318280:
getconf: use nitems(..) to compute NWORDS instead of hardcoding the equivalent macro |
319386 |
01-Jun-2017 |
ngie |
MFC r318437:
Revert local changes to find_progenv accidentally committed in r318436
MFC with: r318436 |
319385 |
01-Jun-2017 |
ngie |
MFC r318436:
usr.bin/getconf: add some initial tests
Items tested via this commit are: - Some basic POSIX constants. - Some valid programming environments with -v. - Some invalid programming environments via -v.
NOTE: this test makes assumptions about ILP32/LP32 vs LP64 that are currently not true on all architectures to avoid hardcoding some architectures in the tests. I'm working on improving getconf(1) to be more sane about handling ILP32/LP32 vs LP64. Future commits are coming soon to address this.
Tested with: amd64, i386 |
319382 |
01-Jun-2017 |
ngie |
MFC r318434:
Make the `.gperf.c` suffix rule depend on fake-gperf.awk
Parameterize out fake-gperf.awk to avoid duplicating the path |
305229 |
01-Sep-2016 |
ngie |
MFstable/11 r304949,r305226:
r304949:
MFC r303830,r304693,r304694,r304698:
r303830:
Remove vestigal references to __alpha__
Replace alpha reference in getconf(1) with amd64 [*]
PR: 211300 [*]
r304693:
Clean up trailing whitespace
r304694:
Add `MIN_HOLE_SIZE` pathconf(2) support to getconf
This allows shell programs to programmatically determine whether or not a filesystem supports sparse files
r304698:
Add support for _PC_ACL_NFS4 as TRUSTEDBSD_ACL_NFS4
The TRUSTEDBSD prefix was chosen for consistency with the other related `_PC_ACL*` prefixed variables.
r305226:
MFC r304809:
Add non-TRUSTEDBSD prefixed knobs for the _PC_ACL* and {CAP,INF,MAC}_PRESENT knobs
It's not necessarily intuitive that the variables to query contain TRUSTEDBSD in the prefix. Add non-TRUSTEDBSD prefixed knobs for querying things like "_PC_ACL_NFS4".
Relnotes: yes |
304210 |
16-Aug-2016 |
ngie |
MFstable/11 r304208:
MFC r303830:
Remove vestigal references to __alpha__
Replace alpha reference in getconf(1) with amd64 [*]
PR: 211300 [*] |
289740 |
22-Oct-2015 |
bapt |
getconf(1): Fix typo. _POSIX_V6_LP64_OFFBIG -> _POSIX_V6_LPBIG_OFFBIG.
Submitted by: Sascha Wildner <saw@online.de> Obtained from: DragonflyBSD |
256281 |
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
164945 |
06-Dec-2006 |
maxim |
o confstr(3) returns 0 on error. Check the return value accordingly.
PR: misc/106414 MFC after: 1 week
|
142066 |
18-Feb-2005 |
wollman |
Support correct programming environment name for amd64.
MFC after: 3 days
|
140420 |
18-Jan-2005 |
ru |
Sort sections.
|
140368 |
17-Jan-2005 |
ru |
Added the EXIT STATUS section where appropriate.
|
119893 |
08-Sep-2003 |
ru |
mdoc(7): Use the new feature of the .In macro.
|
119312 |
22-Aug-2003 |
markm |
Warns fixes. Mainly unused headers/params/vars removal, but also some malloc cleanup.
|
119025 |
17-Aug-2003 |
tjr |
Tidy up usage message.
|
117843 |
21-Jul-2003 |
markm |
Replace an alloca() call with a slightly more standard malloc()/free() pair.
|
107788 |
12-Dec-2002 |
ru |
Uniformly refer to a file system as "file system".
Approved by: re
|
107263 |
26-Nov-2002 |
ru |
mdoc(7) police: markup nits, "The .Nm utility".
Approved by: re
|
107224 |
25-Nov-2002 |
ru |
Make this work under non-C locales.
PR: misc/45460 Approved by: re
|
106017 |
27-Oct-2002 |
wollman |
Remove unnecessary compatibility macro. (We were only printing, not parsing, intmax_t.)
|
106016 |
27-Oct-2002 |
wollman |
Add new 1003.1-2001/TC1/D6 parameters. (On final recirculation ballot now, so this should be officially TC1 before the New Year.)
Add TrustedBSD pathconf parameters.
Add compilation support for -stable (to be merged momentarily).
|
103591 |
19-Sep-2002 |
wollman |
Completely revamp the way getconf(1) works, for better adherence to the intent of the Standard.
- Make getconf able to distinguish between configuration variables which are entirely unknown and those which are merely not defined in the compilation environment. The latter now get a more appropriate "undefined\n" result rather than a diagnostic. This may not be exactly right, but it's closer to the intent of the Standard than the previous behavior.
- Support ``programming environments'' by validating that the environment requested with the `-v' flag is the one-and-only execution environment. (If more environments are supported for some platforms in the future, multiple getconf(1) executables will be required, but a simple edit in progenv.gperf will enable automatic support for it.) Document POSIX standard programming environments.
- Add all of the 1003.1-2001 configuration variables. FreeBSD does not support all of these (including some that are mandatory); getconf will later be fixed to break the world should a required variable not be defined.
As a result of all these changes, gperf is no longer adequate. Keep the overall format and names of the files for now, to preserve revision history. Use an awk script to process the .gperf files into C source, which does a few things that gperf, as a more general tool, cannot do. The keyword recognition function is no longer a perfect hash function.
This may obviate the need for gperf in the source tree.
- Add a small compile-time regression test to break the build if any of the .gperf files declare conflicting token sets. (gperf itself would have done this for the simple case of duplicate tokens in the same input file.)
|
103516 |
18-Sep-2002 |
wollman |
Make obrien happy. Add a bad awk script which emulates as much of gperf's behavior as we ever actually needed here. This generates a much-less-efficient keyword recognizer, but it's not like that matters in this application. Makefile changes coming once this passes the world test.
|
102944 |
04-Sep-2002 |
dwmalone |
ANSIify function definitions. Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings.
Reviewed by: md5
|
100151 |
15-Jul-2002 |
wollman |
Support POSIX ``programming environment'' mistake.
|
99112 |
30-Jun-2002 |
obrien |
Consistently use FBSDID
|
97797 |
04-Jun-2002 |
tjr |
confstr() returns (size_t)-1 on failure. Check for this explicitly instead of trying to see if an unsigned number is less than zero.
|
81687 |
15-Aug-2001 |
ru |
mdoc(7) police: utilize the new .Ex macro.
|
79755 |
15-Jul-2001 |
dd |
Remove whitespace at EOL.
|
79366 |
06-Jul-2001 |
ru |
mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2).
|
72808 |
21-Feb-2001 |
wollman |
Reword the description a little bit more for parallel construction.
|
72807 |
21-Feb-2001 |
wollman |
Destroy the evidence of my misunderstanding of the specification. Also fix up the phrasing in the man page a bit.
|
68963 |
20-Nov-2000 |
ru |
mdoc(7) police: use the new features of the Nm macro.
|
68854 |
17-Nov-2000 |
ru |
mdoc(7) police: use certified section headers wherever possible.
|
59642 |
26-Apr-2000 |
obrien |
Unbreak for the case where ``make obj'' was run first.
|
59632 |
26-Apr-2000 |
wollman |
Hello, getconf. This is a slight reinvention of the wheel^H^H^H^H^HPOSIX.2 and X/Open utility, and rather more complicated than necessary.
|