View | Details | Raw Unified | Return to bug 193525
Collapse All | Expand All

(-)tip/libacu/hayes.c (-1 / +10 lines)
Lines 146-155 Link Here
146
void
146
void
147
hay_disconnect(void)
147
hay_disconnect(void)
148
{
148
{
149
	struct termios cntrl;
150
149
	/* first hang up the modem*/
151
	/* first hang up the modem*/
150
#ifdef DEBUG
152
#ifdef DEBUG
151
	printf("\rdisconnecting modem....\n\r");
153
	printf("\rdisconnecting modem....\n\r");
152
#endif
154
#endif
155
	tcgetattr(FD, &cntrl);
156
	cntrl.c_cflag |= CLOCAL;
157
	tcsetattr(FD, TCSAFLUSH, &cntrl);
153
	ioctl(FD, TIOCCDTR, 0);
158
	ioctl(FD, TIOCCDTR, 0);
154
	sleep(1);
159
	sleep(1);
155
	ioctl(FD, TIOCSDTR, 0);
160
	ioctl(FD, TIOCSDTR, 0);
Lines 195-201 Link Here
195
		alarm(0);
200
		alarm(0);
196
		c &= 0177;
201
		c &= 0177;
197
#ifdef DEBUG
202
#ifdef DEBUG
198
		printf("%c 0x%x ", c, c);
203
		printf("%c 0x%x\n", c, c);
199
#endif
204
#endif
200
		for (i = 0; i < strlen(match); i++)
205
		for (i = 0; i < strlen(match); i++)
201
			if (c == match[i])
206
			if (c == match[i])
Lines 252-258 Link Here
252
goodbye(void)
257
goodbye(void)
253
{
258
{
254
	int len;
259
	int len;
260
#ifdef DEBUG
261
	int rlen;
262
#else
255
	char c;
263
	char c;
264
#endif
256
265
257
	tcflush(FD, TCIOFLUSH);
266
	tcflush(FD, TCIOFLUSH);
258
	if (hay_sync()) {
267
	if (hay_sync()) {
(-)tip/tip/tip.c (-3 / +2 lines)
Lines 68-76 Link Here
68
	char *sys = NOSTR, sbuf[12], *p;
68
	char *sys = NOSTR, sbuf[12], *p;
69
	int i;
69
	int i;
70
70
71
	/* XXX preserve previous braindamaged behavior */
72
	setboolean(value(DC), TRUE);
73
74
	gid = getgid();
71
	gid = getgid();
75
	egid = getegid();
72
	egid = getegid();
76
	uid = getuid();
73
	uid = getuid();
Lines 552-557 Link Here
552
	cntrl.c_cflag |= CS8;
549
	cntrl.c_cflag |= CS8;
553
	if (boolean(value(DC)))
550
	if (boolean(value(DC)))
554
		cntrl.c_cflag |= CLOCAL;
551
		cntrl.c_cflag |= CLOCAL;
552
	else
553
		cntrl.c_cflag &= ~CLOCAL;
555
	if (boolean(value(HARDWAREFLOW)))
554
	if (boolean(value(HARDWAREFLOW)))
556
		cntrl.c_cflag |= CRTSCTS;
555
		cntrl.c_cflag |= CRTSCTS;
557
	cntrl.c_iflag &= ~(ISTRIP|ICRNL);
556
	cntrl.c_iflag &= ~(ISTRIP|ICRNL);

Return to bug 193525