Path: utzoo!utgpu!watmath!clyde!att!rutgers!mailrus!ames!killer!pollux!dalsqnt!rpp386!jfh From: jfh@rpp386.Dallas.TX.US (The Beach Bum) Newsgroups: comp.unix.xenix Subject: Re: getting argv[] from user page (xenix 386) Summary: argv[] isn't in the u-page. it's in the user process d-space. Message-ID: <8995@rpp386.Dallas.TX.US> Date: 2 Dec 88 02:13:35 GMT References: <337@lexicon.UUCP> Reply-To: jfh@rpp386.Dallas.TX.US (The Beach Bum) Organization: Big "D" Home for Wayward Hackers Lines: 18 In article <337@lexicon.UUCP> cspencer@lexicon.UUCP (Cliff Spencer) writes: >Does anyone have a code fragment that illustrates how to fetch >the command line args of a process (assuming one has a user page >in their possession) under xenix 386 ? In other words, I want to >get the command in the style of PS(1). You have to find the stack, which isn't located in the u-page. However, you are in luck. The address of the stack is in the u-page. Also, the name of the command is in the u-page. There are problems. The u-page might be swapped! Fear not, there is a crash(1) clone in the comp.unix.misc archives. I wrote it for SCO Xenix 2.2.1 on a 386. It has the code needed to find a u-page, swapped or not. -- John F. Haugh II +-Cat of the Week:--------------_ /|- VoiceNet: (214) 250-3311 Data: -6272 |Aren't you absolutely sick and \'o.O' InterNet: jfh@rpp386.Dallas.TX.US |tired of looking at these damn =(___)= UucpNet :!killer!rpp386!jfh +things in everybody's .sig?-------U---