perfect but for extra /usr/bin/kill
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user