libww
libww
WWitch compatibility library for the Wonderful toolchain
Loading...
Searching...
No Matches
process.h
Go to the documentation of this file.
1
#include <
sys/types.h
>
2
#include <
sys/indirect.h
>
3
4
#ifndef __LIBWW_SYS_PROCESS_H__
5
#define __LIBWW_SYS_PROCESS_H__
6
7
/* Begin auto-generated section */
8
9
#define E_PROC_SUCCESS 0
10
#define E_PROC_CANTLOAD 0xFFFF
11
12
#define S_PCB_NOT_USED 0
13
#define S_PCB_LOAD 1
14
#define S_PCB_RUN 2
15
#define S_PCB_SUSPEND 3
16
17
#define MAXPROCESSES 3
18
/* End auto-generated section */
19
23
typedef
struct
{
34
char
_id
[4];
35
36
uint8_t
todo_1
[8];
37
41
IlibIL
__far*
_ilib
;
42
46
ProcIL
__far*
_proc
;
47
51
fent_t
__far*
_cwfs
;
52
56
char
_currentdir
[64];
57
61
char
**
_argv
;
62
66
void
__far*
_resource
;
67
71
void
*
_heap
;
72
}
ProcContext
;
73
74
#if __STDC_VERSION__ > 201112L
75
_Static_assert
(
sizeof
(
ProcContext
) == 96,
"Invalid ProcContext size!"
);
76
#endif
77
81
#define _pc ((ProcContext*) 0x0000)
82
86
#define ilibIL (_pc->_ilib)
87
91
#define procIL (_pc->_proc)
92
96
#define cwfs (_pc->_cwfs)
97
101
#define currentdir (_pc->_currentdir)
102
103
#endif
/* __LIBWW_SYS_PROCESS_H__ */
indirect.h
ProcIL
struct _ProcIL ProcIL
IlibIL
Definition
indirect.h:37
ProcContext
Definition
process.h:23
ProcContext::_id
char _id[4]
Definition
process.h:34
ProcContext::todo_1
uint8_t todo_1[8]
Definition
process.h:36
ProcContext::_proc
ProcIL __far * _proc
Definition
process.h:46
ProcContext::_currentdir
char _currentdir[64]
Definition
process.h:56
ProcContext::_ilib
IlibIL __far * _ilib
Definition
process.h:41
ProcContext::_cwfs
fent_t __far * _cwfs
Definition
process.h:51
ProcContext::_resource
void __far * _resource
Definition
process.h:66
ProcContext::_heap
void * _heap
Definition
process.h:71
ProcContext::_argv
char ** _argv
Definition
process.h:61
fent_t
Definition
filesys.h:67
types.h
include
sys
process.h
Generated by
1.14.0