Deleted Added
full compact
chat.c (32017) chat.c (32663)
1/*
2 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
3 *
4 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
5 *
6 * Most of codes are derived from chat.c by Karl Fox (karl@MorningStar.Com).
7 *
8 * Chat -- a program for automatic session establishment (i.e. dial

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

13 * Please send all bug reports, requests for information, etc. to:
14 *
15 * Karl Fox <karl@MorningStar.Com>
16 * Morning Star Technologies, Inc.
17 * 1760 Zollinger Road
18 * Columbus, OH 43221
19 * (614)451-1883
20 *
1/*
2 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
3 *
4 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
5 *
6 * Most of codes are derived from chat.c by Karl Fox (karl@MorningStar.Com).
7 *
8 * Chat -- a program for automatic session establishment (i.e. dial

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

13 * Please send all bug reports, requests for information, etc. to:
14 *
15 * Karl Fox <karl@MorningStar.Com>
16 * Morning Star Technologies, Inc.
17 * 1760 Zollinger Road
18 * Columbus, OH 43221
19 * (614)451-1883
20 *
21 * $Id: chat.c,v 1.42 1997/12/24 09:28:54 brian Exp $
21 * $Id: chat.c,v 1.43 1997/12/27 07:22:11 brian Exp $
22 *
23 * TODO:
24 * o Support more UUCP compatible control sequences.
25 * o Dialing shoud not block monitor process.
26 * o Reading modem by select should be unified into main.c
27 */
28#include <sys/param.h>
29#include <netinet/in.h>
30
31#include <ctype.h>
32#include <errno.h>
33#include <fcntl.h>
34#include <setjmp.h>
35#include <signal.h>
36#include <stdio.h>
37#include <stdlib.h>
38#include <string.h>
22 *
23 * TODO:
24 * o Support more UUCP compatible control sequences.
25 * o Dialing shoud not block monitor process.
26 * o Reading modem by select should be unified into main.c
27 */
28#include <sys/param.h>
29#include <netinet/in.h>
30
31#include <ctype.h>
32#include <errno.h>
33#include <fcntl.h>
34#include <setjmp.h>
35#include <signal.h>
36#include <stdio.h>
37#include <stdlib.h>
38#include <string.h>
39#include <sys/socket.h>
40#include <sys/time.h>
39#include <sys/time.h>
41#include <sys/uio.h>
42#include <sys/wait.h>
43#include <termios.h>
44#include <unistd.h>
45
46#include "command.h"
47#include "mbuf.h"
48#include "log.h"
49#include "defs.h"
50#include "timer.h"
51#include "loadalias.h"
52#include "vars.h"
53#include "chat.h"
40#include <sys/wait.h>
41#include <termios.h>
42#include <unistd.h>
43
44#include "command.h"
45#include "mbuf.h"
46#include "log.h"
47#include "defs.h"
48#include "timer.h"
49#include "loadalias.h"
50#include "vars.h"
51#include "chat.h"
54#include "sig.h"
55#include "modem.h"
56
57#ifndef isblank
58#define isblank(c) ((c) == '\t' || (c) == ' ')
59#endif
60
61
62#define IBSIZE LINE_LEN

--- 619 unchanged lines hidden ---
52#include "modem.h"
53
54#ifndef isblank
55#define isblank(c) ((c) == '\t' || (c) == ' ')
56#endif
57
58
59#define IBSIZE LINE_LEN

--- 619 unchanged lines hidden ---