freebsd-dev/usr.bin
Garrett Wollman e9cfb9ae3a 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
..
alias Fix installworld. 2002-07-17 15:35:31 +00:00
apply WARNS=4 2002-07-14 18:23:22 +00:00
ar WARNS=4 2002-07-14 18:23:22 +00:00
asa
at mdoc(7) police: Removed redundant .Ns calls. 2002-08-13 16:07:28 +00:00
awk
banner
basename ANSIify function definitions. 2002-09-04 23:29:10 +00:00
biff Bump document date for the 'beep only' change. 2002-08-16 03:08:25 +00:00
brandelf
bzip2
c89
calendar Add the 1109 incident. 2002-09-10 00:07:19 +00:00
cap_mkdb ANSIify function definitions to avoid a warning. 2002-07-28 14:41:26 +00:00
catman No need to declare optind as an external int. 2002-09-04 21:16:51 +00:00
chat Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:23:09 +00:00
checknr ANSIify function definitions to avoid a warning. 2002-07-28 14:55:59 +00:00
chflags ANSIify function definitions. 2002-09-04 23:29:10 +00:00
chkey Use strchr() instead of index(). Use getopt(). Use err(). 2002-08-27 19:06:44 +00:00
chpass Consistently use FBSDID 2002-06-30 05:25:07 +00:00
cksum ANSIify function definitions to avoid a warning. 2002-07-28 15:13:17 +00:00
cmp ANSIify function definitions to avoid a warning. 2002-07-28 15:13:17 +00:00
col ANSIify function definitions. 2002-09-04 23:29:10 +00:00
colcrt ANSIify function definitions. 2002-09-04 23:29:10 +00:00
colldef Avoid a signedness warning by casting chain_index to a size_t. 2002-09-04 21:22:49 +00:00
colrm ANSIify function definitions to avoid a warning. 2002-07-28 15:22:43 +00:00
column ANSify function definitions to avoid a warning. 2002-07-28 15:25:15 +00:00
comm ANSIify function definitions to avoid a warning. 2002-07-28 15:28:38 +00:00
compile_et
compress ANSIify function definitions to avoid a warning. 2002-07-28 15:32:17 +00:00
csplit mdoc(7) police: simplify. 2002-08-14 11:38:30 +00:00
ctags ANSIify function definitions to avoid a warning. 2002-07-28 15:50:38 +00:00
cut ANSIify function definitions. 2002-09-04 23:29:10 +00:00
dig
dirname ANSIify function definitions to avoid a warning. 2002-07-28 15:50:38 +00:00
dnskeygen
dnsquery
doscmd Initiate deorbit burn for the i386-only a.out related support. Moves are 2002-09-17 01:49:00 +00:00
du ANSIify function definitions to avoid a warning. 2002-07-28 15:50:38 +00:00
ee Reimplemented bsd.nls.mk using bsd.files.mk and bsd.links.mk. 2002-07-02 12:37:09 +00:00
elf2aout Set NO_WERROR to ignore the following warning which is emitted on 2002-07-11 18:06:09 +00:00
enigma ANSIify function definitions. 2002-09-04 23:29:10 +00:00
env ANSIify function definitions. 2002-09-04 23:29:10 +00:00
expand ANSIify function definitions. 2002-09-04 23:29:10 +00:00
false Consistently use FBSDID 2002-06-30 05:25:07 +00:00
fetch s/optarg/s/ (cut'n'paste braino) 2002-08-27 10:19:24 +00:00
file Update for version 3.39. 2002-09-16 06:31:49 +00:00
file2c Consistently use FBSDID 2002-06-30 05:25:07 +00:00
find Do not repeat the name of the flag in its description 2002-08-27 19:14:08 +00:00
finger ANSIify function definitions. 2002-09-04 23:29:10 +00:00
fmt Consistently use FBSDID 2002-06-30 05:25:07 +00:00
fold ANSIify function definitions. 2002-09-04 23:29:10 +00:00
from ANSIify function definitions. 2002-09-04 23:29:10 +00:00
fstat Userland changes to go with vnode->v_tag change. 2002-09-14 18:51:10 +00:00
fsync Consistently use FBSDID 2002-06-30 05:25:07 +00:00
ftp
gcore Add #include <sys/queue.h> for sparc64's benefit. The MD includes there 2002-09-13 18:24:59 +00:00
gencat
getconf Completely revamp the way getconf(1) works, for better adherence to the 2002-09-19 03:39:03 +00:00
getopt ANSIify function definitions. 2002-09-04 23:29:10 +00:00
gprof Consistently use FBSDID 2002-06-30 05:25:07 +00:00
head Remove duplicate __FBSDID() - spotted by trying to build with a non-GNU 2002-07-23 14:39:20 +00:00
hesinfo ANSIify function definitions. 2002-09-04 23:29:10 +00:00
hexdump ANSIify function definitions. 2002-09-04 23:29:10 +00:00
host
id ANSIify function definitions. 2002-09-04 23:29:10 +00:00
indent Consistently use FBSDID 2002-06-30 05:25:07 +00:00
ipcrm ANSIify function definitions. 2002-09-04 23:29:10 +00:00
ipcs Consistently use FBSDID 2002-06-30 05:25:07 +00:00
join ANSIify function definitions. 2002-09-04 23:29:10 +00:00
jot Don't depend on pollution in <limits.h> for the definition of 2002-07-05 15:58:27 +00:00
kdump Backed out revs 1.32-1.33. The problem has been fixed better by 2002-09-16 10:06:02 +00:00
kenv Consistently use FBSDID 2002-06-30 05:25:07 +00:00
keylogin Consistently use FBSDID 2002-06-30 05:25:07 +00:00
keylogout Consistently use FBSDID 2002-06-30 05:25:07 +00:00
killall s/progname/procname/ to be consistent with the other occurrences 2002-07-15 11:33:30 +00:00
ktrace Consistently use FBSDID 2002-06-30 05:25:07 +00:00
ktrdump The .Nm utility 2002-07-14 15:12:00 +00:00
lam Back out my minorly disputed and possibly not well thought out changes to how 2002-07-01 18:03:30 +00:00
last ANSIify function definitions. 2002-09-04 23:29:10 +00:00
lastcomm ANSIify function definitions. 2002-09-04 23:29:10 +00:00
ldd Initiate deorbit burn for the i386-only a.out related support. Moves are 2002-09-17 01:49:00 +00:00
leave ANSIify function definitions. 2002-09-04 23:29:10 +00:00
less
lessecho
lesskey
lex Catch up with the ISO-C++ standard. 2002-09-09 02:58:42 +00:00
limits Update the usage string in the limits(1) manpage to include -b for 2002-09-18 16:25:59 +00:00
locate Drop support for COPY, -c has been the default mode of install(1) 2002-07-29 09:40:17 +00:00
lock ANSIify function definitions. 2002-09-04 23:29:10 +00:00
lockf Consistently use FBSDID 2002-06-30 05:25:07 +00:00
logger ANSIify function definitions. 2002-09-04 23:29:10 +00:00
login When login tries to do the chmod/chflags on a read only file system, 2002-08-19 20:54:00 +00:00
logname ANSIify function definitions. 2002-09-04 23:29:10 +00:00
look ANSIify function definitions. 2002-09-04 23:29:10 +00:00
lorder
lsvfs Add #include <sys/sysctl.h>. In my tree, mount.h includes 2002-08-11 02:07:43 +00:00
m4 Die on -D=foo, when parsing options - we can't let someone define (nil). 2002-09-04 01:12:39 +00:00
mail Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:23:09 +00:00
make Make the DEBUGF() macro portable by (ugh) adding a Debug() function, which 2002-09-18 16:13:03 +00:00
makewhatis ANSIify function definitions. 2002-09-04 23:29:10 +00:00
mesg ANSIify function definitions. 2002-09-04 23:29:10 +00:00
minigzip
mkdep
mkfifo ANSIify function definitions. 2002-09-04 23:29:10 +00:00
mklocale Document SWIDTH* 2002-08-20 15:19:34 +00:00
mkstr
mktemp Use proper article. 2002-07-16 05:38:26 +00:00
msgs ANSIify function definitions. 2002-09-04 23:29:10 +00:00
mt Add definitions for the industry-standard DLT density codes. 2002-07-09 11:26:09 +00:00
ncal
ncplist
ncplogin ANSIify function definitions. 2002-09-04 23:29:10 +00:00
netstat Warns cleanups for netstat: 2002-09-05 17:06:51 +00:00
newgrp
newkey The .Nm utility 2002-07-14 15:12:00 +00:00
nfsstat
nice ANSIify function definitions. 2002-09-04 23:29:10 +00:00
nl Remove local prototypes for main(). 2002-08-19 03:07:56 +00:00
nm
nohup WARNS=4 2002-07-14 18:23:22 +00:00
objformat Initiate deorbit burn for the i386-only a.out related support. Moves are 2002-09-17 01:49:00 +00:00
opieinfo
opiekey
opiepasswd
pagesize
passwd
paste Fix typos; each file has at least one s/seperat/separat/ 2002-08-11 13:05:30 +00:00
pathchk
perl Prevent the wrapper from looping on itself forever, when there 2002-09-10 13:56:30 +00:00
pr ANSIify function definitions. 2002-09-04 23:29:10 +00:00
printenv ANSIify function definitions. 2002-09-04 23:29:10 +00:00
printf ANSIify function definitions. 2002-09-04 23:29:10 +00:00
quota Add a new flag (-l) that suppresses quota checks on NFS filesystems. 2002-08-09 00:53:00 +00:00
ranlib
renice The .Nm utility 2002-07-14 15:12:00 +00:00
rev ANSIify function definitions. 2002-09-04 23:29:10 +00:00
rlogin
rpcgen Removal of spaces at EOL. Add __FBSDID. New function xmalloc, xrealloc, 2002-07-21 12:55:04 +00:00
rpcinfo Remove local prototypes for main(). 2002-08-19 03:07:56 +00:00
rs
rsh Check for FD_SET overrun. 2002-09-09 16:14:03 +00:00
rup
ruptime
rusers
rwall ANSIify function definitions. 2002-09-04 23:29:10 +00:00
rwho Modernise; ISOify, use __FBSDID(), use headers instead of hand-declaring. 2002-07-01 16:40:33 +00:00
sasc
script ANSIify function definitions. 2002-09-04 23:29:10 +00:00
sed Correct boundary condition error in D' and P' commands when the last 2002-08-11 09:53:44 +00:00
shar
showmount The .Nm utility 2002-07-14 15:12:00 +00:00
size
smbutil
sockstat Use a cast to `void *' before casting to a pointer to a structure 2002-08-02 11:57:59 +00:00
soelim ANSIify function definitions. 2002-09-04 23:29:10 +00:00
split Support larger files (at least 64-bit offsets) by using off_t instead of 2002-07-15 05:31:55 +00:00
stat I was too conservative with my header changes, so restore some sanity 2002-08-15 04:58:46 +00:00
strings
strip Drop support for COPY, -c has been the default mode of install(1) 2002-07-29 09:40:17 +00:00
su Fix typing error in prev. commit 2002-08-12 17:24:42 +00:00
symorder
systat Widen struct sockbuf's sb_timeo member to int from short. With 2002-07-24 03:02:43 +00:00
tabs
tail revert WARNS=4, it makes the alpha compile sad. 2002-07-15 09:53:34 +00:00
talk Remove local prototypes for main(). 2002-08-19 03:07:56 +00:00
tconv
tcopy
tee ANSIify function definitions. 2002-09-04 23:29:10 +00:00
telnet Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:23:09 +00:00
tftp
time ANSIify function definitions. 2002-09-04 23:29:10 +00:00
tip Merge from import. The import was done ages ago, and this diff has been 2002-07-19 14:10:35 +00:00
top Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:23:09 +00:00
touch ANSIify function definitions. 2002-09-04 23:29:10 +00:00
tput ANSIify function definitions. 2002-09-04 23:29:10 +00:00
tr ANSIify function definitions. 2002-09-04 23:29:10 +00:00
true
truncate
truss Remove an unnecessary cast. 2002-08-07 11:35:18 +00:00
tset ANSIify function definitions. 2002-09-04 23:29:10 +00:00
tsort ANSIify function definitions. 2002-09-04 23:29:10 +00:00
tty
uac
ul ANSIify function definitions. 2002-09-04 23:29:10 +00:00
uname Mostly rewrite the flag handling of uname(1) to be overridable, such as: 2002-09-18 04:33:10 +00:00
unexpand ANSIify function definitions. 2002-09-04 23:29:10 +00:00
unifdef Remove local prototypes for main(). 2002-08-19 03:07:56 +00:00
uniq ANSIify function definitions. 2002-09-04 23:29:10 +00:00
units Add enough consts to keep everyone happy. 2002-07-28 16:23:28 +00:00
unvis ANSIify function definitions. 2002-09-04 23:29:10 +00:00
usbhidctl
users ANSIify function definitions. 2002-09-04 23:29:10 +00:00
uudecode Some uses of the variable n needed to be int, others needed to be 2002-09-11 04:26:09 +00:00
uuencode Don't try (and fail) to fchmod /dev/stdout. Revert the manual page 2002-09-03 19:37:23 +00:00
uuidgen
vacation
vgrind
vi Drop support for COPY, -c has been the default mode of install(1) 2002-07-29 09:40:17 +00:00
vis ANSIify function definitions. 2002-09-04 23:29:10 +00:00
vmstat The boottime variable in sys/kern/kern_tc.c is a struct timeval, not a 2002-08-09 15:47:43 +00:00
w Fix warning when calling w(1) when logged in via xdm/kdm. This is 2002-08-23 04:31:58 +00:00
wall
wc Locale environment variables influence wc(1) regardless of whether the 2002-08-11 10:54:19 +00:00
what ANSIify function definitions. 2002-09-04 23:29:10 +00:00
whereis Use correct document date for the -a option. 2002-08-22 01:54:18 +00:00
which Handle relative and absolute pathnames (anything with a `/' in it) in the same 2002-06-30 06:02:39 +00:00
who
whois ARIN has annoyingly started using caps when referencing 2002-09-18 07:51:46 +00:00
window
write ANSIify function definitions. 2002-09-04 23:29:10 +00:00
xargs Fix typos; each file has at least one s/seperat/separat/ 2002-08-11 13:05:30 +00:00
xinstall ANSIify function definitions. 2002-09-04 23:29:10 +00:00
xlint Initiate deorbit burn for the i386-only a.out related support. Moves are 2002-09-17 01:49:00 +00:00
xstr ANSIify function definitions. 2002-09-04 23:29:10 +00:00
yacc Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:23:09 +00:00
yes ANSIify function definitions. 2002-09-04 23:29:10 +00:00
ypcat
ypmatch
ypwhich
Makefile Initiate deorbit burn for the i386-only a.out related support. Moves are 2002-09-17 01:49:00 +00:00
Makefile.inc