OSAPI  0.29
Open System API
proc_type_id.h
1 // *****************************************************************************************
2 //
3 // File description:
4 //
5 // Author: Joao Costa
6 // Purpose: Proc ID declarations
7 //
8 // *****************************************************************************************
9 
10 #ifndef OSAPI_PROC_TYPE_ID_H_
11 #define OSAPI_PROC_TYPE_ID_H_
12 
13 
14 // *****************************************************************************************
15 //
16 // Section: Import headers
17 //
18 // *****************************************************************************************
19 
20 // Force baseline before system headers
21 #include "general/general_baseline.h"
22 
23 // System includes
24 #include <time.h>
25 
26 // Generic OSAPI includes
27 #include "general/general.h"
28 
29 // Import OS specific definitions
30 #include "proc/proc_platform.h"
31 #include "proc/proc_state.h"
32 
33 
42 
43 // *****************************************************************************************
44 //
45 // Section: Define process related types
46 //
47 // *****************************************************************************************
48 
51 {
52  t_pid pid;
53  char name[ NAME_MAX + 1 ];
54  t_pid ppid;
55  t_pid pgrp;
56  t_pid session;
57  int tpgid;
58 };
59 
61 typedef struct osapi_proc_id_S t_proc_id;
62 
63 
66 
67 
68 #endif /* OSAPI_PROC_TYPE_ID_H_ */
osapi_proc_id_S::tpgid
int tpgid
The ID of the foreground process group of the controlling terminal of the process.
Definition: proc_type_id.h:57
osapi_proc_id_S::pgrp
t_pid pgrp
Process Group ID.
Definition: proc_type_id.h:55
osapi_proc_id_S
The process identity structure.
Definition: proc_type_id.h:50
osapi_proc_id_S::ppid
t_pid ppid
Parent PID.
Definition: proc_type_id.h:54
osapi_proc_id_S::name
char name[NAME_MAX+1]
Process name.
Definition: proc_type_id.h:53
osapi_proc_id_S::session
t_pid session
Session ID.
Definition: proc_type_id.h:56
osapi_proc_id_S::pid
t_pid pid
Process ID.
Definition: proc_type_id.h:52