1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/usr.sbin
Devin Teske fd962ac699 Improve portion of the dialog(1) API in dialog.subr responsible for
retrieving stored data (for the --menu, --calendar, --timebox, --checklist,
and --radiolist widgets).

When we (Ron McDowell and I) developed the first version of bsdconfig, it
used temporary files to store responses from dialog(1). That hasn't been
true for some very long time, so the need to always store the return status
of dialog(1) and then call some function to clean-up is long-deprecated. The
function that used to do the clean-up was f_dialog_menutag().

We really don't need f_dialog_menutag() for its originally designed purpose,
as all dialog invocations (even when in a sub-shell) do not use temporary
files anymore.

However, we do need to keep f_dialog_menutag() around because it still fills
the need of being able to abstract the procedure for fetching stored data
provided by functions that display the aforementioned widgets.

In re-designing f_dialog_menutag(), four important changes are made:

1. Rename f_dialog_menutag() to f_dialog_menutag_fetch()
2. Introduce the new first-argument of $var_to_set to reduce number of forks
3. Create a corresponding f_dialog_menutag_store() to abstract the storage
4. Offload the sanitization to a new function, f_dialog_data_sanitize()

NOTE: That last one is important. Not all functions need to store their data
for later fetching, meanwhile every invocation of dialog should be sanitized
(as we learned early-on in the i18n-effort -- underlying libraries will spit
warnings to stderr for bad values of $LANG and since dialog outputs its
responses to stderr, we need to sanitize every response of these warnings).

These changes greatly improve readbaility and also improve performance by
reducing unnecessary forking.
2013-06-01 23:58:44 +00:00
..
ac Move example to EXAMPLES. 2013-03-17 06:54:04 +00:00
accton
acpi Fix a long standing logic bug introduced in r167814. The code was added to 2013-05-31 17:23:38 +00:00
adduser Remove a reference to CVS and to freefall from a user-facing man page. 2012-09-15 16:24:03 +00:00
amd Consistently set RPCGEN_CPP when running rpcgen, so the C preprocessor 2012-02-07 09:27:07 +00:00
ancontrol Fix always 0 tautologly revealed by gcc46 2012-07-08 00:52:54 +00:00
apm
apmd Improve compatibility with recent flex from flex.sourceforge.net. 2013-05-03 23:51:32 +00:00
arp Rate limit the number of remotely triggered ARP log messages 2013-05-11 10:51:32 +00:00
arpaname
asf
audit
auditd
auditdistd Add the Clang specific -Wmissing-variable-declarations to WARNS=6. 2013-04-19 19:45:00 +00:00
auditreduce
authpf o Create directory sys/netpfil, where all packet filters should 2012-09-14 11:51:49 +00:00
bhyve Implement the NOTIFY_ON_EMPTY capability in the virtio-net device. 2013-05-03 01:16:18 +00:00
bhyvectl Add some more stats to keep track of all the reasons that a vcpu is exiting. 2013-03-30 17:46:03 +00:00
bhyveload mdoc: remove superfluous paragraph macro. 2013-03-19 07:25:58 +00:00
bluetooth Work around build breakages with GCC 4.2. 2013-05-23 05:42:35 +00:00
boot0cfg Remove superfluous paragraph macro. 2012-03-25 09:18:34 +00:00
boot98cfg
bootparamd mdoc sweep. 2013-05-12 22:22:12 +00:00
bsdconfig Improve portion of the dialog(1) API in dialog.subr responsible for 2013-06-01 23:58:44 +00:00
bsdinstall Add some missing DPADD. 2013-05-11 13:46:05 +00:00
bsnmpd Revert r250394, which disabled snmp_hast due to libl dependency issue -- 2013-05-12 13:42:49 +00:00
btxld
cdcontrol Remove trailing whitespace per mdoc lint warning 2012-03-29 05:02:12 +00:00
chkgrp This wasn't supposed to be in there - I committed the wrong patch. 2012-11-15 15:21:58 +00:00
chown
chroot Minor mdoc fixes. 2012-10-07 19:53:04 +00:00
ckdist
clear_locks
config Work around build breakages with GCC 4.2. 2013-05-23 05:42:35 +00:00
cpucontrol Avoid clobbering errno with a call to fprintf 2013-01-16 05:00:51 +00:00
crashinfo Improve multi-line kernel ident parsing 2012-03-07 18:46:21 +00:00
cron Second attempt to add @every_second keyword support. Due to multiple 2012-10-25 22:54:29 +00:00
crunch crunchgen: Permit use of alternative linkers. 2013-02-05 02:57:59 +00:00
ctladm Check the return value of sbuf_finish(). 2013-05-10 09:58:32 +00:00
ctm
daemon Remove bogus '-' from getopt(3) string hit when porting daemon(8) to 2013-01-03 00:49:11 +00:00
dconschat Fix the following warning from clang trunk: 2012-03-19 19:17:55 +00:00
ddns-confgen
devinfo
digictl mdoc: add missing width argument to Bl -tag. 2012-06-03 06:57:47 +00:00
diskinfo remove duplicate semicolons where possible. 2012-10-22 03:00:37 +00:00
dnssec-dsfromkey
dnssec-keyfromlabel
dnssec-keygen
dnssec-revoke
dnssec-settime
dnssec-signzone
dumpcis Fxi a bunch of typos. 2013-05-10 16:41:26 +00:00
editmap
edquota Remove unneeded includes. 2012-11-20 02:12:01 +00:00
eeprom
etcupdate Add HISTORY section. 2012-07-13 21:27:18 +00:00
extattr Fix return type of extattr_set_* and fix rmextattr(8) utility. 2013-04-02 05:30:41 +00:00
extattrctl
faithd mdoc: correct .Bd/.Bl arguments. 2012-03-26 21:22:53 +00:00
fdcontrol
fdformat
fdread
fdwrite mdoc: terminate quoted strings. 2012-03-26 15:18:14 +00:00
fifolog Add the Clang specific -Wmissing-variable-declarations to WARNS=6. 2013-04-19 19:45:00 +00:00
flowctl Add "human" option to print IPv4/IPv6 flows in human-readable format. 2012-06-09 10:10:12 +00:00
freebsd-update mdoc sweep. 2013-05-12 22:22:12 +00:00
ftp-proxy o Create directory sys/netpfil, where all packet filters should 2012-09-14 11:51:49 +00:00
fwcontrol mdoc: add missing width argument to Bl -tag. 2012-06-03 06:57:47 +00:00
genrandom
getfmac
getpmac
gpioctl More -Wmissing-variable-declarations fixes. 2012-10-19 14:49:42 +00:00
gssd Fix the getpwuid_r() call in the gssd daemon so that it handles 2013-05-02 12:43:56 +00:00
gstat
i2c Fixes to man8 groff mandoc style, usage mistakes, or typos. 2012-05-24 02:24:03 +00:00
ifmcstat - Print scopeid for link-local scope addresses. 2013-01-03 22:27:57 +00:00
inetd - Force inetd to have listen queue size to be set to the value of 2013-01-20 19:44:33 +00:00
iostat Change iostat -Ix to display total duration of transactions instead 2012-12-15 18:21:09 +00:00
ip6addrctl More -Wmissing-variable-declarations fixes. 2012-10-19 14:49:42 +00:00
ipfwpcap Update my e-mail to my FreeBSD one. 2012-07-19 08:56:30 +00:00
IPXrouted Fix warning when compiling with gcc46 2012-02-16 05:17:06 +00:00
isc-hmac-fixup
isfctl Add isf(4), a driver for the Intel StrataFlash family of NOR flash parts. 2012-08-25 18:08:20 +00:00
jail Work around build breakages with GCC 4.2. 2013-05-23 05:42:35 +00:00
jexec
jls Add a -N option that prints the jail name rather than its number. 2013-05-17 08:48:16 +00:00
kbdcontrol Improve compatibility with recent flex from flex.sourceforge.net. 2013-05-03 23:51:32 +00:00
kbdmap Remove variables which are initialized but never used thereafter reported by gcc46 warning 2012-06-19 06:10:31 +00:00
keyserv Rework all non-contributed files that use `struct timezone'. 2012-09-01 14:45:15 +00:00
kgmon remove old-style function definition 2013-02-14 14:44:08 +00:00
kgzip
kldxref Clarify a warning message. 2012-10-29 03:31:22 +00:00
lastlogin
lmcconfig Rework time handling. 2012-09-01 10:56:15 +00:00
lpr Change the closeallfds() routine to use closefrom() when it is 2013-05-27 22:19:01 +00:00
lptcontrol
mailstats
mailwrapper
makefs Set st_nlink in the stat structure within the inode to 1 as well. 2013-05-13 18:34:33 +00:00
makemap
manctl
memcontrol Fix conditional expression: previously a bit vector was being operated 2012-10-22 02:12:15 +00:00
mergemaster Don't mess with /etc/localtime if it is a symlink. 2013-05-22 19:00:05 +00:00
mfiutil Add a remark to the effect that a manually started relearn will always 2013-05-13 15:00:36 +00:00
mixer Return proper error message if recording device is not specified. 2012-01-27 09:15:55 +00:00
mld6query
mlxcontrol
mount_smbfs
mountd Check if the -sec option is given without an argument. 2013-02-20 12:40:26 +00:00
moused Add preliminary support for IBM/Lenovo TrackPoint. 2013-03-18 23:22:47 +00:00
mptable Divine the array size by using 'nitems(array)' instead of using magic numbers. 2012-12-21 04:44:40 +00:00
mptutil Remove contractions. 2013-04-11 18:46:41 +00:00
mtest Fix socket calls on error post-r243965. 2012-12-21 15:54:13 +00:00
mtree Always install our mtree as /usr/sbin/fmtree and link it as 2013-01-09 21:07:08 +00:00
named Don't try to suppress the inclusion of the build date in named's version 2013-02-10 17:58:44 +00:00
named-checkconf
named-checkzone
named-journalprint
nandsim Add missing static keyword, to make the code build with WARNS=6. 2013-04-21 22:47:24 +00:00
nandtool mdoc: remove whitespace. 2012-05-17 11:50:12 +00:00
ndiscvt Improve compatibility with recent flex from flex.sourceforge.net. 2013-05-03 23:51:32 +00:00
ndp Include descriptions of the flags and fields printed when dumping the 2013-05-23 19:50:36 +00:00
newsyslog Some filesystems (NFS in particular) do not fill out the d_type field when 2013-05-12 01:58:04 +00:00
nfscbd Standardize EXIT STATUS instructions in man pages when possible. 2012-11-18 16:33:51 +00:00
nfsd Document the fact that an NFSv4 mount against a volume on the same host 2013-05-01 22:50:45 +00:00
nfsdumpstate
nfsrevoke
nfsuserd
ngctl
nghook
nmtree Import a new version of NetBSD's mtree. 2013-04-09 06:50:11 +00:00
nologin
nscd Remove end of line whitespace. 2012-07-04 10:17:02 +00:00
nsec3hash
ntp General mdoc(7) and typo fixes. 2012-05-12 15:08:22 +00:00
nvram Dont cast from char* to struct chrp_header* which has a bigger alignment 2012-08-27 14:51:26 +00:00
ofwdump
pc-sysinstall Remove some more references to legacy ATA. 2013-04-04 12:03:30 +00:00
pciconf Decode new HT 3.00 and 3.10 capabilities. 2013-05-17 14:05:31 +00:00
periodic Prevent periodic scripts that run longer than the expected period from 2012-02-12 23:18:05 +00:00
pkg Fix a typo in DPADD. 2013-03-10 17:10:16 +00:00
pkg_install Update location to ports INDEX file. 2013-05-18 19:18:03 +00:00
pmcannotate objdump output changed indentation from 1 space to 2 spaces somewhere between 2013-05-06 18:30:49 +00:00
pmccontrol More -Wmissing-variable-declarations fixes. 2012-10-19 14:49:42 +00:00
pmcstat More -Wmissing-variable-declarations fixes. 2012-10-19 14:49:42 +00:00
pnpinfo
portsnap mdoc sweep 2013-05-13 18:13:50 +00:00
powerd Improve error reporting when no cpufreq(4) support is available. 2012-04-09 20:59:14 +00:00
ppp - Correct mispellings of the word occurrence 2013-04-17 11:40:10 +00:00
pppctl
praliases
praudit
procctl
pstat
pw mdoc sweep 2013-05-13 18:13:50 +00:00
pwd_mkdb
quot Fix usr.bin/ and usr.sbin/ build with a 64-bit ino_t. 2012-09-27 23:31:19 +00:00
quotaon More -Wmissing-variable-declarations fixes. 2012-10-19 14:49:42 +00:00
rarpd Add some missing newlines and static declarations. 2013-04-07 15:33:06 +00:00
repquota More -Wmissing-variable-declarations fixes. 2012-10-19 14:49:42 +00:00
rip6query
rmt
rndc
rndc-confgen
route6d Minor mdoc fix. 2012-11-18 16:58:08 +00:00
rpc.lockd Remove dead return code 2012-09-11 07:35:24 +00:00
rpc.statd Consistently set RPCGEN_CPP when running rpcgen, so the C preprocessor 2012-02-07 09:27:07 +00:00
rpc.umntall
rpc.yppasswdd Handle NULL return from crypt(3). Mostly from DragonFly 2012-02-22 06:27:20 +00:00
rpc.ypupdated Consistently set RPCGEN_CPP when running rpcgen, so the C preprocessor 2012-02-07 09:27:07 +00:00
rpc.ypxfrd Consistently set RPCGEN_CPP when running rpcgen, so the C preprocessor 2012-02-07 09:27:07 +00:00
rpcbind Fix socket calls on error post-r243965. 2012-12-21 15:54:13 +00:00
rrenumd Improve compatibility with recent flex from flex.sourceforge.net. 2013-05-03 23:51:32 +00:00
rtadvctl Fixes to man8 groff mandoc style, usage mistakes, or typos. 2012-05-24 02:24:03 +00:00
rtadvd Fix a typo in an error message. 2013-05-06 17:21:28 +00:00
rtprio Document the security.bsd.unprivileged_idprio in idprio(1) in addition 2012-09-30 03:21:21 +00:00
rtsold - Fix wording. [1] 2013-05-28 13:54:26 +00:00
rwhod Bump date missed in r202756 2012-09-14 17:50:42 +00:00
sa
sendmail Since clang 3.2 now has an option to suppress warnings about implicitly 2013-02-16 20:17:31 +00:00
service Add -R, an option to restart all enabled "local" services. 2012-12-12 01:50:58 +00:00
services_mkdb Remove contractions. 2013-04-11 18:46:41 +00:00
setfib Minor spelling fixes. 2012-06-03 11:29:48 +00:00
setfmac
setpmac
sicontrol
smbmsg Fixes to man8 groff mandoc style, usage mistakes, or typos. 2012-05-24 02:24:03 +00:00
snapinfo Fix usr.bin/ and usr.sbin/ build with a 64-bit ino_t. 2012-09-27 23:31:19 +00:00
spkrtest
spray
syslogd syslogd: Use closefrom() instead of getdtablesize()/close() loop. 2013-04-27 13:26:35 +00:00
sysrc Remove NO_OBJ from Makefiles that generate manuals because this causes the 2013-02-08 11:14:01 +00:00
tcpdchk
tcpdmatch
tcpdrop Allow the address and ports to be separated by a colon or period rather 2013-01-30 18:24:29 +00:00
tcpdump Convert Makefile to have only one file for each line, while I'm there, sort 2013-05-30 21:24:33 +00:00
timed Minor update about rc.conf. 2013-04-22 18:31:39 +00:00
traceroute
traceroute6 Add -a and -A option to the usage. 2012-05-08 15:18:35 +00:00
trpt
tzsetup Fix VERBOSE reporting on results when removing _PATH_LOCALTIME for UTC option. 2013-03-04 11:34:31 +00:00
uathload
ugidfw
uhsoctl mdoc sweep 2013-05-13 18:13:50 +00:00
usbconfig - Make the FreeBSD's USB library compile under Linux. 2013-03-13 12:23:14 +00:00
usbdump Make usbusN logging pseudo-interface used by usbdump(8) clonable. One is 2012-07-09 07:25:09 +00:00
utx Fixes to man8 groff mandoc style, usage mistakes, or typos. 2012-05-25 03:46:56 +00:00
vidcontrol The M_VESA_MODE_MAX is latest valid mode - not the first invalid. 2013-05-11 13:32:38 +00:00
vipw Restore message in man page on VFS timestamp precision. 2012-02-14 09:29:37 +00:00
wake mdoc sweep. 2013-05-12 22:22:12 +00:00
watch Perform even more style changes. 2012-03-10 14:38:34 +00:00
watchdogd Mark the act_tbl static/const. 2013-04-08 08:05:15 +00:00
wlandebug Remove trailing whitespace per mdoc lint warning 2012-03-29 05:02:12 +00:00
wlconfig mdoc: correct .Bd/.Bl arguments. 2012-03-26 21:22:53 +00:00
wpa Teach wpa_supplicant to properly compute wireless signal strength. 2013-05-11 20:55:14 +00:00
yp_mkdb
ypbind
yppoll
yppush Consistently set RPCGEN_CPP when running rpcgen, so the C preprocessor 2012-02-07 09:27:07 +00:00
ypserv Fix socket calls on error post-r243965. 2012-12-21 15:54:13 +00:00
ypset
zic
zzz
Makefile Remove usr.sbin/burncd, useless after legacy ATA stack removal. 2013-04-04 09:21:24 +00:00
Makefile.amd64 Sort the 'bhyvectl' subdir alphabetically. 2013-01-09 04:02:23 +00:00
Makefile.arm sysinstall was removed from usr.sbin/Makefile in r225937. Because per-arch 2012-03-13 00:45:27 +00:00
Makefile.i386 Replace sade the extracted piece of sysinstall with sade the extracted 2012-12-30 14:35:00 +00:00
Makefile.ia64 Disconnect non-MPSAFE SMBFS from the build in preparation for dropping 2012-10-18 12:04:56 +00:00
Makefile.inc
Makefile.mips Assume a big-endian default on MIPS and drop the "eb" suffix from MACHINE_ARCH. 2012-03-29 02:54:35 +00:00
Makefile.powerpc Disconnect non-MPSAFE SMBFS from the build in preparation for dropping 2012-10-18 12:04:56 +00:00
Makefile.sparc64 Replace sade the extracted piece of sysinstall with sade the extracted 2012-12-30 14:35:00 +00:00