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:
Jorrit Herder
2005-06-06 13:51:50 +00:00
parent cde16504a1
commit 2f74381dcc
12 changed files with 97 additions and 40 deletions

View File

@@ -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);

View File

@@ -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