|
|
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: char p_nigel [16]; ! 20: } proc_t; ! 21: ! 22: ! 23: extern proc_t _dos_proc_; ! 24: ! 25: ! 26: #define CURRENT_PROCESS() ((volatile proc_t *) & _dos_proc_) ! 27: ! 28: ! 29: ! 30: typedef struct { ! 31: char u_nigel [16]; ! 32: } uarea_t; ! 33: ! 34: ! 35: extern uarea_t _dos_uarea_; ! 36: ! 37: ! 38: #define U_AREA() (& _dos_uarea_) ! 39: ! 40: ! 41: #endif /* ! defined (__SYS_DOSPROC_H__) */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.