Deleted Added
full compact
hayes.c (88276) hayes.c (113163)
1/* $OpenBSD: hayes.c,v 1.8 2001/10/24 18:38:58 millert Exp $ */
2/* $NetBSD: hayes.c,v 1.6 1997/02/11 09:24:17 mrg Exp $ */
3
4/*
5 * Copyright (c) 1983, 1993
6 * The Regents of the University of California. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 21 unchanged lines hidden (view full) ---

30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 */
36
37#include <sys/cdefs.h>
1/* $OpenBSD: hayes.c,v 1.8 2001/10/24 18:38:58 millert Exp $ */
2/* $NetBSD: hayes.c,v 1.6 1997/02/11 09:24:17 mrg Exp $ */
3
4/*
5 * Copyright (c) 1983, 1993
6 * The Regents of the University of California. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 21 unchanged lines hidden (view full) ---

30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 */
36
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: head/usr.bin/tip/libacu/hayes.c 88276 2001-12-20 14:25:46Z markm $");
38__FBSDID("$FreeBSD: head/usr.bin/tip/libacu/hayes.c 113163 2003-04-06 08:30:25Z imp $");
39
40#ifndef lint
41#if 0
42static char sccsid[] = "@(#)hayes.c 8.1 (Berkeley) 6/6/93";
43static char rcsid[] = "$OpenBSD: hayes.c,v 1.8 2001/10/24 18:38:58 millert Exp $";
44#endif
45#endif /* not lint */
46

--- 22 unchanged lines hidden (view full) ---

69 */
70#include "tip.h"
71
72#include <termios.h>
73#include <sys/ioctl.h>
74
75#define min(a,b) ((a < b) ? a : b)
76
39
40#ifndef lint
41#if 0
42static char sccsid[] = "@(#)hayes.c 8.1 (Berkeley) 6/6/93";
43static char rcsid[] = "$OpenBSD: hayes.c,v 1.8 2001/10/24 18:38:58 millert Exp $";
44#endif
45#endif /* not lint */
46

--- 22 unchanged lines hidden (view full) ---

69 */
70#include "tip.h"
71
72#include <termios.h>
73#include <sys/ioctl.h>
74
75#define min(a,b) ((a < b) ? a : b)
76
77static void error_rep(char c);
78static void goodbye(void);
77static void sigALRM();
78static int timeout = 0;
79static jmp_buf timeoutbuf;
80static char gobble();
81#define DUMBUFLEN 40
82static char dumbuf[DUMBUFLEN];
83
84#define DIALING 1

--- 162 unchanged lines hidden (view full) ---

247 }
248 printf("\n\r");
249 return;
250}
251
252/*
253 * set modem back to normal verbose status codes.
254 */
79static void sigALRM();
80static int timeout = 0;
81static jmp_buf timeoutbuf;
82static char gobble();
83#define DUMBUFLEN 40
84static char dumbuf[DUMBUFLEN];
85
86#define DIALING 1

--- 162 unchanged lines hidden (view full) ---

249 }
250 printf("\n\r");
251 return;
252}
253
254/*
255 * set modem back to normal verbose status codes.
256 */
255void
256goodbye()
257static void
258goodbye(void)
257{
258 int len;
259 char c;
260
261 tcflush(FD, TCIOFLUSH);
262 if (hay_sync()) {
263 sleep(1);
264#ifndef DEBUG

--- 60 unchanged lines hidden ---
259{
260 int len;
261 char c;
262
263 tcflush(FD, TCIOFLUSH);
264 if (hay_sync()) {
265 sleep(1);
266#ifndef DEBUG

--- 60 unchanged lines hidden ---