svn commit: r368606 - head/usr.bin/calendar

2020-12-13 Thread Stefan Eßer
Author: se Date: Sun Dec 13 09:38:50 2020 New Revision: 368606 URL: https://svnweb.freebsd.org/changeset/base/368606 Log: Fix WITHOUT_ICONV build There was an unprotected use of nl_langinfo() to determine the order of day vs. month in the generated output. When building without ICONV

Re: svn commit: r368606 - head/usr.bin/calendar

2020-12-13 Thread Yuri Pankov
Stefan Eßer wrote: Author: se Date: Sun Dec 13 09:38:50 2020 New Revision: 368606 URL: https://svnweb.freebsd.org/changeset/base/368606 Log: Fix WITHOUT_ICONV build There was an unprotected use of nl_langinfo() to determine the order of day vs. month in the generated output. That

svn commit: r368608 - in head: contrib/libarchive/libarchive contrib/libarchive/libarchive/test lib/libarchive

2020-12-13 Thread Martin Matuska
Author: mm Date: Sun Dec 13 16:26:37 2020 New Revision: 368608 URL: https://svnweb.freebsd.org/changeset/base/368608 Log: MFV r368607: Sync libarchive with vendor. Vendor changes: Issue #1461: Unbreak build without lzma Issue #1462: warc reader: Fix build with gcc11 Issue #146

svn commit: r368609 - in head/sys: kern sys

2020-12-13 Thread Mateusz Guzik
Author: mjg Date: Sun Dec 13 18:06:24 2020 New Revision: 368609 URL: https://svnweb.freebsd.org/changeset/base/368609 Log: fd: fix fdrop prediction when closing a fd Most of the time this is the last reference, contrary to typical fdrop use. Modified: head/sys/kern/kern_descrip.c head/

Re: svn commit: r368609 - in head/sys: kern sys

2020-12-13 Thread Alexander Richardson
On Sun, 13 Dec 2020 at 18:06, Mateusz Guzik wrote: > > Author: mjg > Date: Sun Dec 13 18:06:24 2020 > New Revision: 368609 > URL: https://svnweb.freebsd.org/changeset/base/368609 > > Log: > fd: fix fdrop prediction when closing a fd > > Most of the time this is the last reference, contrary to

Re: svn commit: r368606 - head/usr.bin/calendar

2020-12-13 Thread Stefan Esser
Am 13.12.20 um 12:13 schrieb Yuri Pankov: Stefan Eßer wrote: Author: se Date: Sun Dec 13 09:38:50 2020 New Revision: 368606 URL: https://svnweb.freebsd.org/changeset/base/368606 Log:    Fix WITHOUT_ICONV build    There was an unprotected use of nl_langinfo() to determine the order of    day

svn commit: r368610 - head/usr.bin/calendar

2020-12-13 Thread Stefan Eßer
Author: se Date: Sun Dec 13 19:03:38 2020 New Revision: 368610 URL: https://svnweb.freebsd.org/changeset/base/368610 Log: Revert r368606 The issue will be fixed in a different way. Reported by: yuripv Modified: head/usr.bin/calendar/events.c Modified: head/usr.bin/calendar/events.

svn commit: r368611 - head/usr.bin/calendar

2020-12-13 Thread Stefan Eßer
Author: se Date: Sun Dec 13 19:06:59 2020 New Revision: 368611 URL: https://svnweb.freebsd.org/changeset/base/368611 Log: Fix WITHOUT_ICONV build Move the include of langinfo.h out of the WITH_ICONV condition block, since it is not dependent on ICONV. This was correct when nl_langinfo()

Re: svn commit: r368609 - in head/sys: kern sys

2020-12-13 Thread Mateusz Guzik
Unfortunately inlines mess with __FILE__/__LINE__ by showing the implementation instead of the consumer. This in particular matters with https://reviews.freebsd.org/D27600 I failed to find replacements for __ macros which don't suffer the problem. On 12/13/20, Alexander Richardson wrote: > On Su

Re: svn commit: r364761 - in head: share/mk sys/conf sys/modules/cloudabi32 sys/modules/cloudabi64 sys/modules/linux sys/modules/linux64

2020-12-13 Thread Ryan Libby
On Tue, Aug 25, 2020 at 6:30 AM Alex Richardson wrote: > > Author: arichardson > Date: Tue Aug 25 13:30:03 2020 > New Revision: 364761 > URL: https://svnweb.freebsd.org/changeset/base/364761 > > Log: > Pass -fuse-ld=/path/to/ld if ${LD} != "ld" > > This is needed so that setting LD/XLD is not

svn commit: r368612 - head/sys/kern

2020-12-13 Thread Konstantin Belousov
Author: kib Date: Sun Dec 13 19:43:45 2020 New Revision: 368612 URL: https://svnweb.freebsd.org/changeset/base/368612 Log: Correct indent. Sponsored by: The FreeBSD Foundation Modified: head/sys/kern/subr_sleepqueue.c Modified: head/sys/kern/subr_sleepqueue.c ===

svn commit: r368613 - head/sys/kern

2020-12-13 Thread Konstantin Belousov
Author: kib Date: Sun Dec 13 19:45:42 2020 New Revision: 368613 URL: https://svnweb.freebsd.org/changeset/base/368613 Log: Fix TDP_WAKEUP/thr_wake(curthread->td_tid) after r366428. Reported by: arichardson Reviewed by: arichardson, markj Sponsored by: The FreeBSD Foundation Differen

svn commit: r368614 - head/sys/kern

2020-12-13 Thread Mateusz Guzik
Author: mjg Date: Sun Dec 13 21:28:15 2020 New Revision: 368614 URL: https://svnweb.freebsd.org/changeset/base/368614 Log: vfs: correctly predict last fdrop on failed open Arguably since the count is guaranteed to be 1 the code should be modified to avoid the work. Modified: head/sys/k

svn commit: r368615 - head/sys/kern

2020-12-13 Thread Mateusz Guzik
Author: mjg Date: Sun Dec 13 21:29:39 2020 New Revision: 368615 URL: https://svnweb.freebsd.org/changeset/base/368615 Log: cache: fix ups bad predicts - last level fallback normally sees CREATE; the code should be optimized to not get there for said case - fast path commonly fails with

svn commit: r368616 - head/sys/sys

2020-12-13 Thread Mateusz Guzik
Author: mjg Date: Sun Dec 13 21:30:42 2020 New Revision: 368616 URL: https://svnweb.freebsd.org/changeset/base/368616 Log: Patch annotation in sigdeferstop Probability flipped since sigdefer handling was moved away from regular VOP calls. Modified: head/sys/sys/signalvar.h Modified: h

svn commit: r368617 - head/sys/kern

2020-12-13 Thread Mateusz Guzik
Author: mjg Date: Sun Dec 13 21:32:19 2020 New Revision: 368617 URL: https://svnweb.freebsd.org/changeset/base/368617 Log: uipc: disable prediction in unp_pcb_lock_peer The branch is not very predictable one way or the other, at least during buildkernel where it only correctly matched 57%

svn commit: r368622 - head/sys/netinet

2020-12-13 Thread Michael Tuexen
Author: tuexen Date: Sun Dec 13 23:51:51 2020 New Revision: 368622 URL: https://svnweb.freebsd.org/changeset/base/368622 Log: Harden the handling of outgoing streams in case of an restart or INIT collision. This avouds an out-of-bounce access in case the peer can break the cookie signature.

svn commit: r368623 - head/stand/common

2020-12-13 Thread Jessica Clarke
Author: jrtc27 Date: Mon Dec 14 00:46:24 2020 New Revision: 368623 URL: https://svnweb.freebsd.org/changeset/base/368623 Log: loader: Print autoboot countdown immediately, not at 9 For the first second otime and ntime are equal so no message gets printed. Instead we should print the count

svn commit: r368624 - head/sys/mips/mips

2020-12-13 Thread Jessica Clarke
Author: jrtc27 Date: Mon Dec 14 00:47:59 2020 New Revision: 368624 URL: https://svnweb.freebsd.org/changeset/base/368624 Log: mips: Fix sub-word atomics implementation These aligned the address but then always used the least significant bits of the value in memory, which is the wrong half

svn commit: r368625 - head/lib/libc/string

2020-12-13 Thread Jessica Clarke
Author: jrtc27 Date: Mon Dec 14 00:50:45 2020 New Revision: 368625 URL: https://svnweb.freebsd.org/changeset/base/368625 Log: strdup.3: Function appeared in 4.3BSD-Reno, not 4.4BSD Linux claims 4.3BSD, we claim 4.4BSD and OpenBSD claims 4.3BSD-Reno. It turns out that OpenBSD got it right:

svn commit: r368626 - head/stand/efi/loader/arch/riscv

2020-12-13 Thread Jessica Clarke
Author: jrtc27 Date: Mon Dec 14 00:54:05 2020 New Revision: 368626 URL: https://svnweb.freebsd.org/changeset/base/368626 Log: loader: Ignore the .interp section on RISC-V Without this we risk having the .interp section be placed earlier in the file and mess with section offsets; in partic