CVS: cvs.openbsd.org: src

2022-12-04 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2022/12/05 00:30:51

Modified files:
sys/arch/arm64/dev: aplaudio.c 

Log message:
Calculate the bit clock based on number of channels, bytes/sample and
sample rate instead of relying on the "mclk-fs" property.  This property
is no longer present in upstream device trees.

ok ratchov@



CVS: cvs.openbsd.org: src

2022-12-04 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2022/12/05 00:37:57

Modified files:
sys/dev/pci/drm: drm_connector.c drm_mode_object.c 
sys/dev/pci/drm/i915: i915_drv.c 

Log message:
Trigger a kevent when we change the backlight.  This gives the Xorg
drivers a chance to notice the update of the Backlight connector property
when we change it behind its back.

ok jsg@



CVS: cvs.openbsd.org: src

2022-12-04 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:src
Changes by: chel...@cvs.openbsd.org 2022/12/04 16:50:51

Modified files:
bin/pax: options.c 
games/robots   : main.c 
regress/lib/libpthread/switch: switch.c 
regress/lib/libc/db: dbtest.c 
regress/lib/libc/regex: main.c 
regress/lib/libutil/fmt_scaled: fmt_test.c 
sbin/disklabel : disklabel.c 
sbin/dmesg : dmesg.c 
sbin/dumpfs: dumpfs.c 
sbin/growfs: growfs.c 
sbin/isakmpd   : isakmpd.c 
sbin/mount : mount.c 
sbin/mount_cd9660: mount_cd9660.c 
sbin/mount_ext2fs: mount_ext2fs.c 
sbin/mount_ffs : mount_ffs.c 
sbin/mount_msdos: mount_msdos.c 
sbin/mount_tmpfs: mount_tmpfs.c 
sbin/newfs : newfs.c 
sbin/newfs_ext2fs: newfs_ext2fs.c 
sbin/savecore  : savecore.c 
sbin/scsi  : scsi.c 
sbin/ttyflags  : ttyflags.c 
usr.bin/biff   : biff.c 
usr.bin/cal: cal.c 
usr.bin/cap_mkdb: cap_mkdb.c 
usr.bin/chpass : chpass.c 
usr.bin/col: col.c 
usr.bin/colrm  : colrm.c 
usr.bin/comm   : comm.c 
usr.bin/ctags  : ctags.c 
usr.bin/cut: cut.c 
usr.bin/du : du.c 
usr.bin/expand : expand.c 
usr.bin/find   : main.c 
usr.bin/logger : logger.c 
usr.bin/mesg   : mesg.c 
usr.bin/users  : users.c 
usr.bin/finger : finger.c 
usr.bin/gencat : gencat.c 
usr.bin/getconf: getconf.c 
usr.bin/hexdump: hexsyntax.c 
usr.bin/id : id.c 
usr.bin/join   : join.c 
usr.bin/lastcomm: lastcomm.c 
usr.bin/look   : look.c 
usr.bin/m4 : main.c 
usr.bin/make   : main.c 
usr.bin/netstat: main.c 
usr.bin/nfsstat: nfsstat.c 
usr.bin/nl : nl.c 
usr.bin/nm : nm.c 
usr.bin/paste  : paste.c 
usr.bin/rdist  : rdist.c 
usr.bin/rdistd : rdistd.c 
usr.bin/sed: main.c 
usr.bin/ssh: ssh-keygen.c ssh-keyscan.c sshd.c 
usr.bin/tail   : tail.c 
usr.bin/telnet : main.c 
usr.bin/tput   : tput.c 
usr.bin/tr : tr.c 
usr.bin/tset   : tset.c 
usr.bin/tty: tty.c 
usr.bin/unvis  : unvis.c 
usr.bin/usbhidctl: usbhid.c 
usr.bin/usbhidaction: usbhidaction.c 
usr.bin/vis: vis.c 
usr.bin/vmstat : vmstat.c 
usr.bin/w  : w.c 
usr.bin/wc : wc.c 
usr.bin/xargs  : xargs.c 
usr.bin/xinstall: xinstall.c 
usr.sbin/ac: ac.c 
usr.sbin/apmd  : apmd.c 
usr.sbin/dev_mkdb: dev_mkdb.c 
usr.sbin/fdformat: fdformat.c 
usr.sbin/hotplugd: hotplugd.c 
usr.sbin/inetd : inetd.c 
usr.sbin/iostat: iostat.c 
usr.sbin/lpr/lpq: lpq.c 
usr.sbin/makefs: makefs.c 
usr.sbin/mtree : mtree.c 
usr.sbin/netgroup_mkdb: netgroup_mkdb.c 
usr.sbin/pwd_mkdb: pwd_mkdb.c 
usr.sbin/rpc.lockd: lockd.c 
usr.sbin/rpc.statd: statd.c 
usr.sbin/sa: main.c 
usr.sbin/wsfontload: wsfontload.c 
usr.sbin/wsconscfg: wsconscfg.c 

Log message:
userspace: remove vestigial '?' cases from top-level getopt(3) loops

getopt(3) returns '?' when it encounters a flag not present in the in
the optstring or if a flag is missing its option argument.  We can
handle this case with the "default" failure case with no loss of
legibility.  Hence, remove all the redundant "case '?':" lines.

Prompted by dlg@.  With help from dlg@ and millert@.

Link: https://marc.info/?l=openbsd-tech=167011979726449=2

ok naddy@ millert@ dlg@



CVS: cvs.openbsd.org: src

2022-12-04 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2022/12/05 00:49:07

Modified files:
libexec/ld.so/hppa: Makefile.inc ld.script 

Log message:
Add linker script for hppa.  The crucial bit is that hppa needs an extra
segment for .plt/.got which needs to be placed correctly.

ok deraadt@



CVS: cvs.openbsd.org: src

2022-12-04 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/12/04 17:24:44

Modified files:
regress/lib/libcrypto/bn: bn_mod_exp.c 

Log message:
bn_mod_exp.c doesn't need 



CVS: cvs.openbsd.org: src

2022-12-04 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2022/12/05 00:40:21

Modified files:
sys/dev/pci/drm/amd/amdgpu: amdgpu_kms.c 

Log message:
Add support for the Backlight connector property like we already have for
inteldrm(4).  This makes xbacklight(1) work when using the Xorg modesetting
driver.  The Xorg amdgpu driver needs a small change for this that should
land soon.

ok jsg@



CVS: cvs.openbsd.org: src

2022-12-04 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2022/12/04 23:30:25

Modified files:
regress/sys/uvm/wx_syscall: wx_syscall.c 

Log message:
Treat all possible mprotect() failures as fatal.



CVS: cvs.openbsd.org: src

2022-12-04 Thread Tobias Heider
CVSROOT:/cvs
Module name:src
Changes by: to...@cvs.openbsd.org   2022/12/04 04:54:31

Modified files:
sbin/iked  : control.c 
usr.sbin/ikectl: ikectl.c 

Log message:
Rename sun to s_un for portability.

ok patrick@



CVS: cvs.openbsd.org: src

2022-12-04 Thread Darren Tucker
CVSROOT:/cvs
Module name:src
Changes by: dtuc...@cvs.openbsd.org 2022/12/04 04:03:11

Modified files:
usr.bin/ssh: ssh-sk-helper.c ssh-agent.c 

Log message:
Remove duplicate includes.  Patch from AtariDreams via github PR#364.



CVS: cvs.openbsd.org: src

2022-12-04 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/12/04 01:22:13

Modified files:
lib/libc/arch/i386/string: bcmp.S bzero.S memmove.S 
lib/libc/arch/i386/sys: brk.S sbrk.S 

Log message:
Fix warnings about binding changed to STB_WEAK on i386

Compiling libc on i386 results in compiler warnings for bcmp, bzero, bcopy,
brk, and sbrk. Use ENTRY_NB instead of ENTRY to avoid this.

ok jca millert



CVS: cvs.openbsd.org: xenocara

2022-12-04 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2022/12/04 01:05:36

Modified files:
.  : MODULES 3RDPARTY 

Log message:
update



CVS: cvs.openbsd.org: src

2022-12-04 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:src
Changes by: chel...@cvs.openbsd.org 2022/12/04 11:01:57

Modified files:
usr.bin/systat : main.c systat.h vmstat.c 

Log message:
systat(1): vmstat: measure elapsed time with clock_gettime(2) instead of ticks

The vmstat view in systat(1) should not use statclock() ticks to count
elapsed time.  First, ticks are low resolution.  Second, the statclock
is sometimes randomized, so each tick is not necessarily of equal
length.  Third, we're counting ticks from every CPU on the system, so
every rate in the view is divided by the number of CPUs.  For example,
on an amd64 system with 8 CPUs you currently see:

200 clock

... when the true clock interrupt rate on that system is 1600.

Instead, measure elapsed time with clock_gettime(2).  Use CLOCK_UPTIME
here so we exclude time when the system is suspended.  With this
change we no longer need "stathz" or "hertz".  We can also get rid of
the anachronistic secondary clock failure test.

Prompted by dlg@ and jmatthew@.  deraadt@ says this has been in snaps
since 2022-11-21; no complaints.

Link: https://marc.info/?l=openbsd-tech=166898960831136=2

ok dlg@ deraadt@



CVS: cvs.openbsd.org: xenocara

2022-12-04 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2022/12/04 11:13:54

Modified files:
app/xfd: ChangeLog Makefile.am Makefile.in aclocal.m4 
 compile configure configure.ac grid.c xfd.c 
app/xfd/man: Makefile.in 

Log message:
Update xfd to version 1.1.4



CVS: cvs.openbsd.org: xenocara

2022-12-04 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2022/12/04 11:15:09

Modified files:
driver/xf86-video-mach64: ChangeLog Makefile.in README 
  aclocal.m4 compile configure 
  configure.ac 
driver/xf86-video-mach64/man: Makefile.in 
driver/xf86-video-mach64/src: Makefile.in aticonfig.c atidri.c 
  atidri.h atimach64io.h 
  atimach64render.c atimach64xv.c 
  atiscreen.c ativgaio.h atividmem.c 

Log message:
Update xf86-video-mach64 to version 6.9.7.



CVS: cvs.openbsd.org: xenocara

2022-12-04 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2022/12/04 11:43:19

Modified files:
.  : MODULES 

Log message:
update



CVS: cvs.openbsd.org: src

2022-12-04 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2022/12/04 08:55:26

Modified files:
libexec/ld.so  : loader.c 

Log message:
ld.so: Disable DT_MIPS_RLD_MAP_REL

The linker produces incorrect values for DT_MIPS_RLD_MAP_REL tags.
Disable the handling of the tag in the dynamic loader. The linker
will be fixed in a later commit when snapshots have the updated ld.so.

Discussed with and OK kettenis@ deraadt@



CVS: cvs.openbsd.org: src

2022-12-04 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2022/12/04 08:42:08

Modified files:
libexec/ld.so  : library.c library_mquery.c loader.c resolve.h 

Log message:
The next step for mimmutable().  ld.so figures out what regions of memory
of startup shared library mappings can be made immutable, and also does
this for dlope() RTLD_NODELETE and subsidiary libraries.  Complexity in this
diff is due to the GNU_RELRO and OPENBSD_MUTABLE sections.
Tested in snaps for about 3 weeks, with some bootstrap related pain felt in 
ports
ok kettenis, much help from others.



CVS: cvs.openbsd.org: src

2022-12-04 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2022/12/04 12:04:38

Modified files:
regress/sys/ddb: Makefile 

Log message:
Print skipped while running on anything other than i386.



CVS: cvs.openbsd.org: src

2022-12-04 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2022/12/04 12:31:13

Modified files:
regress/lib/libssl/rust-openssl: Makefile 

Log message:
zap weird spaces $EDITOR added in previous