NetBSD/sbin
martin 20a45a9b7b Pull up following revision(s) (requested by nakayama in ticket #1019):
sbin/raidctl/rf_configure.h: revision 1.2
	sbin/raidctl/rf_configure.c: revision 1.27
	sbin/raidctl/rf_configure.c: revision 1.28
	sbin/raidctl/rf_configure.c: revision 1.29
	sbin/raidctl/raidctl.8: revision 1.73
	sbin/raidctl/rf_configure.c: revision 1.30
	sbin/raidctl/rf_configure.c: revision 1.31
	sbin/raidctl/rf_configure.c: revision 1.32

support NAME=<wedge name> syntax for disks and spares

 -

stop using magic constants
wrap long lines
use warn{,x}
make static
knf

 -

White space and comment formatting.   NFC.

 -

With char bug[SIZE]  using sizeof(bug[0]) is kind of boring, use
sizeof(bug) instead...

 -

Avoid needless pointer calisthenics: &foo[0] -> foo

 -

Several more cleanups:
1. Don't force use of "for" when "while" works better.
2. No need to check c != '\0' when we also check (c == ' ' || c == '\t')
3. Use the size of the buffer we're using, rather than a different one
   (not really a concern, they're the same size)
4. Don't use fscanf() to read file data, use fgets() & sscanf().
5. After using a pointer as a char *, validate alignment before switching
   to int * (can only fail if kernel #define gets set stupidly)   Or #6...
6. Validate sparemap file name isn't too long for assigned space.
7. recognise that strlen() returns size_t - don't shove it into an int.
8. On out of mem, be more clear which allocation failed in warning msg.

ATF tests all pass.   But I don't think they use sparemap files.
2018-09-10 17:56:00 +00:00
..
amrctl Pull up following revision(s) (requested by sevan in ticket #992): 2018-08-28 13:21:42 +00:00
apmlabel fix unused variable warnings. 2013-10-19 01:09:58 +00:00
atactl add SMART 249: Total Raw NAND Writes (1GiB units), sourced from 2016-10-04 21:37:46 +00:00
badsect Drop main() prototype. 2016-09-05 01:00:07 +00:00
bioctl Note which version it appeared in before the rewrite. 2016-09-11 01:03:15 +00:00
brconfig Use the new BRDGGIFS and BRDGRTS cmds which just use ifdrv directly. 2015-06-01 06:15:18 +00:00
canconfig New sentence, new line. Fix typos. More consistent grammar. 2017-05-29 08:46:23 +00:00
ccdconfig Make ccdconfig resolve wedge names. 2014-12-07 10:44:34 +00:00
cgdconfig Pull up following revision(s) (requested by alnsn in ticket #958): 2018-08-07 13:19:51 +00:00
chkconfig
chown Document the version chown first appeared. 2016-09-11 01:23:26 +00:00
clri Actually, V6 included clri before 3BSD. 2016-09-12 23:11:50 +00:00
devpubd Document the version devpubd first appeared. 2016-09-11 01:38:00 +00:00
disklabel use warnx() rather than warn() in a case where errno is not relevant. 2017-03-09 00:18:23 +00:00
dkctl Pull up following revision(s) (requested by kre in ticket #737): 2018-04-11 14:45:51 +00:00
dkscan_bsdlabel Define _KERNTYPES for things that need it. 2016-01-23 21:22:45 +00:00
dmctl Mention author in AUTHORS section. 2016-09-11 02:18:52 +00:00
dmesg dmesg first appeared in 3BSD 2016-09-11 02:24:00 +00:00
drvctl Document the version drvctl appeard. 2016-09-11 02:59:11 +00:00
dump dump was there from v4. 2016-08-15 00:03:14 +00:00
dump_lfs Make dump recognize lfs64. 2015-10-15 06:25:12 +00:00
fastboot
fdisk Pull up following revision(s) (requested by sevan in ticket #993): 2018-08-28 13:23:34 +00:00
fsck file system police. 2016-09-11 09:09:54 +00:00
fsck_ext2fs Pull up following revision(s) (requested by sevan in ticket #992): 2018-08-28 13:21:42 +00:00
fsck_ffs Pull up following revision(s) (requested by hannken in ticket #550): 2018-02-15 08:26:37 +00:00
fsck_lfs Pull up following revision(s) (requested by maya in ticket #855): 2018-06-08 10:21:12 +00:00
fsck_msdos Prevent SEGV on corrupted msdos directories (Veo Zhang) 2017-04-28 11:33:00 +00:00
fsck_v7fs need <sys/stat.h> 2017-01-10 20:53:09 +00:00
fsdb From Michael Plass: 2016-07-28 08:24:58 +00:00
fsirand Document author and the version fsirand appeared. 2016-09-11 21:22:18 +00:00
gpt Pull up following revision(s) (requested by sevan in ticket #992): 2018-08-28 13:21:42 +00:00
ifconfig We don't need agr or l2tp when we are small. 2017-05-02 20:12:27 +00:00
init init first appeared in V1 UNIX 2016-09-11 22:22:57 +00:00
iscsictl update client OS version as well 2015-08-30 10:49:57 +00:00
iscsid Add printf-like annotation. 2016-05-30 22:02:41 +00:00
ldconfig Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
luactl Direct reader to intro(9lua), lua(9) does not exist. 2017-04-10 19:49:39 +00:00
mbrlabel Remove trailing whitespace. 2013-02-27 21:21:47 +00:00
mknod mknod appeared in V4 2016-09-11 23:02:54 +00:00
modload Add .An -nosplit. 2016-09-12 06:52:59 +00:00
modstat Add a description for the new MODULE_CLASS_BUFQ class. 2016-11-16 10:43:37 +00:00
modunload Use standard section header. 2016-09-12 06:55:10 +00:00
mount expand a little the explanation about discard 2017-03-22 21:14:11 +00:00
mount_ados Use __dead 2011-08-29 14:34:58 +00:00
mount_cd9660 Use __dead 2011-08-29 14:34:58 +00:00
mount_chfs Document the version mount_chfs appeared. 2016-09-12 00:38:42 +00:00
mount_efs De-capitalize `.Nd' macro argument. 2013-05-29 14:56:19 +00:00
mount_ext2fs Add MOPT_{REL,NO}ATIME as supported by the underlying filesystems. 2016-02-21 22:51:29 +00:00
mount_fdesc Add crossreference to fd(4) as noted a while back in PR 45694. Bump date. 2013-12-30 08:43:22 +00:00
mount_ffs Implement experimental support to pass notifications that a file 2012-10-19 17:09:06 +00:00
mount_filecore Use __dead 2011-08-29 14:34:58 +00:00
mount_hfs Drop main() prototype. 2016-09-05 01:00:07 +00:00
mount_kernfs Bump date for previous. 2012-03-22 21:47:20 +00:00
mount_lfs Add MOPT_{REL,NO}ATIME as supported by the underlying filesystems. 2016-02-21 22:51:29 +00:00
mount_msdos Whilst mount_pcfs originated as a patch in 386BSD, NetBSD 0.8 actually was the first release of an OS to ship with it. 2016-10-11 16:10:03 +00:00
mount_nfs remove debugging printf. 2017-02-05 00:24:24 +00:00
mount_nilfs Sort SEE ALSO. New sentence, new line. Punctuation nits. Use Nx. 2016-06-01 12:01:21 +00:00
mount_ntfs Use Xr instead of Fn to refer readdir(3) 2017-04-15 10:30:55 +00:00
mount_null Eliminate the distinct path check, since the paths don't actually need to be 2016-07-25 04:40:51 +00:00
mount_overlay Use __dead 2011-08-29 14:34:58 +00:00
mount_portal We need to provide a size for getattr for the cp example to work, so cheat 2017-05-10 16:35:18 +00:00
mount_procfs Pull up following revision(s) (requested by kamil in ticket #713): 2018-04-12 13:42:48 +00:00
mount_ptyfs Drop main() prototype. 2016-09-05 01:00:07 +00:00
mount_puffs New sentence, new line. Sort SEE ALSO. Fix typo. 2016-11-24 12:38:32 +00:00
mount_sysvbfs Add AUTHORS section. 2016-09-12 02:38:31 +00:00
mount_tmpfs Add MOPT_{REL,NO}ATIME as supported by the underlying filesystems. 2016-02-21 22:51:29 +00:00
mount_udf Add HISTORY & AUTHORS section. 2016-09-12 02:45:07 +00:00
mount_umap Use __dead 2011-08-29 14:34:58 +00:00
mount_union Use __dead 2011-08-29 14:34:58 +00:00
mount_v7fs Add HISTORY & AUTHORS section. 2016-09-12 02:57:09 +00:00
newbtconf
newfs __empty -> __nothing 2017-02-08 18:05:25 +00:00
newfs_ext2fs Add a bit of swapping for values in CG descriptors (used to be done 2016-09-05 10:44:36 +00:00
newfs_lfs Enable the creation of lfs64 volumes. 2015-10-15 06:24:33 +00:00
newfs_msdos Use the create_size if given to compute the real size instead of stat'ing 2017-04-14 15:39:29 +00:00
newfs_sysvbfs fix includes, addr __RCSID 2017-01-10 20:49:20 +00:00
newfs_udf Disable a couple of warnings until further investigation. 2017-01-11 12:19:43 +00:00
newfs_v7fs need <sys/stat.h> 2017-01-10 20:53:09 +00:00
nologin Mention author in AUTHORS section. 2016-09-12 05:23:32 +00:00
nvmectl Pull up following revision(s) (requested by nonaka in ticket #781): 2018-04-19 15:37:56 +00:00
ping Fix cksum calculation for clearing the cached route. 2017-03-17 06:52:59 +00:00
ping6 Merge the PR 36997 fixes into ping6. It already didn't accept too 2016-12-18 01:30:54 +00:00
pppoectl pppoectl first appeared in NetBSD 1.6. 2016-09-12 05:35:20 +00:00
raidctl Pull up following revision(s) (requested by nakayama in ticket #1019): 2018-09-10 17:56:00 +00:00
rcorder Drop main() prototype. 2016-09-05 01:00:07 +00:00
reboot A standalone reboot utility showed up in 4.0BSD. 2016-09-12 05:43:15 +00:00
resize_ffs Pull up following revision(s) (requested by sborrill in ticket #308): 2017-10-24 09:08:40 +00:00
resize_lfs Add a (draft) 64-bit superblock. Make things build again. 2015-08-02 18:18:09 +00:00
restore Don't truncate at microseconds while preserving timestamps. 2015-03-02 03:17:24 +00:00
rndctl Use <sys/rndio.h> instead of <sys/rnd.h>. 2015-04-13 22:18:50 +00:00
route Pull up following revision(s) (requested by roy in ticket #976): 2018-08-25 07:06:48 +00:00
routed Fix that routed deletes local routes 2016-12-20 03:35:12 +00:00
savecore Adapt funopen(3) call after switch to new zlib(3) 2017-01-10 04:42:20 +00:00
scan_ffs Teach scan_ffs about lfs64. 2015-10-15 06:25:23 +00:00
scsictl Fix format. 2017-03-08 11:45:14 +00:00
setkey -consistently use "char *" for the compiled policy buffer in the 2012-01-04 15:55:35 +00:00
shutdown Update the history, shutdown was first in 4.1 BSD (and existed earlier). 2016-09-14 00:16:31 +00:00
slattach attach tty line discipline by name, not by number. remove unused case value. lgtm christos 2013-10-20 20:17:52 +00:00
svhlabel getrawpartition(3) may fail, so call it only once and test for failure. 2013-02-07 10:44:45 +00:00
swapctl Minor formatting change in swapctl -l as noted in my PR bin/51155 2016-05-31 09:34:25 +00:00
sysctl say ipsec stats are viewable with netstat. 2017-04-13 14:46:32 +00:00
ttyflags open the tty with O_RDWR|O_NONBLOCK. it seems valid to ask for 2014-05-04 20:43:30 +00:00
tunefs Use getfsspecname also when not found in /etc/fstab. 2015-08-26 05:41:20 +00:00
umount umount appeared in V1 2016-09-12 06:34:08 +00:00
veriexecctl need <sys/stat.h> ... for stat() 2017-01-10 20:48:12 +00:00
wdogctl Use _PATH_WATCHDOG from <paths.h> instead of locally-defined value. 2015-05-06 23:08:30 +00:00
wsconsctl Added complete support for touchscreen calibration (see PR kern/45872). 2012-12-24 01:29:20 +00:00
Makefile merge the bouyer-socketcan branch to HEAD. 2017-05-27 21:02:54 +00:00
Makefile.inc Default to WARNS=5 2012-03-21 05:47:53 +00:00