perfect but for extra /usr/bin/kill

This commit is contained in:
albert
2002-10-10 22:40:35 +00:00
parent 4eb95fdda8
commit 465708e3f9
9 changed files with 44 additions and 19 deletions

View File

@@ -10,9 +10,9 @@
#include <string.h> /* for strcmp */
#include <stdio.h> /* for parse error output */
#include "proc/readproc.h" /* for proc_t */
#include "readproc.h" /* for proc_t */
#include "proc/compare.h" /* for this code */
#include "compare.h" /* for this code */
/*

View File

@@ -18,9 +18,9 @@
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/utsname.h>
#include "proc/procps.h"
#include "proc/version.h"
#include "proc/sysinfo.h" /* smp_num_cpus */
#include "procps.h"
#include "version.h"
#include "sysinfo.h" /* smp_num_cpus */
#define KSYMS_FILENAME "/proc/ksyms"

View File

@@ -24,6 +24,11 @@ LIBSRC := $(wildcard proc/*.c)
LIBHDR := $(wildcard proc/*.h)
LIBOBJ := $(LIBSRC:.c=.o)
LIB_X := COPYING Makefile.noam module.mk
TARFILES += $(LIBSRC) $(LIBHDR) $(addprefix proc/,$(LIB_X))
# Clean away all output files, .depend, and symlinks.
# Use wildcards in case the version has changed.
CLEAN += proc/.depend proc/lib*.so* proc/lib*.a $(LIBOBJ)
@@ -42,8 +47,10 @@ proc/.depend: $(LIBSRC) $(LIBHDR)
$(strip $(CC) $(LIB_CFLAGS) -MM -MG $(LIBSRC) > $@)
ifneq ($(MAKECMDGOALS),clean)
ifneq ($(MAKECMDGOALS),tar)
-include proc/.depend
endif
endif
$(lib)/$(SONAME) : proc/$(SONAME)

View File

@@ -10,7 +10,7 @@
#include <sys/types.h>
#include <stdlib.h>
#include <pwd.h>
#include "proc/procps.h"
#include "procps.h"
#include <grp.h>
#define HASHSIZE 16 /* power of 2 */

View File

@@ -7,8 +7,8 @@
\***********************************************************************/
#include "proc/procps.h"
#include "proc/readproc.h"
#include "procps.h"
#include "readproc.h"
#include "status.h"
char * status(proc_t* task) {

View File

@@ -21,8 +21,8 @@
#include <time.h>
#include <utmp.h>
#include <sys/ioctl.h>
#include "proc/whattime.h"
#include "proc/sysinfo.h"
#include "whattime.h"
#include "sysinfo.h"
static char buf[128];
static double av[3];