summaryrefslogtreecommitdiff
path: root/process.h
diff options
context:
space:
mode:
authorJeremie Koenig <jk@jk.fr.eu.org>2010-08-21 09:26:09 +0000
committerJeremie Koenig <jk@jk.fr.eu.org>2010-08-30 14:19:08 +0200
commit41e9b70f37295ec16d403d7efd1e49027ab867a8 (patch)
tree2a344126a178a43786d62fb4e003df908c58f630 /process.h
parent7eff83acaac2167ffdc7a297a0ed6a78354aa062 (diff)
Use libps and enhance [pid]/stat
* Makefile: Add libps to the $(LIBS). * proclist.c, proclist.h: Embed the proc server port in a ps_context structure. (proclist_make_node): Change to prototype to allow for the possibility of error. Rename to proclist_create_node to reflect the change and non-triviality. * process.c, process.h: Revamp. Use a full-blown procstat structure instead of just the procinfo fetched from the process server. Use the additional data to complement [pid]/stat. (process_lookup_pid): Get a ps_context structure instead of a port to the process server. * main.c (root_make_node): Convert to the new interface for proclist_create_node.
Diffstat (limited to 'process.h')
-rw-r--r--process.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/process.h b/process.h
index abdaaa3b..8c2ee636 100644
--- a/process.h
+++ b/process.h
@@ -1,8 +1,8 @@
-#include <hurd.h>
+#include <ps.h>
-/* Create a node for a directory representing information available at
- the proc server PROC for the given PID. On success, returns the
+/* Create a node for a directory representing the given PID, as published by
+ the proc server refrenced by the libps context PC. On success, returns the
newly created node in *NP. */
error_t
-process_lookup_pid (process_t proc, pid_t pid, struct node **np);
+process_lookup_pid (struct ps_context *pc, pid_t pid, struct node **np);