* Copyright (c) 1989 The Regents of the University of California.
* %sccs.include.redist.c%
* @(#)defs.h 5.7 (Berkeley) %G%
#include <netinet/in_systm.h>
typedef unsigned char cc_t
;
#if defined(TCSIG) || defined(TIOCPKT_IOCTL)
typedef struct fd_set
{ int fds_bits
[1]; } fd_set
;
#define FD_SET(n, p) ((p)->fds_bits[0] |= (1<<(n)))
#define FD_CLR(n, p) ((p)->fds_bits[0] &= ~(1<<(n)))
#define FD_ISSET(n, p) ((p)->fds_bits[0] & (1<<(n)))
#define FD_ZERO(p) ((p)->fds_bits[0] = 0)
#define OPT_NO 0 /* won't do this option */
#define OPT_YES 1 /* will do this option */
#define OPT_YES_BUT_ALWAYS_LOOK 2
#define OPT_NO_BUT_ALWAYS_LOOK 3
* I/O data buffers defines
#define NIACCUM(c) { *netip++ = c; \
/* clock manipulations */
#define settimer(x) (clocks.x = ++clocks.system)
#define sequenceIs(x,y) (clocks.x < clocks.y)
* Linemode support states, in decreasing order of importance
#define REAL_LINEMODE 0x02
#define KLUDGE_LINEMODE 0x01
* Structures of information for each special character function.
unsigned char flag
; /* the flags for this function */
cc_t val
; /* the value of the special character */
slcent defset
; /* the default settings */
slcent current
; /* the current settings */
cc_t
*sptr
; /* a pointer to the char in */
/* system data structures */