include/devname.h: add missing header

The devname.h requires readproc.h header which has dev_t. Unless
header is included the includes in program files must be in
correct order. I also added FIXME item to remind that for uid &
gid value int not correct data type but uid_t or gid_t from
pwd.h.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2011-06-05 13:23:15 +02:00
parent a08e0a6ef2
commit 922d218e1e
2 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@
#define PROC_DEVNAME_H #define PROC_DEVNAME_H
#include "procps.h" #include "procps.h"
#include "readproc.h"
EXTERN_C_BEGIN EXTERN_C_BEGIN

View File

@ -141,6 +141,7 @@ typedef struct proc_t {
nlwp, // stat,status number of threads, or 0 if no clue nlwp, // stat,status number of threads, or 0 if no clue
tgid, // (special) thread group ID, the POSIX PID (see also: tid) tgid, // (special) thread group ID, the POSIX PID (see also: tid)
tty, // stat full device number of controlling terminal tty, // stat full device number of controlling terminal
/* FIXME: int uids & gids should be uid_t or gid_t from pwd.h */
euid, egid, // stat(),status effective euid, egid, // stat(),status effective
ruid, rgid, // status real ruid, rgid, // status real
suid, sgid, // status saved suid, sgid, // status saved