Initial import of the CDE 2.1.30 sources from the Open Group.
This commit is contained in:
36
cde/programs/dtprintinfo/util/Process.h
Normal file
36
cde/programs/dtprintinfo/util/Process.h
Normal file
@@ -0,0 +1,36 @@
|
||||
/* $XConsortium: Process.h /main/4 1996/10/01 16:10:06 drk $ */
|
||||
/* *
|
||||
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
|
||||
* (c) Copyright 1993, 1994 International Business Machines Corp. *
|
||||
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
|
||||
* (c) Copyright 1993, 1994 Novell, Inc. *
|
||||
*/
|
||||
|
||||
#ifndef PROCESS_H
|
||||
#define PROCESS_H
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
class Process {
|
||||
|
||||
int NumProcs;
|
||||
pid_t last_pid;
|
||||
char **pprocs;
|
||||
char *procs;
|
||||
char *last_proc;
|
||||
char *GetByPid(pid_t);
|
||||
uid_t uid;
|
||||
pid_t pid;
|
||||
pid_t ppid;
|
||||
|
||||
public:
|
||||
|
||||
Process();
|
||||
~Process();
|
||||
|
||||
pid_t Parent(pid_t pid);
|
||||
uid_t UID(pid_t pid);
|
||||
char *Command(pid_t pid);
|
||||
};
|
||||
|
||||
#endif // PROCESS_H
|
||||
Reference in New Issue
Block a user