Research V7 development
[unix-history] / usr / sys / h / text.h
CommitLineData
f09a3c06
KT
1/*
2 * Text structure.
3 * One allocated per pure
4 * procedure on swap device.
5 * Manipulated by text.c
6 */
7struct text
8{
9 short x_daddr; /* disk address of segment (relative to swplo) */
10 short x_caddr; /* core address, if loaded */
11 short x_size; /* size (clicks) */
12 struct inode *x_iptr; /* inode of prototype */
13 char x_count; /* reference count */
14 char x_ccount; /* number of loaded references */
15 char x_flag; /* traced, written flags */
16};
17
18extern struct text text[];
19
20#define XTRC 01 /* Text may be written, exclusive use */
21#define XWRIT 02 /* Text written into, must swap out */
22#define XLOAD 04 /* Currently being read from file */
23#define XLOCK 010 /* Being swapped in or out */
24#define XWANT 020 /* Wanted for swapping */