CVS commit: src/sys/dev/pci

2020-04-05 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Sun Apr  5 10:43:09 UTC 2020

Modified Files:
src/sys/dev/pci: pucdata.c

Log Message:
add entry for NetMos NM9900 Octa UART

notice: On the boards I've obtained, the number on the cable stamp
doesn't match the actual unit number of the attached device.
Cable's 0,1,2,..,7 corresponds to comN+0,2,4,6,1,3,5,7 :-(


To generate a diff of this commit:
cvs rdiff -u -r1.106 -r1.107 src/sys/dev/pci/pucdata.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/distrib/utils/libhack

2020-04-05 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Apr  5 11:18:02 UTC 2020

Modified Files:
src/distrib/utils/libhack: Makefile.inc

Log Message:
Extend the curses hack to terminfo - build selected parts of
libterminfo as part of libhack, so we can drop unwanted features
for small install media.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/distrib/utils/libhack/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/distrib

2020-04-05 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Apr  5 11:19:01 UTC 2020

Modified Files:
src/distrib/atari/floppies/common: list.images
src/distrib/ews4800mips/floppies/ramdisk: list
src/distrib/sun3/miniroot: list

Log Message:
Adapt to libterminfo as part of libhack-curses


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/distrib/atari/floppies/common/list.images
cvs rdiff -u -r1.11 -r1.12 src/distrib/ews4800mips/floppies/ramdisk/list
cvs rdiff -u -r1.30 -r1.31 src/distrib/sun3/miniroot/list

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libterminfo

2020-04-05 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Sun Apr  5 12:31:02 UTC 2020

Modified Files:
src/lib/libterminfo: Makefile compile.c term.c

Log Message:
terminfo: Add guards to optionally build parts of libterminfo

Reading from a database is now optional.
Compiling terminfo descriptions (including from $TERMINFO) is now optional.
Compat support is now optional.

This removes 17k on amd64 from the binary size, which allows it to be used
again on space constrained ramdisks.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/lib/libterminfo/Makefile
cvs rdiff -u -r1.24 -r1.25 src/lib/libterminfo/compile.c
cvs rdiff -u -r1.32 -r1.33 src/lib/libterminfo/term.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tools/tic

2020-04-05 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Sun Apr  5 12:31:39 UTC 2020

Modified Files:
src/tools/tic: Makefile

Log Message:
tools: Build tic with full fat terminfo


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tools/tic/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/binutils/dist/binutils/doc

2020-04-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Apr  5 13:25:01 UTC 2020

Removed Files:
src/external/gpl3/binutils/dist/binutils/doc: c++filt.1

Log Message:
We generate this.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 src/external/gpl3/binutils/dist/binutils/doc/c++filt.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/etc

2020-04-05 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Apr  5 14:09:18 UTC 2020

Modified Files:
src/etc/etc.acorn32: MAKEDEV.conf
src/etc/etc.alpha: MAKEDEV.conf
src/etc/etc.amd64: MAKEDEV.conf
src/etc/etc.amiga: MAKEDEV.conf
src/etc/etc.amigappc: MAKEDEV.conf
src/etc/etc.cobalt: MAKEDEV.conf
src/etc/etc.i386: MAKEDEV.conf
src/etc/etc.ia64: MAKEDEV.conf
src/etc/etc.landisk: MAKEDEV.conf
src/etc/etc.sparc: MAKEDEV.conf
src/etc/etc.sparc64: MAKEDEV.conf

Log Message:
remove nsmb from MD list of devices to create for 'all'


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/etc/etc.acorn32/MAKEDEV.conf
cvs rdiff -u -r1.13 -r1.14 src/etc/etc.alpha/MAKEDEV.conf
cvs rdiff -u -r1.28 -r1.29 src/etc/etc.amd64/MAKEDEV.conf
cvs rdiff -u -r1.13 -r1.14 src/etc/etc.amiga/MAKEDEV.conf
cvs rdiff -u -r1.4 -r1.5 src/etc/etc.amigappc/MAKEDEV.conf
cvs rdiff -u -r1.16 -r1.17 src/etc/etc.cobalt/MAKEDEV.conf
cvs rdiff -u -r1.30 -r1.31 src/etc/etc.i386/MAKEDEV.conf
cvs rdiff -u -r1.3 -r1.4 src/etc/etc.ia64/MAKEDEV.conf
cvs rdiff -u -r1.10 -r1.11 src/etc/etc.landisk/MAKEDEV.conf
cvs rdiff -u -r1.18 -r1.19 src/etc/etc.sparc/MAKEDEV.conf
cvs rdiff -u -r1.19 -r1.20 src/etc/etc.sparc64/MAKEDEV.conf

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/xen

2020-04-05 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Apr  5 14:20:18 UTC 2020

Modified Files:
src/sys/arch/xen/xen: if_xennet_xenbus.c

Log Message:
no need to pollute dmesg by xennet_watchdog(), turn the message into DPRINTFN()


To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 src/sys/arch/xen/xen/if_xennet_xenbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2020-04-05 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Sun Apr  5 14:36:43 UTC 2020

Modified Files:
src/distrib/macppc/floppies/ramdisk: Makefile
src/etc/etc.macppc: MAKEDEV.conf
src/sys/arch/macppc/conf: INSTALL

Log Message:
Support the use of DHCP in the install environment


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/distrib/macppc/floppies/ramdisk/Makefile
cvs rdiff -u -r1.12 -r1.13 src/etc/etc.macppc/MAKEDEV.conf
cvs rdiff -u -r1.130 -r1.131 src/sys/arch/macppc/conf/INSTALL

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libterminfo

2020-04-05 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Apr  5 14:53:39 UTC 2020

Modified Files:
src/lib/libterminfo: term.c termcap.c

Log Message:
Conditionalize a few more functions (hopefully fixing the build)


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/lib/libterminfo/term.c
cvs rdiff -u -r1.23 -r1.24 src/lib/libterminfo/termcap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/librump/rumpkern

2020-04-05 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Sun Apr  5 15:16:11 UTC 2020

Modified Files:
src/sys/rump/librump/rumpkern: rumpcopy.c

Log Message:
Return early on 0-sized transfers (usually to/from NULL-objects)

This logic is already present in subr_copy.c:copyin_vmspace() and
rumpcopy.c:copyinstr().

This avoids memcpy() calls for NULL objects that is Undefined Behavior,
allowed in the kernel space (-fno-delete-null-pointer-checks), but not
in userland.

Reported by UBSan.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/rump/librump/rumpkern/rumpcopy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2020-04-05 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sun Apr  5 15:25:40 UTC 2020

Modified Files:
src/include/protocols: dumprestore.h
src/sbin/dump: dump.h main.c
src/sbin/fsck_ext2fs: fsck.h main.c
src/sbin/fsck_ffs: fsck.h main.c
src/sbin/fsdb: fsdb.c
src/sbin/iscsid: iscsid_globals.h
src/sbin/newfs_udf: newfs_udf.c newfs_udf.h udf_create.c
src/sbin/restore: main.c restore.h

Log Message:
Fix depenency on common symbols in sbin.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/include/protocols/dumprestore.h
cvs rdiff -u -r1.57 -r1.58 src/sbin/dump/dump.h
cvs rdiff -u -r1.76 -r1.77 src/sbin/dump/main.c
cvs rdiff -u -r1.16 -r1.17 src/sbin/fsck_ext2fs/fsck.h
cvs rdiff -u -r1.40 -r1.41 src/sbin/fsck_ext2fs/main.c
cvs rdiff -u -r1.53 -r1.54 src/sbin/fsck_ffs/fsck.h
cvs rdiff -u -r1.86 -r1.87 src/sbin/fsck_ffs/main.c
cvs rdiff -u -r1.50 -r1.51 src/sbin/fsdb/fsdb.c
cvs rdiff -u -r1.9 -r1.10 src/sbin/iscsid/iscsid_globals.h
cvs rdiff -u -r1.19 -r1.20 src/sbin/newfs_udf/newfs_udf.c
cvs rdiff -u -r1.6 -r1.7 src/sbin/newfs_udf/newfs_udf.h
cvs rdiff -u -r1.26 -r1.27 src/sbin/newfs_udf/udf_create.c
cvs rdiff -u -r1.35 -r1.36 src/sbin/restore/main.c
cvs rdiff -u -r1.21 -r1.22 src/sbin/restore/restore.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/bsd/dhcpcd/dist/src

2020-04-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Apr  5 15:41:45 UTC 2020

Modified Files:
src/external/bsd/dhcpcd/dist/src: script.c

Log Message:
Don't block signals when running hooks. Here ctx->sigset == defsigs ==
0x60006003, which blocks SIGTERM by default, so running something simple
from a hook, like /etc/rc.d/racoon restart does not work. The script
is then stuck waiting for the daemon to die, which it won't since it will
never receive the signal, and the hook never terminates.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/dhcpcd/dist/src/script.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/xen

2020-04-05 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Apr  5 17:26:47 UTC 2020

Modified Files:
src/sys/arch/xen/xen: if_xennet_xenbus.c xennetback_xenbus.c

Log Message:
remove support for legacy rx-flip mode for xennet(4)/xvif(4), making
rx-copy (first shipped in NetBSD 6.0 in 2012) the only supported
mode

this is mostly to simplify maintenance and future development

rx-flip is not supported by Linux Dom0/DomU, and NetBSD Dom0/DomU
defaults to rx-copy for over 8 years now too, so there is little
need to keep the support for compatibility

besides compatibility there is no other reason to keep rx-flip -
page transfer is generally slower than copy due to necessary MMU/TLB
manipulation, especially on MP systems


To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 src/sys/arch/xen/xen/if_xennet_xenbus.c
cvs rdiff -u -r1.91 -r1.92 src/sys/arch/xen/xen/xennetback_xenbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/doc

2020-04-05 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Apr  5 17:45:19 UTC 2020

Modified Files:
src/doc: CHANGES

Log Message:
note removal of xen rx-flip


To generate a diff of this commit:
cvs rdiff -u -r1.2665 -r1.2666 src/doc/CHANGES

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen

2020-04-05 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Apr  5 17:48:30 UTC 2020

Modified Files:
src/sys/arch/xen/include: granttables.h
src/sys/arch/xen/xen: xengnt.c

Log Message:
remove xengnt_grant_transfer() and xengnt_revoke_transfer(), nothing
uses it any more


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/xen/include/granttables.h
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/xen/xen/xengnt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/doc

2020-04-05 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Apr  5 19:01:36 UTC 2020

Modified Files:
src/doc: CHANGES

Log Message:
fix date for mrg arm entry


To generate a diff of this commit:
cvs rdiff -u -r1.2666 -r1.2667 src/doc/CHANGES

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man4

2020-04-05 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Apr  5 19:03:30 UTC 2020

Modified Files:
src/share/man/man4: xennet.4

Log Message:
remove RX flip from diagnostic, it was removed


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man4/xennet.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/doc

2020-04-05 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Apr  5 19:48:27 UTC 2020

Modified Files:
src/doc: CHANGES

Log Message:
fix the mrg arm entry text that said v7 + v7, not v7 + v8.

noticed while checking what was wrong with the prior ;)


To generate a diff of this commit:
cvs rdiff -u -r1.2667 -r1.2668 src/doc/CHANGES

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2020-04-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Apr  5 20:53:17 UTC 2020

Modified Files:
src/sys/kern: kern_exec.c kern_fork.c kern_sig.c
src/sys/sys: signalvar.h

Log Message:
- Untangle spawn_return by splitting it up to sub-functions.
- Merge the eventswitch parent notification code which was copied in two
  places (eventswitchchild)
- Fix bugs in the eventswitch parent notification code:
  1. p_slflags should be accessed holding both proc_lock and p->p_lock
  2. p->p_opptr can be NULL if the parent was PSL_CHTRACED and exited.

Fixes random crashes the posix_spawn_kill_spawner unit test which tried
to dereference a NULL pptr.


To generate a diff of this commit:
cvs rdiff -u -r1.493 -r1.494 src/sys/kern/kern_exec.c
cvs rdiff -u -r1.219 -r1.220 src/sys/kern/kern_fork.c
cvs rdiff -u -r1.385 -r1.386 src/sys/kern/kern_sig.c
cvs rdiff -u -r1.100 -r1.101 src/sys/sys/signalvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/sys

2020-04-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Apr  5 20:53:46 UTC 2020

Modified Files:
src/sys/sys: proc.h

Log Message:
There is no "s" lock.


To generate a diff of this commit:
cvs rdiff -u -r1.360 -r1.361 src/sys/sys/proc.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2020-04-05 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun Apr  5 20:59:39 UTC 2020

Modified Files:
src/sys/arch/mips/adm5120/dev: ahci.c
src/sys/dev/usb: ehci.c ohci.c uhci.c usb_mem.c usb_mem.h usbdi.c
xhci.c
src/sys/external/bsd/dwc2: dwc2.c
src/sys/external/bsd/dwc2/dist: dwc2_hcd.c dwc2_hcdddma.c

Log Message:
Switch USB to use non-coherent buffers for data transfers in the
same way as OpenBSD.

The use of coherent (uncacheable on ARM and other arches) mappings
for transfer buffers impacts performance, espcially where memcpys
are involved.

Audit the necessary usb_syncmem operations - a few were missing.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/arch/mips/adm5120/dev/ahci.c
cvs rdiff -u -r1.277 -r1.278 src/sys/dev/usb/ehci.c
cvs rdiff -u -r1.300 -r1.301 src/sys/dev/usb/ohci.c
cvs rdiff -u -r1.299 -r1.300 src/sys/dev/usb/uhci.c
cvs rdiff -u -r1.75 -r1.76 src/sys/dev/usb/usb_mem.c
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/usb/usb_mem.h
cvs rdiff -u -r1.199 -r1.200 src/sys/dev/usb/usbdi.c
cvs rdiff -u -r1.123 -r1.124 src/sys/dev/usb/xhci.c
cvs rdiff -u -r1.72 -r1.73 src/sys/external/bsd/dwc2/dwc2.c
cvs rdiff -u -r1.23 -r1.24 src/sys/external/bsd/dwc2/dist/dwc2_hcd.c
cvs rdiff -u -r1.8 -r1.9 src/sys/external/bsd/dwc2/dist/dwc2_hcdddma.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/etc

2020-04-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Apr  5 21:03:08 UTC 2020

Modified Files:
src/etc: rc.subr

Log Message:
Prevent waiting for processes to exit forever by introducing _rc_kill_ntries,
which if set, will SIGKILL the processes that did not die yet.


To generate a diff of this commit:
cvs rdiff -u -r1.103 -r1.104 src/etc/rc.subr

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/crypto/external/bsd/openssl/dist

2020-04-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Apr  5 21:53:45 UTC 2020

Modified Files:
src/crypto/external/bsd/openssl/dist: CHANGES NEWS README
src/crypto/external/bsd/openssl/dist/apps: s_server.c
src/crypto/external/bsd/openssl/dist/crypto: ex_data.c
src/crypto/external/bsd/openssl/dist/crypto/x509: x509_vfy.c
src/crypto/external/bsd/openssl/dist/ssl: ssl_err.c

Log Message:
merge conflicts


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/crypto/external/bsd/openssl/dist/CHANGES \
src/crypto/external/bsd/openssl/dist/NEWS \
src/crypto/external/bsd/openssl/dist/README
cvs rdiff -u -r1.22 -r1.23 \
src/crypto/external/bsd/openssl/dist/apps/s_server.c
cvs rdiff -u -r1.6 -r1.7 \
src/crypto/external/bsd/openssl/dist/crypto/ex_data.c
cvs rdiff -u -r1.18 -r1.19 \
src/crypto/external/bsd/openssl/dist/crypto/x509/x509_vfy.c
cvs rdiff -u -r1.17 -r1.18 src/crypto/external/bsd/openssl/dist/ssl/ssl_err.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/doc

2020-04-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Apr  5 21:56:04 UTC 2020

Modified Files:
src/doc: 3RDPARTY CHANGES

Log Message:
new OpenSSL/binutils


To generate a diff of this commit:
cvs rdiff -u -r1.1708 -r1.1709 src/doc/3RDPARTY
cvs rdiff -u -r1.2668 -r1.2669 src/doc/CHANGES

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/aarch64/aarch64

2020-04-05 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Apr  5 22:54:51 UTC 2020

Modified Files:
src/sys/arch/aarch64/aarch64: cpu.c cpufunc.c

Log Message:
Cleanup CPU attach output:
 - Always print the core's vendor and product name.
 - Print the CPU ID on the same line as the name. Single line of dmesg
   per core.
 - Use aprint_verbose for reporting additional details.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/arch/aarch64/aarch64/cpu.c
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/aarch64/aarch64/cpufunc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/vax/boot/xxboot

2020-04-05 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Mon Apr  6 01:43:26 UTC 2020

Modified Files:
src/sys/arch/vax/boot/xxboot: start.S

Log Message:
fix comment in typo


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/vax/boot/xxboot/start.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x86/include

2020-04-05 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Mon Apr  6 02:36:49 UTC 2020

Modified Files:
src/sys/arch/x86/include: specialreg.h

Log Message:
 CPUID Fn0001 %edx bit 8 is printed as "TSC", so rename CPUID Fn8000_0007
%edx bit 8 from "TSC" to "ITSC" (Invariant TSC) to avoid confusion.


To generate a diff of this commit:
cvs rdiff -u -r1.159 -r1.160 src/sys/arch/x86/include/specialreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/fsck_ffs

2020-04-05 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Apr  6 06:41:34 UTC 2020

Modified Files:
src/sbin/fsck_ffs: main.c

Log Message:
dion't define endian as well as try to declare it as a variable.


To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 src/sbin/fsck_ffs/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.