DragonFlyBSD/src 8f267ccsbin/newfs_hammer2 newfs_hammer2.c

sbin/newfs_hammer2: Remove "m:" from getopt(3)

No such option.

DragonFlyBSD/src b2d5447lib/librt mq_open.2

mq_open.2: Add <sys/types.h> in the SYNOPSIS for mode_t.

Strangely, while POSIX mentions the type for the mode argument when
using the O_CREAT flag, it does not require <mqueue.h> to define it.
We removed <sys/types.h> inclusion from <mqueue.h> recently and this
commit reflects that in the manual page.

DragonFlyBSD/src c83f7fasbin/fsck_hammer2 fsck_hammer2.8

fsck_hammer2.8: Sort SEE ALSO.

DragonFlyBSD/src 74fca40sys/vfs/msdosfs msdosfsmount.h denode.h

sys/vfs/msdosfs: Drop nonexistent msdosfs_mountroot() prototype

DragonFlyBSD/src 3b04d1bsys/vfs/msdosfs msdosfs_vfsops.c msdosfs_fat.c

sys/vfs/msdosfs: Add nop MSDOSFS_LOCK_MP()

sys/vfs/msdosfs isn't MPSAFE yet, but reduce diff against FreeBSD.

DragonFlyBSD/src b8bbc03games/phantasia phantglobs.c, sys/vfs/hpfs hpfs_alsubr.c

Fix some typos: enought -> enough

DragonFlyBSD/src 1f958b9sbin/sysctl sysctl.8 sysctl.c

sysctl(8): Sync manual page and usage() with getopt().

Reported-by: kworr

DragonFlyBSD/src 1555a13sbin/fsck_hammer2 destroy.c test.c

sbin/fsck_hammer2: Minor fixes on syscall retvals

DragonFlyBSD/src bb89612sbin/fsck_hammer2 destroy.c

sbin/fsck_hammer2: Make destroy.c update dirent blockref key

Reconstructed dirents can't be ls'd with or without this change.

DragonFlyBSD/src 2b7e456sbin/fsck_hammer2 reconstruct.c

sbin/fsck_hammer2: Add reconstruct.c to force reconstruct filesystem

For testing.
This doesn't get compiled by Makefile.

Recursively reconstruct checksums if ondisk mismatch is found.
Note that this isn't for filesystem recovery.

DragonFlyBSD/src 94175e2usr.bin/yacc Makefile

yacc(1): Remove unused define from the Makefile.

DragonFlyBSD/src dfaf496usr.sbin/rrenumd parser.y

rrenumd(8): Check if YYDEBUG is really 1.

DragonFlyBSD/src b22d225lib/libpcap Makefile

libpcap: Remove unused -DYYBISON.

DragonFlyBSD/src 3d1a8f1lib/libfsid libfsid.h ufs.c, sbin/fsid fsid.h fsid.c

fsid/calendar: Clean up #includes a bit.

We don't want <sys/types.h> and <sys/param.h> at the same time (see
style(9)).

DragonFlyBSD/src 5359ee7lib/libpcap Makefile

libpcap: Add scanner.h to CLEANFILES.

DragonFlyBSD/src 8ec9196sbin/fsid fsid.c

fsid(8): Add missing include for MAXPATHLEN.

 For upcoming <sys/uio.h> cleanup.
DeltaFile
+1-0sbin/fsid/fsid.c
+1-01 files

DragonFlyBSD/src 0838407lib/libfsid ufs.c

libfsid(3): Add missing include for <vfs/ufs/fs.h>.

 For upcoming <sys/uio.h> cleanup.
DeltaFile
+1-0lib/libfsid/ufs.c
+1-01 files

DragonFlyBSD/src 3e7e417lib/libc/net nscachedcli.c

libc/net: Add missing include for timespec.

 For upcoming <sys/uio.h> cleanup.

DragonFlyBSD/src 18cfd87usr.sbin/nscd nscdcli.c

nscd(8): Add missing include for timespec.

 For upcoming <sys/uio.h> cleanup.

DragonFlyBSD/src 62afa6cusr.bin/calendar io.c

calendar(1): Add missing include for MAXPATHLEN.

 For upcoming <sys/uio.h> cleanup.

DragonFlyBSD/src 40d6903sbin/fsck_hammer2 test.c destroy.c

sbin/fsck_hammer2: Use memmove(3) for overlapping regions

DragonFlyBSD/src ce5c7b1lib/libz Makefile

zlib: Add commented out line to Makefile for debug build.
DeltaFile
+2-1lib/libz/Makefile
+2-11 files

DragonFlyBSD/src 3d736bccontrib/zlib-1.2 README.DRAGONFLY

zlib: Adjust README.DRAGONFLY a bit more.

DragonFlyBSD/src 75abeeacontrib/zlib-1.2 README.DRAGONFLY README.DELETED, lib/libz zconf.h Symbol.map

Adjust local files for the zlib upgrade.

DragonFlyBSD/src c6c68a8contrib/zlib-1.2 deflate.c zlib.h

Merge branch 'vendor/ZLIB'

DragonFlyBSD/src e041647contrib/zlib-1.2 deflate.c zlib.h

Update zlib from 1.2.8 to 1.2.11 on the vendor branch.

DragonFlyBSD/src 94a9712sbin/fsck_hammer2 test.c, sbin/hammer2 cmd_debug.c subs.c

sbin/hammer2: Add hammer2_breftype_to_str()

DragonFlyBSD/src daa965bsbin/fsck_hammer2 test.c

sbin/fsck_hammer2: Correctly count HAMMER2_BREF_TYPE_EMPTY blockrefs

Without this, HAMMER2_BREF_TYPE_EMPTY is always shown as 0
when inode or indirect blockrefs can have empty slots.

DragonFlyBSD/src 1c90b35sbin/hammer2 subs.c

sbin/hammer2: Add 'B' to sizetostr() result when < 1024/2

All other cases have trailing 'B' from "KB", "MB", etc,
so it's better to be shown as e.g. "0.00B" than "0.00".

DragonFlyBSD/src 986e974contrib/dhcpcd/src dhcp.c dhcpcd.c

Merge branch 'vendor/DHCPCD'

DragonFlyBSD/src ce3872ccontrib/dhcpcd/src dhcp.c dhcpcd.c

Import dhcpcd-8.1.1 with the following changes:

 * IPv6: Fix a potential crash when learning interface addresses.
 * DHCP: Fix fallout from dhcpcd-8.1.0 for checksum calculation.

DragonFlyBSD/src 721b9eelib/libz zopen.c Symbol.map, sbin/savecore zopen.c Makefile

libz/savecore: Move the local zopen() from libz to savecore(8).

It is its only consumer.

Cleanup libz's Versions.def and Symbol.map too. Nothing in dports
should be using that function from the library (else it's a bug).

While here, add a __DECONST() to fix for WARNS=6.

Discussed-with: zrj

DragonFlyBSD/src fb9ceeclib/libusb Makefile, lib/libz Makefile

libusb/libz: Install *.pc files (for dports) using FILES and FILESDIR.

DragonFlyBSD/src ebbe9acsbin/fsck_hammer2 destroy.c

sbin/fsck_hammer2: Rollback if second write failed on destroying dirent

DragonFlyBSD/src 9816335share/misc pci_vendors

Update the pciconf(8) database.

October 12, 2019 snapshot from https://pci-ids.ucw.cz

DragonFlyBSD/src f89b0cfsbin/fsck_hammer2 test.c

sbin/fsck_hammer2: Print indirect blockref data on failure if possible

DragonFlyBSD/src d679463sbin/fsck_hammer2 destroy.c

sbin/fsck_hammer2: Make destroy.c support embedded dirent name

and other dirent related fixes and cleanups.
DeltaFile
+155-73sbin/fsck_hammer2/destroy.c
+155-731 files

DragonFlyBSD/src a705726tools/tools/toeplitz toeplitz.c

tools/toeplitz: Provide NBBY fallback.

DragonFlyBSD/src 9eca039sys/sys types.h param.h

<sys/types.h>: Move out NBBY definition to <sys/param.h>.

 It is a better place for it due to close proximity of macros using it.

DragonFlyBSD/src 48b6e00sbin/restore restore.h

restore(8): Add include to common header.

 Just like sbin/dump/dump.h explicitly include <sys/param.h>.

DragonFlyBSD/src 0d29553sys/sys socket.h

<sys/socket.h>: Use double underscore versions for types.

 Change caddr_t to plain "char *".

 In preparations to remove <sys/types.h> dependency.
DeltaFile
+4-4sys/sys/socket.h
+4-41 files

DragonFlyBSD/src f7aae1fsys/cpu/x86_64/include alignbytes.h param.h, sys/sys param.h socket.h

Add <machine/alignbytes.h>.

 Refactor ALIGN* macros to fix issue in <sys/socket.h> after the
 _CMSG_ALIGN() macro was adjusted to use ALIGNBYTES definition.
 * Including <sys/param.h> would introduce major namespace pollution.
 * Use NetBSD variant of namespace friendly double underscore versions.
 * Instead of <machine/cdefs.h> put double underscore versions into self
   contained header to minimize header poisoning.
 * Provide __ALIGNPTR() macro to avoid visibility issues with uintptr_t.
 * Move out single underscore versions from <machine/param.h>.  Keep them
   for OpenBSD compat that declares them in <ARCH/_types.h>.
 * Make non underscored versions user overridable (just like NetBSD).
   This is useful for cases where different alignment is needed.

 Later on this new header can be adjusted to provide other alignment
 macros like: STACKALIGNBYTES, ALIGNED_POINTER etc.

In-discussion-with: swilder

DragonFlyBSD/src 0fa5fd1sbin/fsck_hammer2 destroy.c

sbin/fsck_hammer2: Add destroy.c to destroy ondisk inode/dirent

For testing.
This doesn't get compiled by Makefile.

DragonFlyBSD/src bad8b3csbin/fsck_hammer2 test.c fsck_hammer2.8

sbin/fsck_hammer2: Print blockref data on failure if possible

DragonFlyBSD/src f168e7fsbin/hammer2 cmd_debug.c

sbin/hammer2: Print dirent name length in "show"

DragonFlyBSD/src e819b9csbin/hammer2 cmd_debug.c

sbin/hammer2: Minor "show"/"freemap" output format fix

"show"/"freemap" output doesn't use comma, except for after meth=
and in clothing parenthesis of blockref data part.

Remove the first one.

DragonFlyBSD/src 1b5a8bainclude mqueue.h, sys/kern makesyscalls.sh

Clean up the namespace of <mqueue.h> a bit.

Thanks to zrj for testing with a dports bulk build.

DragonFlyBSD/src 161c3d8sbin/newfs mkfs.c, sys/bus/u4b/controller uhci.c

world/kernel: Use the powerof2() macro in various places.

DragonFlyBSD/src 63164f7sbin/fsck setup.c

fsck(8): Remove useless POWEROF2() macro.
DeltaFile
+0-1sbin/fsck/setup.c
+0-11 files

DragonFlyBSD/src 6e87564sys/kern kern_clock.c, sys/vfs/hammer hammer_rebalance.c hammer_vnops.c

world/kernel: Use the howmany() macro in various places.