bsa@ncoast.UUCP (Brandon Allbery) (05/09/85)
Expires: I have a similar question. I have a hopmebrew program for V7/XENIX and System III that is supposed to look like the Berkeley `w' program, plus a few bells and whistles. But I have yet to figure out how to translate a p.p_addr for a swapped process on *either* system into an offset in swapdev. My first try was lseek(swapdev, (long)((p.p_addr+swplo)*BSIZE),0); and I've tried it without the swplo, without the BSIZE, with some miscellaneous shifts, etc. Can someone tell me how to read the swapped image of a process under either system? (My guess is that once I find the one, I'll have the other.) Thanks in advance... --bsa -- Brandon Allbery, Unix Consultant -- 6504 Chestnut Road, Independence, OH 44131 decvax!cwruecmp!ncoast!bsa; ncoast!bsa@case.csnet; +1 216 524 1416; 74106,1032