File:  [MW Coherent from dump] / coherent / f / usr / include / sys / clist.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:40 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/*
 * Character list.
 */
#ifndef	 __SYS_CLIST_H__
#define	 __SYS_CLIST_H__

#include <common/feature.h>
#if	_I386
#include <kernel/reg.h>
#else
#include <kernel/machine.h>
#endif
#include <sys/types.h>

#if	! __KERNEL__
# error	You must be compiling the kernel to use this header
#endif

/*
 * NIGEL: Whatever a "cmap_t" is, the definition belongs here, not in
 * <sys/types.h>
 */

typedef	unsigned int	cmap_t;


/*
 * Character list structure.
 */
typedef struct clist {
	cmap_t	cl_fp;			/* Pointer to next */
	char	cl_ch[NCPCL];		/* Characters */
} CLIST;

/*
 * Character queue structure.
 */
typedef struct cqueue {
	int	cq_cc;			/* Character count */
	cmap_t	cq_ip;			/* Input pointer */
	int	cq_ix;			/* Input index */
	cmap_t	cq_op;			/* Output pointer */
	int	cq_ox;			/* Output index */
} CQUEUE;

#if	__KERNEL__

extern	int	cltwant;		/* A wanted flag */
extern	cmap_t	cltfree;		/* Character free list */

#endif	/* __KERNEL__ */

#endif	/* ! defined (__SYS_CLIST_H__) */

unix.superglobalmegacorp.com

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