[src] cvs commit: src/include unistd.h src/lib/libc/sys readlink.2 src/sys/compat/freebsd32 syscalls.master src/sys/kern syscalls.master vfs_syscalls.c src/sys/sys syscallsubr.h

Dag-Erling Smørgrav des at des.no
Fri Feb 15 09:29:38 UTC 2008

Kostik Belousov <kostikbel at gmail.com> writes:
> The slightly contrived example below works on RELENG_7 amd64, relevant
> output from the truss is
> 	readlink("/usr/X11R6","l",1)                     = 1 (0x1)
> on the CURRENT gives
> 	readlink("/usr/X11R6","l",1)                     = -4294967295 (0xffffffff00000001)
> [also please note wrong output for the third readlink arg; ktrace/kdump works
> ok].

The only advantage truss has is the ability to decode structs
(e.g. struct sockaddr in a connect() call).  Apart from that, ktrace /
kdump is superior in every respect.

Dag-Erling Smørgrav - des at des.no

More information about the freebsd-current mailing list