Using #include "*.h"' instead of
#include "proc/*.h"'.
This commit is contained in:
@@ -9,8 +9,8 @@
|
|||||||
|
|
||||||
#include <string.h> /* for strcmp */
|
#include <string.h> /* for strcmp */
|
||||||
#include <stdio.h> /* for parse error output */
|
#include <stdio.h> /* for parse error output */
|
||||||
#include "proc/readproc.h" /* for proc_t */
|
#include "readproc.h" /* for proc_t */
|
||||||
#include "proc/tree.h" /* for struct tree_node */
|
#include "tree.h" /* for struct tree_node */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This module was written by Charles Blake for procps.
|
This module was written by Charles Blake for procps.
|
||||||
|
@@ -22,9 +22,9 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
#include "proc/psdata.h"
|
#include "psdata.h"
|
||||||
#include "proc/ps.h"
|
#include "ps.h"
|
||||||
#include "proc/version.h"
|
#include "version.h"
|
||||||
|
|
||||||
#define MAX_ADDR_SZ 32
|
#define MAX_ADDR_SZ 32
|
||||||
static char *sysmap, *sysmap_last, sysmap_fmt[10];
|
static char *sysmap, *sysmap_last, sysmap_fmt[10];
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include "proc/ps.h"
|
#include "ps.h"
|
||||||
|
|
||||||
#define HASHSIZE 16 /* power of 2 */
|
#define HASHSIZE 16 /* power of 2 */
|
||||||
#define HASH(x) ((x) & (HASHSIZE - 1))
|
#define HASH(x) ((x) & (HASHSIZE - 1))
|
||||||
|
@@ -2,10 +2,10 @@
|
|||||||
* New Interface to Process Table -- PROCTAB Stream (a la Directory streams)
|
* New Interface to Process Table -- PROCTAB Stream (a la Directory streams)
|
||||||
* Copyright(C) 1996. Charles L. Blake.
|
* Copyright(C) 1996. Charles L. Blake.
|
||||||
*/
|
*/
|
||||||
#include "proc/version.h"
|
#include "version.h"
|
||||||
#include "proc/readproc.h"
|
#include "readproc.h"
|
||||||
#include "proc/devname.h"
|
#include "devname.h"
|
||||||
#include "proc/ps.h"
|
#include "ps.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include "proc/signals.h"
|
#include "signals.h"
|
||||||
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
#include "proc/ps.h"
|
#include "ps.h"
|
||||||
#include "proc/readproc.h"
|
#include "readproc.h"
|
||||||
|
|
||||||
char * status(proc_t* task) {
|
char * status(proc_t* task) {
|
||||||
static char buf[4] = " ";
|
static char buf[4] = " ";
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/* File for parsing top-level /proc entities. */
|
/* File for parsing top-level /proc entities. */
|
||||||
#include "proc/sysinfo.h"
|
#include "sysinfo.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include "proc/version.h"
|
#include "version.h"
|
||||||
|
|
||||||
#define BAD_OPEN_MESSAGE \
|
#define BAD_OPEN_MESSAGE \
|
||||||
"Error: /proc must be mounted\n" \
|
"Error: /proc must be mounted\n" \
|
||||||
|
@@ -21,8 +21,8 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <utmp.h>
|
#include <utmp.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include "proc/whattime.h"
|
#include "whattime.h"
|
||||||
#include "proc/sysinfo.h"
|
#include "sysinfo.h"
|
||||||
|
|
||||||
static char buf[128];
|
static char buf[128];
|
||||||
double av[3];
|
double av[3];
|
||||||
|
Reference in New Issue
Block a user