Fix the hton() declaration to be an ANSI type
[unix-history] / usr / src / usr.bin / telnet / fdset.h
CommitLineData
897ce52e
KB
1/*
2 * Copyright (c) 1988 Regents of the University of California.
3 * All rights reserved.
4 *
cb956e54 5 * %sccs.include.redist.c%
897ce52e 6 *
18773698 7 * @(#)fdset.h 5.1 (Berkeley) %G%
897ce52e
KB
8 */
9
b9148b97
GM
10/*
11 * The following is defined just in case someone should want to run
12 * this telnet on a 4.2 system.
13 *
14 */
15
16#ifndef FD_SETSIZE
17
18#define FD_SET(n, p) ((p)->fds_bits[0] |= (1<<(n)))
19#define FD_CLR(n, p) ((p)->fds_bits[0] &= ~(1<<(n)))
20#define FD_ISSET(n, p) ((p)->fds_bits[0] & (1<<(n)))
21#define FD_ZERO(p) ((p)->fds_bits[0] = 0)
22
23#endif