DragonFlyBSD/src 9536fb9test/crypto/cryptoapi expected_output.md fixtures.csv

test: Also test CBC variants of cryptoapi
DeltaFile
+1,800-0test/crypto/cryptoapi/expected_output.md
+120-0test/crypto/cryptoapi/fixtures.csv
+12-0test/crypto/cryptoapi/crypto-api.c
+12-0test/crypto/cryptoapi/crypto-dev.c
+1,944-04 files

DragonFlyBSD/src 7e0e24csys/crypto/cryptoapi cryptoapi.c

cryptoapi: Revert inlining of some crypto functions

As this breaks the build due to gcc not able to inline indirect
function calls.
DeltaFile
+4-4sys/crypto/cryptoapi/cryptoapi.c
+4-41 files

DragonFlyBSD/src bd5bbd2test/crypto/cryptoapi cryptoapi_test.c expected_output.md

test: Integrate benchmark into cryptoapi_test util

Print execution times and add "-n REPETITIONS" option.

Take the benchmark results with a grain of salt when comparing the
cryptoapi results against the cryptodev results, as we do not use
the AESNI CPU instruction when crytoapi is used outside the kernel.

While there, parse CLI options using getopt(3) and add a few more
test fixtures.
DeltaFile
+91-21test/crypto/cryptoapi/cryptoapi_test.c
+60-0test/crypto/cryptoapi/expected_output.md
+23-21test/crypto/cryptoapi/crypto-dev.c
+18-13test/crypto/cryptoapi/crypto-api.c
+9-2test/crypto/cryptoapi/Makefile
+4-0test/crypto/cryptoapi/fixtures.csv
+205-576 files

DragonFlyBSD/src 2d6b98csys/crypto/cryptoapi cryptoapi.c

cryptoapi: inline functions and s/blocklen/blocksize/

- Inline a few functions which previously were macros

- Consistently use "blocksize" instead of "blocklen"

- Use uint8_t for alpha instead of int

- Use memset() in proximity of memcpy()

- Non-functional change
DeltaFile
+14-14sys/crypto/cryptoapi/cryptoapi.c
+14-141 files

DragonFlyBSD/src e328994sys/sys param.h

<sys/param.h>: Bump version for libusb(3) update
DeltaFile
+3-1sys/sys/param.h
+3-11 files

DragonFlyBSD/src 5629805lib/libusb libusb10.c libusb.h

libusb: Implement v1.0 libusb_get_version() API

It seems our USB stack was synced from FreeBSD in 2016, so I inherit the
'nano = 2016' version info from FreeBSD.

This function is at least used by 'sysutils/nut' to fill the
'driver.version.usb' metadata in 'usbhid-ups' driver.  The return value
doesn't matter at all.

Obtained-from: FreeBSD (commit 14b896ce80daad378a70a125ca15c2e23cd8d34b)
DeltaFile
+15-0lib/libusb/libusb10.c
+10-0lib/libusb/libusb.h
+5-1lib/libusb/libusb.3
+1-0lib/libusb/Makefile
+31-14 files

DragonFlyBSD/src b7cdd21lib/libusb libusb10.c libusb.3

libusb: Implement v1.0 libusb_get_port_number() API

This function is also used by 'sysutils/nut' to scan the USB devices.
However, nut uses dlopen() to determine the presence of this API and
allows it to be absent.

Obtained-from: FreeBSD (commit 0f2c706643ff211ce1e1eb0cfbc3c05bc67f2311)
DeltaFile
+8-0lib/libusb/libusb10.c
+6-0lib/libusb/libusb.3
+1-0lib/libusb/libusb.h
+1-0lib/libusb/Makefile
+16-04 files

DragonFlyBSD/src fe983b2lib/libusb libusb10.c libusb.3

libusb: Implement v1.0 libusb_set_auto_detach_kernel_driver() API

I noticed this function when I was porting the libusb_get_port_number()
function, so port this as well.

Obtained-from:
FreeBSD (commits 5b40d9601c72fbb04f32437d529dbf51252dc31e
and a3d81a8a8a4f8379b0870238ae417f7986d7d299)
DeltaFile
+25-3lib/libusb/libusb10.c
+11-0lib/libusb/libusb.3
+6-0lib/libusb/libusb20.c
+3-0lib/libusb/libusb20_int.h
+1-0lib/libusb/libusb.h
+1-0lib/libusb/Makefile
+47-36 files

DragonFlyBSD/src a52efb1lib/libusb libusb20.c libusb.h

libusb: Trim trailing whitespace
DeltaFile
+4-4lib/libusb/libusb20.c
+2-2lib/libusb/libusb.h
+6-62 files

DragonFlyBSD/src 9bf50b2sbin/hammer2 cmd_debug.c main.c

hammer2 - Enhance "show" (debugging feature)

Enhance the hammer2 show command to allow a chainspec to be specified
to dump a specific chain.  The output will also print the xxhash64
value for the buffer.
DeltaFile
+29-1sbin/hammer2/cmd_debug.c
+12-6sbin/hammer2/main.c
+8-1sbin/hammer2/hammer2.8
+1-1sbin/hammer2/hammer2.h
+50-94 files

DragonFlyBSD/src 4b5fc24usr.bin/dsynth dsynth.png

Update report page logo to show "dSynth" instead of "Synth".
DeltaFile
+0-0usr.bin/dsynth/dsynth.png
+0-01 files

DragonFlyBSD/src b46e26busr.bin/vi Makefile config.h

vi(1): Tweak and clean up Makefile

- Group -D__REGEX_PRIVATE with -I${SRCDIR}/regex
- Update config.h to define USE_WIDECHAR, which aligns with the vendor
  generated one.
DeltaFile
+3-3usr.bin/vi/Makefile
+1-1usr.bin/vi/config.h
+4-42 files

DragonFlyBSD/src 007ca2cusr.bin/vi config.h

vi(1): Sync config.h with the vendor generated one
DeltaFile
+6-6usr.bin/vi/config.h
+6-61 files

DragonFlyBSD/src 123c8a2contrib/nvi2 README.DRAGONFLY

contrib/nvi2: Update README.DRAGONFLY
DeltaFile
+4-4contrib/nvi2/README.DRAGONFLY
+4-41 files

DragonFlyBSD/src 898a792contrib/nvi2/common put.c options.c, contrib/nvi2/ex ex_append.c ex_shift.c

Merge branch 'vendor/NVI2'

Upgrade nvi2 from main at 2025-03-21 to v2.2.2.
DeltaFile
+30-16contrib/nvi2/common/put.c
+14-25contrib/nvi2/common/options.c
+16-18contrib/nvi2/vi/v_put.c
+11-10contrib/nvi2/ex/ex_append.c
+7-4contrib/nvi2/common/common.h
+6-2contrib/nvi2/ex/ex_shift.c
+84-758 files not shown
+100-8314 files

DragonFlyBSD/src 082a109contrib/nvi2/common put.c options.c, contrib/nvi2/ex ex_append.c ex_shift.c

vendor/NVI2: Upgrade from main at 2025-03-21 to v2.2.2

Version 2.2.2 release on 2025-10-09.

URL: https://github.com/lichray/nvi2/releases/tag/v2.2.2
DeltaFile
+30-16contrib/nvi2/common/put.c
+14-25contrib/nvi2/common/options.c
+16-18contrib/nvi2/vi/v_put.c
+11-10contrib/nvi2/ex/ex_append.c
+7-4contrib/nvi2/common/common.h
+6-2contrib/nvi2/ex/ex_shift.c
+84-758 files not shown
+100-8314 files

DragonFlyBSD/src 3de1e9dusr.sbin/makefs hammer2.c

usr.sbin/makefs/hammer2.c: Remove built-in unittest
DeltaFile
+0-50usr.sbin/makefs/hammer2.c
+0-501 files

DragonFlyBSD/src 0d602a9test/crypto/cryptoapi expected_output.md cryptoapi_test.c

test: Use snapshot testing for cryptoapi/cryptodev

The tests I wrote for cryptoapi where based on comparing the results
against the results of cryptodev - if they match, the test succeeds. But
as I am planning to remove cryptodev, this test methodology no longer
works.

Instead, store the test input data in fixtures.csv and run the test case
for each input. The generated output should then match the
expected_output.md in order for the tests to pass. This simplifies
adding new test fixtures and allows for re-generating the
expected_output.md.
DeltaFile
+3,602-0test/crypto/cryptoapi/expected_output.md
+187-128test/crypto/cryptoapi/cryptoapi_test.c
+241-0test/crypto/cryptoapi/fixtures.csv
+2-1test/crypto/cryptoapi/Makefile
+4,032-1294 files

DragonFlyBSD/src 496f6desys/conf files options

sys/conf: continue to build kernel despite removal of devices

Commit 980dc6f5ee469df858eb285322bf689882073b07 removed the hifn(4),
safe(4), ubsec(4) and padlock(4) drivers. With this change, every
KERNELCONF that still refers to any of those devices or related options
like for example "device hifn" or "options HIFN_RNDTEST" would no longer
build.

Obsolete these devices and emit a warning, but do not break the build.

Suggested-by: Aaron Li
DeltaFile
+21-0sys/conf/files
+12-0sys/conf/options
+33-02 files

DragonFlyBSD/src dc2dec1. Makefile.inc1

Tweak ${WORLD_ALTCOMPILER} to better handle multiple alternatives (2)

Was missed in commit 248b26df4c3309867044b0cb2dcd3555da1d3228.
DeltaFile
+2-2Makefile.inc1
+2-21 files

DragonFlyBSD/src 794ce71sys/dev/raid/arcmsr arcmsr.h

arcmsr.h: Include sys/bus.h header

The "arcmsr.h" header file uses types like bus_space_handle_t defined in
"sys/bus.h", but it does not include the "sys/bus.h" header itself. This
can cause build breakage elsewhere.

The build of "usr.bin/kdump" depends on the auto-generated file
"ioctl.c" created by the "mkioctls" script. Within the generated
"ioctl.c" file, various header files are included. Some of these header
files (namely "arcmsr.h") might depend on the order in which the header
files are included or depend on other header files being included before
themselves.

In the process of removing cryptodev, I noticed build breakage of kdump
when "sys/cryptodev.h" is removed. This is because "sys/cryptodev.h"
includes "sys/bus.h" and is placed before the include of "arcmsr.h"
(within the auto-generated "ioctl.c"). So removing "sys/cryptodev.h"
would lead to type definitions from "arcmsr.h" refering to yet undefined
types from "sys/bus.h".
DeltaFile
+1-0sys/dev/raid/arcmsr/arcmsr.h
+1-01 files

DragonFlyBSD/src a71cbe4libexec/customcc cc.sh

libexec/customcc: Fix a wrong variable name

Obviously, the variable for C++ compiler should be ${CUSTOM_CXXFLAGS}
instead of ${CUSTOM_CFLAGS}.  This bug was introduced in commit
571f588a5c6622ead0ed757b2884a76bb45bdb56.
DeltaFile
+1-1libexec/customcc/cc.sh
+1-11 files

DragonFlyBSD/src 53045d3libexec/customcc cc.sh

libexec/customcc: Fix bug with the `[ -n ${X} ]` conditional

Before this fix, command `CCVER=xxx cc --version` failed with a strange
error:
```
exec: --version: not found
```
which was given by this customcc wrapper script.  The expected error
should be:
```
xxx_CC undefined, see compilers.conf(5)
```

It turned out this was caused by the `[ -n ${X} ]` conditional: `[ -n ]`
evaluates to *true*, while `[ -n "" ]` evaulates to *false*.
Interestingly, both `[ -z ]` and `[ -z "" ]` evaulates to *false*.  The
original version of this wrapper used `[ -z ${X} ]` style and it worked
fine, but commit 571f588a5c6622ead0ed757b2884a76bb45bdb56 changed it to
`[ -n ${X} ]` style and thus broke it.
DeltaFile
+3-3libexec/customcc/cc.sh
+3-31 files

DragonFlyBSD/src af1f418nrelease Makefile

nrelease: Simplify the setting of disklabel packid/label

The packid (i.e., label name) can be directly set upon the label
creation; no need to edit the disklabel dump file.
DeltaFile
+1-3nrelease/Makefile
+1-31 files

DragonFlyBSD/src 16afa6bsys/kern subr_diskgpt.c

kernel: Fix GPT partition start/end check in gptinit()

The GPT partition ending LBA is inclusive, so it's valid to have a GPT
partition with start == end, i.e., the partition size is 1 block.  Fix
gptinit() to support this case.  In addition, improve the kprintf()
debug message to show the value of start and ending LBAs.
DeltaFile
+5-4sys/kern/subr_diskgpt.c
+5-41 files

DragonFlyBSD/src 8ff2c04usr.bin/objformat objformat.c

objformat(1): Whitespace cleanups
DeltaFile
+4-4usr.bin/objformat/objformat.c
+4-41 files

DragonFlyBSD/src 248b26d. Makefile.inc1, gnu/lib Makefile

Tweak ${WORLD_ALTCOMPILER} to better handle multiple alternatives

No functional changes.
DeltaFile
+4-4Makefile.inc1
+2-3gnu/lib/Makefile
+2-3gnu/usr.bin/Makefile
+8-103 files

DragonFlyBSD/src 3f5357eusr.bin/objformat objformat.1 objformat.c

objformat.1: Document the fallback behavior to use external compilers

When objformat(1) cannot find any of /usr/libexec/<ccver>/prog, it will
fallback to use /usr/libexec/custom/prog to access external compilers
defined by compilers.conf(5).
DeltaFile
+12-4usr.bin/objformat/objformat.1
+3-2usr.bin/objformat/objformat.c
+15-62 files

DragonFlyBSD/src 20ce32busr.bin/objformat objformat.c

objformat(1): Define 'newcmd' as a char array to avoid alloc/free
DeltaFile
+5-9usr.bin/objformat/objformat.c
+5-91 files

DragonFlyBSD/src 6cec064share/mk sys.mk

mk/sys.mk: Explain a bit more about ${WORLD_ALTCOMPILER}

It was introduced in commit 8d7da4247e43eb2bbe924d08f6a40ef80d742515 for
supporting multiple alternative compilers.
DeltaFile
+3-0share/mk/sys.mk
+3-01 files