summaryrefslogtreecommitdiff
path: root/Makefile
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
commit1f1661d6a5b6f22acb48460b5304e29af2a0a554 (patch)
tree0aa7eb5eb5838df4e946cb7317f3cc2f18b30eba /Makefile
parent086569ee636d91a820aa23031dda3cb74bab9505 (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 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 97a61ed..48013f9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
TARGET = procfs
OBJS = procfs.o netfs.o procfs_file.o procfs_dir.o \
process.o proclist.o dircat.o main.o
-LIBS = -lnetfs
+LIBS = -lnetfs -lps
CC = gcc
CFLAGS = -Wall -g