freebsd-dev/usr.sbin
Ed Schouten b3608ae18f Replace index() and rindex() calls with strchr() and strrchr().
The index() and rindex() functions were marked LEGACY in the 2001
revision of POSIX and were subsequently removed from the 2008 revision.
The strchr() and strrchr() functions are part of the C standard.

This makes the source code a lot more consistent, as most of these C
files also call into other str*() routines. In fact, about a dozen
already perform strchr() calls.
2012-01-03 18:51:58 +00:00
..
ac Fix double ;; 2010-12-06 10:24:06 +00:00
accton
acpi Reencode files to UTF-8. Drop CP1252 em-dash. 2011-12-30 00:59:08 +00:00
adduser Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
amd
ancontrol Remove duplicated header files 2011-06-24 07:05:20 +00:00
apm Mark global functions and/or variables in apm(8) static where possible. 2011-11-06 19:01:30 +00:00
apmd Don't generate input() since it's not used. 2010-11-22 14:16:22 +00:00
arp Do not hardcode (20*60), but use current ARP timeout value configured 2010-11-30 16:14:19 +00:00
arpaname bmake and other updates necessary for the BIND 9.8.x upgrade. 2011-07-16 11:20:54 +00:00
asf
audit
auditd
auditreduce
authpf
bluetooth Fix typos in command descriptions. 2011-12-31 12:12:41 +00:00
boot0cfg Allow boot0cfg to force a PXE boot via boot0 on the next boot. 2011-12-20 15:19:29 +00:00
boot98cfg
bootparamd Replace index() and rindex() calls with strchr() and strrchr(). 2012-01-03 18:51:58 +00:00
bsdinstall Prevent user astonishment by providing the shell option at the end, after 2011-12-02 02:05:26 +00:00
bsnmpd Fix subtle typo: compare against idx -- not index. 2012-01-03 11:10:15 +00:00
btxld
burncd Reencode files to UTF-8. Drop CP1252 em-dash. 2011-12-30 00:59:08 +00:00
cdcontrol Make all functions and global variables static for cdcontrol(8). 2011-11-06 16:52:26 +00:00
chkgrp Reencode files to UTF-8. Drop CP1252 em-dash. 2011-12-30 00:59:08 +00:00
chown Mark global functions and/or variables in chown(8) static where possible. 2011-11-06 19:01:41 +00:00
chroot Eliminate global variables. 2011-11-06 16:40:17 +00:00
ckdist
clear_locks
config Replace index() and rindex() calls with strchr() and strrchr(). 2012-01-03 18:51:58 +00:00
cpucontrol Use NO_WCAST_ALIGN for usr.sbin/cpucontrol; because this is only built 2011-12-17 19:58:48 +00:00
crashinfo Teach crashinfo(8) to look at the currently running kernel (based on the 2010-11-30 16:04:40 +00:00
cron Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
crunch
ctm In usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c, cast a printf field width 2011-12-17 20:07:42 +00:00
daemon
dconschat
ddns-confgen bmake and other updates necessary for the BIND 9.8.x upgrade. 2011-07-16 11:20:54 +00:00
devinfo Mark global functions and/or variables in devinfo(8) static where possible. 2011-11-06 19:01:48 +00:00
digictl
diskinfo Fix diskinfo -t operation for disks smaller then 8GB or bigger then 2TB. 2011-07-21 19:39:40 +00:00
dnssec-dsfromkey
dnssec-keyfromlabel
dnssec-keygen
dnssec-revoke bmake and other updates necessary for the BIND 9.8.x upgrade. 2011-07-16 11:20:54 +00:00
dnssec-settime bmake and other updates necessary for the BIND 9.8.x upgrade. 2011-07-16 11:20:54 +00:00
dnssec-signzone bmake and other updates necessary for the BIND 9.8.x upgrade. 2011-07-16 11:20:54 +00:00
dumpcis
editmap
edquota Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
eeprom
extattr
extattrctl Close fd in initattr() and showattr(). 2010-12-08 10:27:07 +00:00
faithd Provide a more user friendly URL to the IETF site in faithd(8). 2011-08-02 11:35:28 +00:00
fdcontrol
fdformat The FD_FORM ioctl used to ignore errors from the floppy controller; now when 2011-02-21 09:56:08 +00:00
fdread Mark global functions and/or variables in fdread(8) static where possible. 2011-11-06 19:01:54 +00:00
fdwrite
fifolog Another couple of unsigned/ssize_t changes. 2011-03-01 08:52:10 +00:00
flowctl Conditionally compile in the IPv4/IPv6 address family support. 2011-07-06 15:18:32 +00:00
freebsd-update Add '%' and '@' to the set of characters which can appear in path names. 2011-10-23 06:23:11 +00:00
ftp-proxy Update packet filter (pf) code to OpenBSD 4.5. 2011-06-28 11:57:25 +00:00
fwcontrol Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
genrandom bmake and other updates necessary for the BIND 9.8.x upgrade. 2011-07-16 11:20:54 +00:00
getfmac
getpmac
gpioctl Bump the date of the man page to the date of the actual commit. 2011-05-25 21:04:11 +00:00
gssd
gstat
i2c In usr.sbin/i2c/i2c.c, fix a few warnings about format strings not being 2011-12-17 20:12:17 +00:00
ifmcstat Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
inetd Replace index() and rindex() calls with strchr() and strrchr(). 2012-01-03 18:51:58 +00:00
iostat In usr.sbin/iostat/iostat.c, use printf format specifiers from 2011-12-17 20:25:23 +00:00
ip6addrctl
ipfwpcap Replace index() and rindex() calls with strchr() and strrchr(). 2012-01-03 18:51:58 +00:00
IPXrouted Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
isc-hmac-fixup bmake and other updates necessary for the BIND 9.8.x upgrade. 2011-07-16 11:20:54 +00:00
jail Always disable mount and unmount for jails with enforce_statfs==2. 2011-08-02 19:44:40 +00:00
jexec
jls Fix jls backward compat mode broken in r222465, correctly 2011-08-13 13:49:11 +00:00
kbdcontrol Reencode files to UTF-8. Drop CP1252 em-dash. 2011-12-30 00:59:08 +00:00
kbdmap Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
keyserv In usr.sbin/keyserv, fix some implicit enum conversions, and use the 2011-12-17 20:53:06 +00:00
kgmon Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
kgzip
kldxref Reencode files to UTF-8. Drop CP1252 em-dash. 2011-12-30 00:59:08 +00:00
lastlogin Allow custom files to be opened and allow sorting by timestamp. 2011-06-06 18:40:01 +00:00
lmcconfig lmcconfig(8): bump to WARNS=3, fix typo in usage while here 2010-12-20 19:08:15 +00:00
lpr Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
lptcontrol
mailstats
mailwrapper
makefs Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
makemap
manctl
memcontrol Mark global functions and/or variables in memcontrol(8) static where possible. 2011-11-06 19:01:59 +00:00
mergemaster If using DISTDIR we need to be sure to create a ${DESTDIR}/var/db/zoneinfo 2011-11-29 08:22:12 +00:00
mfiutil Use the correct volume identifier field when parsing MR_EVT_ARG_LD_STRIP 2011-12-05 15:11:35 +00:00
mixer Mark global functions and/or variables in mixer(8) static where possible. 2011-11-06 19:02:13 +00:00
mld6query Add __unused. Ansi prototypes. 2010-12-20 08:54:30 +00:00
mlxcontrol
mount_nwfs
mount_portalfs Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
mount_smbfs
mountd Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
moused Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
mptable Mark all global variables static for mptable(1). 2011-11-06 16:47:50 +00:00
mptutil Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
mtest Don't die if either of INET or INET6 aren't in the running kernel. 2011-06-24 17:54:45 +00:00
mtree Replace index() and rindex() calls with strchr() and strrchr(). 2012-01-03 18:51:58 +00:00
named Upgrade to BIND version 9.8.1. Release notes at: 2011-09-03 07:13:45 +00:00
named-checkconf bmake and other updates necessary for the BIND 9.8.x upgrade. 2011-07-16 11:20:54 +00:00
named-checkzone
named-journalprint bmake and other updates necessary for the BIND 9.8.x upgrade. 2011-07-16 11:20:54 +00:00
ndiscvt Use NO_WCAST_ALIGN for usr.sbin/ndiscvt; because this is only built for 2011-12-17 22:16:27 +00:00
ndp - Merge changes to the base system to support OFED. These include 2011-03-21 09:40:01 +00:00
newsyslog Replace index() and rindex() calls with strchr() and strrchr(). 2012-01-03 18:51:58 +00:00
nfscbd
nfsd Remove duplicated header files 2011-06-24 07:05:20 +00:00
nfsdumpstate
nfsrevoke
nfsuserd Change the NFSv4 nfsuserd(8) daemon so that it doesn't preload the 2011-06-21 21:07:33 +00:00
ngctl Add __unused. Ansi prototypes. 2010-12-20 09:36:54 +00:00
nghook
nologin
nscd Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
nsec3hash bmake and other updates necessary for the BIND 9.8.x upgrade. 2011-07-16 11:20:54 +00:00
ntp Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
nvram
ofwdump
pc-sysinstall Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
pciconf Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
periodic
pkg_install Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
pmcannotate
pmccontrol In usr.sbin/pmccontrol/pmccontrol.c, fix a few warnings about format 2011-12-17 23:39:13 +00:00
pmcstat Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
pnpinfo
portsnap Fix spelling of extract. 2011-11-13 06:39:49 +00:00
powerd Add missing static keyword. 2011-12-11 19:22:42 +00:00
ppp Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
pppctl
praliases
praudit
procctl
pstat Get rid of major/minor number distinction. 2011-09-28 18:53:36 +00:00
pw Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
pwd_mkdb Mark global functions and/or variables in pwd_mkdb(8) static where possible. 2011-11-06 19:02:25 +00:00
quot The dump, fsck_ffs, fsdb, fsirand, newfs, makefs, and quot utilities 2011-01-24 06:17:05 +00:00
quotaon Simply use getprogname() to obtain the name of the process. 2012-01-03 11:08:58 +00:00
rarpd Catch up with kernel using time_uptime to drive ARP timeouts. 2010-12-06 09:37:56 +00:00
repquota
rip6query Mark global functions and/or variables in rip6query(8) static where possible. 2011-11-06 19:02:31 +00:00
rmt Mark global functions and/or variables in rmt(8) static where possible. 2011-11-06 19:02:37 +00:00
rndc bmake and other updates necessary for the BIND 9.8.x upgrade. 2011-07-16 11:20:54 +00:00
rndc-confgen bmake and other updates necessary for the BIND 9.8.x upgrade. 2011-07-16 11:20:54 +00:00
route6d Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
rpc.lockd Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
rpc.statd Fix the nfs related daemons so that they don't intermittently 2011-06-02 20:15:32 +00:00
rpc.umntall
rpc.yppasswdd Remove duplicated header files 2011-06-24 07:05:20 +00:00
rpc.ypupdated In usr.sbin/rpc.ypupdated/yp_dbupdate.c, since intmax_t is signed, just 2011-12-18 00:55:46 +00:00
rpc.ypxfrd
rpcbind Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
rrenumd
rtadvctl - Fix a bug that can lead to displaying an incorrect value. (r224210) 2011-09-12 23:52:55 +00:00
rtadvd Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
rtprio - Fail when the utility is not invoked as rtprio nor idprio. 2011-12-27 20:03:57 +00:00
rtsold Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
rwhod Replace index() and rindex() calls with strchr() and strrchr(). 2012-01-03 18:51:58 +00:00
sa In usr.sbin/sa/db.c, avoid warnings about assigning two const char 2011-12-18 01:08:25 +00:00
sade Replace index() and rindex() calls with strchr() and strrchr(). 2012-01-03 18:51:58 +00:00
sendmail Unfortunately, clang gives warnings about sendmail code that cannot be 2011-12-19 13:35:44 +00:00
service Fix a silly typo on my part. 2011-08-06 09:11:30 +00:00
services_mkdb
setfib
setfmac
setpmac
sicontrol
smbmsg
snapinfo Mark global functions and/or variables in snapinfo(8) static where possible. 2011-11-06 19:02:43 +00:00
spkrtest Update spkrtest(8) to use new dialog auto-sizing syntax. 2011-01-13 17:30:18 +00:00
spray Mark global functions and/or variables in spray(8) static where possible. 2011-11-06 19:02:49 +00:00
syslogd Add a new option, -N to disable the default and recommended syslogd(8) 2011-07-14 07:33:53 +00:00
tcpdchk
tcpdmatch
tcpdrop Include param.h for CACHE_LINE_SIZE to unbreak the build. 2011-06-06 17:07:38 +00:00
tcpdump Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
timed Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
traceroute traceroute(8): make WARNS=3 clean 2010-12-04 14:19:27 +00:00
traceroute6 Remove the advertising clause from UCB copyrighted files in usr.sbin. This 2010-12-11 09:38:12 +00:00
trpt
tzsetup Sync xdialog_menu() implementation with sade. 2011-12-01 09:02:57 +00:00
uathload Only use -z noexecstack for these explicit arches: i386, amd64, powerpc 2011-02-16 21:04:47 +00:00
ugidfw
uhsoctl In usr.sbin/uhsoctl/uhsoctl.c, fix a few warnings about format strings 2011-12-19 20:38:26 +00:00
usbconfig - Correct USB 3.0 wire-speed to 5.0Gbps 2011-02-26 09:28:52 +00:00
usbdump Make the usbdump utility work again by using the correct BPF structures. 2011-10-17 15:54:20 +00:00
utxrm Add a utility, utxrm(8). 2011-02-19 11:44:04 +00:00
vidcontrol Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
vipw
wake
watch
watchdogd
wlandebug
wlconfig
wpa Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
yp_mkdb In usr.sbin/yp_mkdb/yp_mkdb.c, cast some printf field width parameters 2011-12-19 20:44:44 +00:00
ypbind Protect NIS client with madvise(2) since this daemon is required 2011-10-24 14:35:31 +00:00
yppoll
yppush
ypserv Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
ypset
zic
zzz
Makefile Farewall, sysinstall! You served us well for many years, but 10.0 is one 2011-10-03 15:13:09 +00:00
Makefile.amd64 Build sade on amd64 as well as i386 and sparc64. 2010-12-09 11:37:40 +00:00
Makefile.arm
Makefile.i386
Makefile.ia64
Makefile.inc
Makefile.mips Fix n32 compile. 2011-01-27 14:16:12 +00:00
Makefile.powerpc
Makefile.sparc64