7

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:

Screenshot indicating "No Namelist"

6

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.

| improve this answer | |
  • So the problem is from the Sanos simulator? – user4916 Apr 19 '17 at 16:29
  • 1
    Not with Sanos, with the V7 image I think. – Stephen Kitt Apr 19 '17 at 16:32
  • 3
    @Muzer, in V7, 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
  • 2
    Yep, before procfs and equivalents were introduced, that's how ps did it :) – rackandboneman Apr 20 '17 at 13:29
  • 1
    ...and far more modern systems still had these kind of mechanics: groups.google.com/forum/#!topic/muc.lists.netbsd.tech.kern/… – rackandboneman Apr 21 '17 at 9:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.