Re: distrib/special: zap useless MAN bits

2022-08-27 Thread Klemens Nanni
On Wed, Aug 24, 2022 at 09:25:06PM +, Klemens Nanni wrote: > Makefile.inc sets NOMAN=1 and MAN= to the empty string, so all > definitions in program Makefiles are useless and misleading. > > disklabel and fdisk certainly won't embed the manual in size constrained > install media, so also remov

use volatile not __volatile__

2022-08-27 Thread Jonathan Gray
directly use ansi volatile keyword not __volatile__ builtin diff --git libexec/ld.so/hppa/rtld_machine.c libexec/ld.so/hppa/rtld_machine.c index 82c7220725c..9d60c12ae4f 100644 --- libexec/ld.so/hppa/rtld_machine.c +++ libexec/ld.so/hppa/rtld_machine.c @@ -446,7 +446,7 @@ _dl_bind(elf_object_t *ob

use volatile not __volatile

2022-08-27 Thread Jonathan Gray
directly use ansi volatile keyword not __volatile from cdefs.h diff --git lib/libc/arch/aarch64/gen/fpgetround.c lib/libc/arch/aarch64/gen/fpgetround.c index 058fa8fcd8c..b6943e6585e 100644 --- lib/libc/arch/aarch64/gen/fpgetround.c +++ lib/libc/arch/aarch64/gen/fpgetround.c @@ -34,7 +34,7 @@ fpg

acpihpet(4): acpihpet_delay: only use lower 32 bits of counter

2022-08-27 Thread Scott Cheloha
Whoops, forgot about the split read problem. My mistake. Because 32-bit platforms cannot do bus_space_read_8 atomically, and i386 can use acpihpet(4), we can only safely use the lower 32 bits of the counter in acpihpet_delay() (unless we want two versions of acpihpet_delay()... which I don't). S

move PRU_ABORT request to (*pru_abort)()

2022-08-27 Thread Vitaliy Makkoveev
PRU_ABORT is another candidate to change return type to void. Also actually we abort only the sockets which are linked to `so_q' or `so_q0' queues of listening socket. Such sockets have no corresponding file descriptor and are not accessed from userland, so PRU_ABORT used to destroy them on listeni

Don't scheck `so_pcb' with PR_WANTRCVD flag

2022-08-27 Thread Vitaliy Makkoveev
tcp(4) sockets are the only sockets which could have NULL `so_pcb' and we handle this case within tcp_rcvd() handler. Index: sys/kern/uipc_socket.c === RCS file: /cvs/src/sys/kern/uipc_socket.c,v retrieving revision 1.285 diff -u -p -

Re: tetris(6) "Random Generator" and advanced controls

2022-08-27 Thread Tom MTT.
Apparently, as some people pointed it out, DMARC doesn't influence spam score. I thought that since my e-mail failed both SPF and DKIM and my DMARC policy was set to quarantine my mail would've been trashed instantly. I'm really sorry for the inconvenience, I won't do the same mistake twice. ~ tm

Re: move PRU_SEND request to (*pru_send)()

2022-08-27 Thread Alexander Bluhm
On Sat, Aug 27, 2022 at 02:48:35AM +0300, Vitaliy Makkoveev wrote: > The former PRU_SEND error path of gre_usrreq() had `control' mbuf(9) > leak. It was fixed in new gre_send(). > > The former pfkeyv2_send() was renamed to pfkeyv2_dosend(). You forgot to delete case PRU_SEND from route_usrreq().

Re: bcm2835_mbox.c

2022-08-27 Thread Mark Kettenis
> Date: Sat, 27 Aug 2022 20:48:50 +0200 > From: Marcus Glocker > > Left over from NetBSD code? Probably. ok kettenis@ > Index: sys/dev/fdt/bcm2835_mbox.c > === > RCS file: /cvs/src/sys/dev/fdt/bcm2835_mbox.c,v > retrieving revisio

bcm2835_mbox.c

2022-08-27 Thread Marcus Glocker
Left over from NetBSD code? Index: sys/dev/fdt/bcm2835_mbox.c === RCS file: /cvs/src/sys/dev/fdt/bcm2835_mbox.c,v retrieving revision 1.3 diff -u -p -u -p -r1.3 bcm2835_mbox.c --- sys/dev/fdt/bcm2835_mbox.c 6 Apr 2022 18:59:28 -

Re: [PATCH] Correctly (per POSIX) round up df usage percentage

2022-08-27 Thread Stuart Henderson
On 2022/08/27 15:53, наб wrote: > PROG=df > SRCS=df.c ffs_df.c ext2fs_df.c > -LDADD= -lutil > -DPADD= ${LIBUTIL} > +LDADD= -lutil -lm > +DPADD= ${LIBUTIL} ${LIBM} df is used on the ramdisk, so this would need testing there (at least on the tighter media on

[PATCH] Correctly (per POSIX) round up df usage percentage

2022-08-27 Thread наб
Quoth POSIX Issue 7: The percentage of the normally available space that is currently allocated to all files on the file system. This shall be calculated using the fraction: /( + ) expressed as a percentage. This percentage may be greater than 100 if is less than zero.

tetris(6) "Random Generator" and advanced controls

2022-08-27 Thread Tom MTT.
Hi all! Due to a misconfiguration of my domain's DMARC record, my previous mail went directly into your spam folders. Now that it's fixed, I'm sending it again. Hope that doesn't cause too much trouble. I made some changes to tetris(6) to follow the Tetris guidelines more closely and to add new co