Date: Sat, 17 Jul 2004 19:48:49 +0000 (UTC) From: Alfred Perlstein <alfred@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/truss alpha-fbsd.c amd64-fbsd.c i386-fbsd.c i386-linux.c ia64-fbsd.c sparc64-fbsd.c syscall.h syscalls.c Message-ID: <200407171948.i6HJmnE1057749@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
alfred 2004-07-17 19:48:49 UTC FreeBSD src repository Modified files: usr.bin/truss alpha-fbsd.c amd64-fbsd.c i386-fbsd.c i386-linux.c ia64-fbsd.c sparc64-fbsd.c syscall.h syscalls.c Log: Support readlink(2) better. Readlink does not nul terminate the result buffer, so we need to format it ourselves. The problem is that the length is stored as the return value from readlink, so we need to pass the return value from our syscall into print_arg. Motivated by: truss garbage on my screen from reading /etc/malloc.conf. Revision Changes Path 1.18 +2 -2 src/usr.bin/truss/alpha-fbsd.c 1.3 +2 -2 src/usr.bin/truss/amd64-fbsd.c 1.22 +2 -2 src/usr.bin/truss/i386-fbsd.c 1.23 +2 -2 src/usr.bin/truss/i386-linux.c 1.7 +2 -2 src/usr.bin/truss/ia64-fbsd.c 1.7 +2 -2 src/usr.bin/truss/sparc64-fbsd.c 1.15 +2 -2 src/usr.bin/truss/syscall.h 1.42 +14 -2 src/usr.bin/truss/syscalls.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407171948.i6HJmnE1057749>