ptrace in solaris
问题 I'm trying to port a program that uses ptrace from linux to solaris, but no luck, as it complains that sys/ptrace.h is not found. Any idea how to port it? 回答1: At least on the solaris system I have access to, man ptrace says to include #include <unistd.h> #include <sys/types.h> for access to the ptrace prototype and constants. However, there is a usage note that states that ptrace is available only with the 32-bit libc, and that 64 bit clients should use the /proc debugging interfaces instead