MentOS  0.8.0
The Mentoring Operating System
types.h
Go to the documentation of this file.
1 
6 #pragma once
7 
9 typedef signed int pid_t;
10 
12 typedef unsigned int user_t;
13 
15 typedef unsigned int status_t;
16 
18 typedef int key_t;
19 
21 typedef enum eflags_list {
23  EFLAG_CF = (1 << 0),
24 
26  EFLAG_PF = (1 << 2),
27 
29  EFLAG_AF = (1 << 4),
30 
32  EFLAG_ZF = (1 << 6),
33 
35  EFLAG_SF = (1 << 7),
36 
38  EFLAG_TF = (1 << 8),
39 
41  EFLAG_IF = (1 << 9),
42 
44  EFLAG_DF = (1 << 10),
45 
47  EFLAG_OF = (1 << 11),
48 
50  EFLAG_NT = (1 << 14),
51 
53  EFLAG_RF = (1 << 16),
54 
56  EFLAG_VM = (1 << 17),
57 
59  EFLAG_AC = (1 << 18),
60 
62  EFLAG_VIF = (1 << 19),
63 
65  EFLAG_VIP = (1 << 20),
66 
68  EFLAG_ID = (1 << 21),
eflags_list
Defines the list of flags of a process.
Definition: types.h:21
@ EFLAG_DF
Direction flag.
Definition: types.h:44
@ EFLAG_AF
Auxiliary carry flag.
Definition: types.h:29
@ EFLAG_NT
Nested task flag.
Definition: types.h:50
@ EFLAG_VIF
Virutal interrupt flag.
Definition: types.h:62
@ EFLAG_CF
Carry flag.
Definition: types.h:23
@ EFLAG_IF
Interrupt enable flag.
Definition: types.h:41
@ EFLAG_ID
ID flag.
Definition: types.h:68
@ EFLAG_SF
Sign flag.
Definition: types.h:35
@ EFLAG_ZF
Zero flag.
Definition: types.h:32
@ EFLAG_PF
Parity flag.
Definition: types.h:26
@ EFLAG_VM
Virtual 8086 mode flag.
Definition: types.h:56
@ EFLAG_OF
Overflow flag.
Definition: types.h:47
@ EFLAG_TF
Trap flag.
Definition: types.h:38
@ EFLAG_AC
Alignment check flag (486+).
Definition: types.h:59
@ EFLAG_RF
Resume flag.
Definition: types.h:53
@ EFLAG_VIP
Virtual interrupt pending flag.
Definition: types.h:65
unsigned int status_t
The type of process status.
Definition: types.h:15
unsigned int user_t
The type of process user variable.
Definition: types.h:12
signed int pid_t
The type of process id.
Definition: types.h:9
int key_t
Type for system keys.
Definition: types.h:18