|
|
Power 6/32 Unix version 1.2b
/**************************************/
/* Temporary header file. Used */
/* to chase the infamous code key */
/* release problem. Should be */
/* removed after the problem is */
/* solved. */
/****************************************/
#ifdef CKEY_DEBUG
struct history_item {
unsigned rel:4; /* 1 = release, 0 = get key */
unsigned id:4; /* id # for traces */
unsigned keyno:8; /* code key number as process gets it*/
short procid:16; /* guilty (?) process id */
};
#define DEPTH 1024 /* depth of history */
#define GETK 0
#define RELK 1
#define REMEMBER(_a,_b,_c) { c_key_hist[c_key_inx].rel = (_b); \
c_key_hist[c_key_inx].id = (_a); \
c_key_hist[c_key_inx].keyno = (_c); \
c_key_hist[c_key_inx].procid = \
u.u_procp->p_pid; \
c_key_inx = (c_key_inx+1) % DEPTH; \
}
struct history_item c_key_hist[DEPTH];
long c_key_inx; /* Starts from 0 */
#else
#define REMEMBER(_a,_b,_c)
#endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.