Former-commit-id:133dc97f67
[formerlya02aeb236c
] [formerly9f19e3f712
] [formerly133dc97f67
[formerlya02aeb236c
] [formerly9f19e3f712
] [formerly06a8b51d6d
[formerly9f19e3f712
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]]] Former-commit-id:06a8b51d6d
Former-commit-id:9bb8decbcf
[formerly8e80217e59
] [formerly377dcd10b9
[formerly3360eb6c5f
]] Former-commit-id:377dcd10b9
Former-commit-id:e2ecdcfe33
40 lines
768 B
C++
40 lines
768 B
C++
// ******************************************************************
|
|
// +++ Procstruct.H: Interface to get linked list of process structures
|
|
//
|
|
//
|
|
// History
|
|
// 17-dec-04 S. Davison Initial
|
|
//
|
|
// --- **************************************************************
|
|
|
|
#ifndef _Proctstruct_H_
|
|
#define _Proctstruct_H_
|
|
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <ctype.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#include <unistd.h>
|
|
#include <dirent.h>
|
|
#include <stdio.h>
|
|
#include <pwd.h>
|
|
|
|
|
|
|
|
class Procstruct {
|
|
public:
|
|
Procstruct * next;
|
|
int pid;
|
|
int ppid;
|
|
char * cmd;
|
|
uid_t uid;
|
|
Procstruct (void);
|
|
~Procstruct (void);
|
|
static Procstruct * buildProcStructList (void);
|
|
};
|
|
|
|
static int isPid (char *);
|
|
|
|
#endif
|
|
|