|
|
1.1 root 1: /*
2: * Character list.
3: */
4: #ifndef __SYS_CLIST_H__
5: #define __SYS_CLIST_H__
6:
7: #include <common/feature.h>
8: #if _I386
9: #include <kernel/reg.h>
10: #else
11: #include <kernel/machine.h>
12: #endif
13: #include <sys/types.h>
14:
15: #if ! __KERNEL__
16: # error You must be compiling the kernel to use this header
17: #endif
18:
19: /*
20: * NIGEL: Whatever a "cmap_t" is, the definition belongs here, not in
21: * <sys/types.h>
22: */
23:
24: typedef unsigned int cmap_t;
25:
26:
27: /*
28: * Character list structure.
29: */
30: typedef struct clist {
31: cmap_t cl_fp; /* Pointer to next */
32: char cl_ch[NCPCL]; /* Characters */
33: } CLIST;
34:
35: /*
36: * Character queue structure.
37: */
38: typedef struct cqueue {
39: int cq_cc; /* Character count */
40: cmap_t cq_ip; /* Input pointer */
41: int cq_ix; /* Input index */
42: cmap_t cq_op; /* Output pointer */
43: int cq_ox; /* Output index */
44: } CQUEUE;
45:
46: #if __KERNEL__
47:
48: extern int cltwant; /* A wanted flag */
49: extern cmap_t cltfree; /* Character free list */
50:
51: #endif /* __KERNEL__ */
52:
53: #endif /* ! defined (__SYS_CLIST_H__) */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.