git: truss - Various small code cleanups.
Imre Vadasz
ivadasz at crater.dragonflybsd.org
Sun Dec 28 09:07:16 PST 2025
commit f940d57e2bc02b7622589c4a618dc6896cae7d5d
Author: Imre Vadász <imre at vdsz.com>
Date: Sun Dec 28 17:24:29 2025 +0100
truss - Various small code cleanups.
* Remove accidentally committed ktrace.out file.
* Simplify some code, e.g. malloc+bzero -> calloc, and fprintf+exit -> errx.
* Use runtime variable sys_nsig, instead of compile-time NSIG for the
range-check in the sys_signame[] lookup.
* We don't even have a "break" syscall in DragonFly, rename entry to "sbrk".
Summary of changes:
usr.bin/truss/ktrace.out | Bin 5483309 -> 0 bytes
usr.bin/truss/main.c | 8 +++-----
usr.bin/truss/setup.c | 9 +++------
usr.bin/truss/syscalls.c | 7 +++----
4 files changed, 9 insertions(+), 15 deletions(-)
delete mode 100644 usr.bin/truss/ktrace.out
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f940d57e2bc02b7622589c4a618dc6896cae7d5d
--
DragonFly BSD source repository
More information about the Commits
mailing list