Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ncoast.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!harvard!talcott!panda!genrad!decvax!cwruecmp!hal!ncoast!bsa From: bsa@ncoast.UUCP (Brandon Allbery) Newsgroups: net.unix-wizards Subject: Re: XENIX/V7 proc query -- add sys3 on a similar topic Message-ID: <698@ncoast.UUCP> Date: Wed, 8-May-85 21:36:06 EDT Article-I.D.: ncoast.698 Posted: Wed May 8 21:36:06 1985 Date-Received: Sat, 11-May-85 08:59:30 EDT References: <10287@brl-tgr.ARPA> Reply-To: bsa@ncoast.UUCP (Brandon Allbery) Followup-To: net.unix-wizards Organization: North Coast Xenix, Cleveland, OH Lines: 19 Summary: swap space? 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