cspencer@lexicon.UUCP (Cliff Spencer) (11/28/88)
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). -cliff -- Cliff Spencer {harvard,linus,ima,bbn,m2c}!spdcc!lexicon!cspencer
jfh@rpp386.Dallas.TX.US (The Beach Bum) (12/02/88)
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 : <backbone>!killer!rpp386!jfh +things in everybody's .sig?-------U---