summaryrefslogtreecommitdiff
path: root/comms/conserver/files/patch-ad
blob: 248d3f978b8ba10d57140b470154d8b6fc3de528 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
--- ./conserver/consent.c	Sat Nov 22 20:21:46 1997
+++ ./conserver/consent.c	Sat Aug 23 18:05:11 1997
@@ -197,7 +197,7 @@
 	 */
 	termp.c_iflag = IXON|IXOFF|BRKINT;
 	termp.c_oflag = 0;
-	termp.c_cflag = CREAD;
+	termp.c_cflag = CREAD | (termp.c_cflag & (CLOCAL|CRTSCTS));
 	termp.c_cflag |= pCE->pparity->iset;
 	termp.c_lflag = 0;
 	/*
@@ -206,5 +206,5 @@
 	 * Don't bother with the control characters as they are not used
 	 */
-	termp.c_cc[VMIN] = 128;
+	termp.c_cc[VMIN] = 1;
 	termp.c_cc[VTIME] = 1;
 
@@ -425,13 +425,13 @@
 
 #if USE_TERMIOS
-	if (0 != ioctl(0, TCGETS, & n_tio)) {
+	if (0 != tcgetattr(0, & n_tio)) {
 		fprintf(stderr, "%s: iotcl: getsw: %s\n", progname, strerror(errno));
 		exit(1);
 	}
-	n_tio.c_iflag &= ~(IGNCR|IUCLC);
+
+	n_tio.c_iflag &= ~(IGNCR);
 	n_tio.c_iflag |= ICRNL|IXON|IXANY;
-	n_tio.c_oflag &= ~(OLCUC|ONOCR|ONLRET|OFILL|NLDLY|CRDLY|TABDLY|BSDLY);
 	n_tio.c_oflag |= OPOST|ONLCR;
-	n_tio.c_lflag &= ~(XCASE|NOFLSH|ECHOK|ECHONL);
+	n_tio.c_lflag &= ~(NOFLSH|ECHOK|ECHONL);
 	n_tio.c_lflag |= ISIG|ICANON|ECHO;
 	n_tio.c_cc[VEOF] = '\004';
@@ -445,5 +445,5 @@
 	n_tio.c_cc[VSTOP] = '\023';
 	n_tio.c_cc[VSUSP] = '\032';
-	if (0 != ioctl(0, TCSETS, & n_tio)) {
+	if (0 != tcsetattr(0, TCSANOW, & n_tio)) {
 		fprintf(stderr, "%s: getarrt: %s\n", progname, strerror(errno));
 		exit(1);