diff options
author | Jeremie Koenig <jk@jk.fr.eu.org> | 2010-08-17 22:20:32 +0000 |
---|---|---|
committer | Jeremie Koenig <jk@jk.fr.eu.org> | 2010-08-30 14:14:49 +0200 |
commit | 2fb5b93b4cd56fd68b525371ba63b0933b61d03a (patch) | |
tree | 77f3674f76f45e68116d69c5fee74fcd386e041d /process.h | |
parent | c62d5ff73ceaad21bb0784ed6098d307a625b10d (diff) | |
download | hurd-2fb5b93b4cd56fd68b525371ba63b0933b61d03a.tar.gz hurd-2fb5b93b4cd56fd68b525371ba63b0933b61d03a.tar.bz2 hurd-2fb5b93b4cd56fd68b525371ba63b0933b61d03a.zip |
Fetch process information and reject the non-existing ones
* process.c, process.h (process_make_node): Make static,
include a procinfo structure into the node information.
(process_lookup_pid): New function, replaces process_make_node as the
outer interface, returns an error for non-existing processes.
* proclist.c (proclist_lookup): Convert to the new interface.
Diffstat (limited to 'process.h')
-rw-r--r-- | process.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,2 +1,8 @@ -struct node * -process_make_node (process_t procserv, pid_t pid); +#include <hurd.h> + +/* Create a node for a directory representing information available at + the proc server PROC for the given PID. On success, returns the + newly created node in *NP. */ +error_t +process_lookup_pid (process_t proc, pid_t pid, struct node **np); + |