File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / sys / h / temporary.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:24:19 2019 UTC (7 years ago) by root
Branches: bsd, MAIN
CVS tags: v12b, v121, HEAD
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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.