summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b9148b9)
SCCS-vsn: usr.bin/telnet/sys_bsd.c 1.6
SCCS-vsn: usr.bin/telnet/tn3270.c 1.5
SCCS-vsn: usr.bin/telnet/telnet.c 5.24
SCCS-vsn: usr.bin/telnet/fdset.h 1.2
#include "defines.h"
#include "externs.h"
#include "types.h"
#include "defines.h"
#include "externs.h"
#include "types.h"
-#ifndef FD_SETSIZE
-/*
- * The following is defined just in case someone should want to run
- * this telnet on a 4.2 system.
- *
- */
-
-#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)
-
-#endif
-
int
tout, /* Output file descriptor */
tin, /* Input file descriptor */
int
tout, /* Output file descriptor */
tin, /* Input file descriptor */
if (c == '\0') {
break; /* Ignore \0 after CR */
} else if (c == '\n') {
if (c == '\0') {
break; /* Ignore \0 after CR */
} else if (c == '\n') {
- if (hisopts[TELOPT_ECHO] && !crmod) {
+ if ((!hisopts[TELOPT_ECHO]) && !crmod) {