Fixed 'ps' utility: now get process table addresses with getsysinfo() calls.
To be done: get copies of process tables instead of using /dev/(k)mem.
This commit is contained in:
@@ -9,7 +9,6 @@ int what; /* what information is requested */
|
||||
void *where; /* where to put it */
|
||||
{
|
||||
message m;
|
||||
|
||||
m.m1_i1 = what;
|
||||
m.m1_p1 = where;
|
||||
if (_syscall(who, GETSYSINFO, &m) < 0) return(-1);
|
||||
|
||||
@@ -46,6 +46,7 @@ OBJECTS = \
|
||||
$(LIBRARY)(getppid.o) \
|
||||
$(LIBRARY)(getuid.o) \
|
||||
$(LIBRARY)(getprocnr.o) \
|
||||
$(LIBRARY)(getsysinfo.o) \
|
||||
$(LIBRARY)(findproc.o) \
|
||||
$(LIBRARY)(ioctl.o) \
|
||||
$(LIBRARY)(isatty.o) \
|
||||
@@ -224,6 +225,9 @@ $(LIBRARY)(getpid.o): getpid.s
|
||||
$(LIBRARY)(getppid.o): getppid.s
|
||||
$(CC1) getppid.s
|
||||
|
||||
$(LIBRARY)(getsysinfo.o): getsysinfo.s
|
||||
$(CC1) getsysinfo.s
|
||||
|
||||
$(LIBRARY)(getprocnr.o): getprocnr.s
|
||||
$(CC1) getprocnr.s
|
||||
|
||||
|
||||
Reference in New Issue
Block a user