ptrace has some issues (sysdeps/mach/hurd/ptrace.c).

Also consider the sysdeps/generic/sys/ptrace.h and sysdeps/unix/sysv/linux/sys/ptrace.h files.