git: procfs - Don't reset fd offset when reading regs, fpregs, or dbregs files.
Imre Vadasz
ivadasz at crater.dragonflybsd.org
Fri Jan 2 02:38:48 PST 2026
commit ea2c2549cfb24022460fdbf1e20d8d14c931a0eb
Author: Imre Vadász <imre at vdsz.com>
Date: Tue Dec 30 17:06:12 2025 +0100
procfs - Don't reset fd offset when reading regs, fpregs, or dbregs files.
* For repeated reads, we can simply use pread(2). And this way, we allow for
normal shell tooling to work correctly on these procfs files.
* This also matches the behavior on NetBSD.
Summary of changes:
sys/vfs/procfs/procfs_dbregs.c | 1 -
sys/vfs/procfs/procfs_fpregs.c | 1 -
sys/vfs/procfs/procfs_regs.c | 1 -
sys/vfs/procfs/procfs_status.c | 2 +-
4 files changed, 1 insertion(+), 4 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ea2c2549cfb24022460fdbf1e20d8d14c931a0eb
--
DragonFly BSD source repository
More information about the Commits
mailing list