Commit Graph

27 Commits

Author SHA1 Message Date
wollman
6998ea1bf3 Support correct programming environment name for amd64.
MFC after:	3 days
2005-02-18 21:53:05 +00:00
ru
31b96e8df8 Sort sections. 2005-01-18 13:43:56 +00:00
ru
21331566c5 Added the EXIT STATUS section where appropriate. 2005-01-17 07:44:44 +00:00
ru
b8e742a388 mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
markm
e3a4cc0286 Warns fixes. Mainly unused headers/params/vars removal, but also
some malloc cleanup.
2003-08-22 17:32:07 +00:00
tjr
a163dd71aa Tidy up usage message. 2003-08-17 10:33:54 +00:00
markm
8cdfec05ae Replace an alloca() call with a slightly more standard malloc()/free()
pair.
2003-07-21 20:55:37 +00:00
ru
88d368906e Uniformly refer to a file system as "file system".
Approved by:	re
2002-12-12 17:26:04 +00:00
ru
d5ce9cddcd mdoc(7) police: markup nits, "The .Nm utility".
Approved by:	re
2002-11-26 11:17:22 +00:00
ru
4bd324e254 Make this work under non-C locales.
PR:		misc/45460
Approved by:	re
2002-11-25 09:00:05 +00:00
wollman
09d741eee8 Remove unnecessary compatibility macro. (We were only printing, not parsing,
intmax_t.)
2002-10-27 04:14:08 +00:00
wollman
9461a5f087 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).
2002-10-27 04:10:34 +00:00
wollman
29fe18ae8b 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.)
2002-09-19 03:39:03 +00:00
wollman
297d5be941 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.
2002-09-18 03:15:25 +00:00
dwmalone
e3e153e6ce 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
2002-09-04 23:29:10 +00:00
wollman
86e09b61aa Support POSIX ``programming environment'' mistake. 2002-07-15 22:51:24 +00:00
obrien
3cb8dae44d Consistently use FBSDID 2002-06-30 05:25:07 +00:00
tjr
91bd7f7ff1 confstr() returns (size_t)-1 on failure. Check for this explicitly instead
of trying to see if an unsigned number is less than zero.
2002-06-04 08:45:38 +00:00
ru
e6bcd7b5b8 mdoc(7) police: utilize the new .Ex macro. 2001-08-15 09:09:47 +00:00
dd
7d1013753f Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
ru
884f4c52f0 mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2). 2001-07-06 16:46:48 +00:00
wollman
e59e60b9b9 Reword the description a little bit more for parallel construction. 2001-02-21 19:33:38 +00:00
wollman
3d30b0c26f Destroy the evidence of my misunderstanding of the specification.
Also fix up the phrasing in the man page a bit.
2001-02-21 19:31:53 +00:00
ru
0957874304 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 19:21:22 +00:00
ru
77559ae015 mdoc(7) police: use certified section headers wherever possible. 2000-11-17 11:44:16 +00:00
obrien
93b01ecac9 Unbreak for the case where ``make obj'' was run first. 2000-04-26 07:00:46 +00:00
wollman
258381ce7c 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.
2000-04-26 02:36:54 +00:00