|
|
1.1 root 1: #ifndef __SYS_DOSPROC_H__
2: #define __SYS_DOSPROC_H__
3:
4: /*
5: * Definitions for MS-DOS to emulate the Coherent process table and U area for
6: * STREAMS testing.
7: */
8:
9: typedef enum {
10: PS_RUN,
11: PS_SIGNALLED,
12: PS_SLEEP,
13: PS_SLEEP_NO_SIG
14: } pstate_t;
15:
16:
17: typedef struct {
18: pstate_t p_state;
19: struct {
20: char _space [16];
21: } p_ddi_space;
22: } proc_t;
23:
24:
25: extern proc_t _dos_proc_;
26:
27:
28: #define CURRENT_PROCESS() ((volatile proc_t *) & _dos_proc_)
29:
30:
31:
32: typedef struct {
33: char u_nigel [16];
34: } uarea_t;
35:
36:
37: extern uarea_t _dos_uarea_;
38:
39:
40: #define U_AREA() (& _dos_uarea_)
41:
42:
43: #endif /* ! defined (__SYS_DOSPROC_H__) */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.