1.
I am relatively new to coding on linux, I have a requirement to understand 'ptrace' code. Can somebody suggest how I could get the source code for this?
I am using Linux Mint, and tried an apt-get source ptrace, but get the following error,
E: Unable to find a source package for ptrace
2.
I also tried running the following code from the linuxjournal.com
Can somebody suggest how I could get the source code for this?
ptrace() is part of the kernel. So, basically, just grab a Linux source tarball.
I don't know about linux/user.h, but this is the first Google hit:
Date: Mon, 16 Nov 2009 22:12:45 -0800
[gccgo] Don't use <linux/user.h>
Newer kernel versions don't provide <linux/user.h>. This patch
changes the libgo build to not try to use it, but to use
<sys/user.h>. I was using <linux/user.h> because it gives more useful
values for cs, ds, etc., so this patch also changes the sed script to
get those back.