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
23typedef 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;
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__ */
struct _ProcIL ProcIL
char _id[4]
Definition process.h:34
uint8_t todo_1[8]
Definition process.h:36
ProcIL __far * _proc
Definition process.h:46
char _currentdir[64]
Definition process.h:56
IlibIL __far * _ilib
Definition process.h:41
fent_t __far * _cwfs
Definition process.h:51
void __far * _resource
Definition process.h:66
void * _heap
Definition process.h:71
char ** _argv
Definition process.h:61