aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/main.c b/main.c
index 62e440d4..bc5c865c 100644
--- a/main.c
+++ b/main.c
@@ -1,21 +1,29 @@
#include <mach.h>
+#include <hurd.h>
#include <error.h>
#include <argp.h>
#include <hurd/netfs.h>
#include "procfs.h"
#include "procfs_file.h"
#include "procfs_dir.h"
+#include "proclist.h"
static struct node *make_file (void *dir_hook, void *ent_hook)
{
return procfs_file_make_node (ent_hook, -1, NULL);
}
+static struct node *make_proclist (void *dir_hook, void *ent_hook)
+{
+ return proclist_make_node (getproc ());
+}
+
int main (int argc, char **argv)
{
static const struct procfs_dir_entry entries[] = {
{ "hello", make_file, "Hello, World!\n" },
{ "goodbye", make_file, "Goodbye, cruel World!\n" },
+ { "proclist", make_proclist, },
{ }
};
mach_port_t bootstrap;