getting argv[] from user page (xenix 386)

The Beach Bum jfh at rpp386.Dallas.TX.US
Fri Dec 2 12:13:35 AEST 1988


In article <337 at lexicon.UUCP> cspencer at 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 at rpp386.Dallas.TX.US       |tired of looking at these damn =(___)=
UucpNet : <backbone>!killer!rpp386!jfh  +things in everybody's .sig?-------U---



More information about the Comp.unix.xenix mailing list