I am using this emulator for UNIX V7: http://www.jbox.dk/sanos/pdp11.htm
When I type ps
to get a list of processes, I get the following error:
Retrocomputing Stack Exchange is a question and answer site for vintage-computer hobbyists interested in restoring, preserving, and using the classic computer and gaming systems of yesteryear. It only takes a minute to sign up.
Sign up to join this communityI am using this emulator for UNIX V7: http://www.jbox.dk/sanos/pdp11.htm
When I type ps
to get a list of processes, I get the following error:
ps
in V7 expects to find the unstripped kernel binary in /unix
, or named as the second parameter. In the Sanos simulator, you should run
cd /
ln rl2unix unix
to set the /unix
link up correctly.
That won’t fix ps
completely though, it fails looking for /dev/swap
... I don’t know what the node should be for that, none of the values in /dev/makefile
work.
ps
reads the kernel’s data structures in memory directly, there isn’t a nice interface between the kernel and userspace. ps
needs the namelist from the kernel to determine where the process map is located. See nlist(3)
and a.out(5)
for details (this is where I notice that GitHub now formats troff... nice...).
– Stephen Kitt
Apr 20 '17 at 9:32