Deleted Added
full compact
df.c (88276) df.c (113163)
1/* $OpenBSD: df.c,v 1.5 2001/10/24 18:38:58 millert Exp $ */
2/* $NetBSD: df.c,v 1.4 1995/10/29 00:49:51 pk 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: df.c,v 1.5 2001/10/24 18:38:58 millert Exp $ */
2/* $NetBSD: df.c,v 1.4 1995/10/29 00:49:51 pk 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/df.c 88276 2001-12-20 14:25:46Z markm $");
38__FBSDID("$FreeBSD: head/usr.bin/tip/libacu/df.c 113163 2003-04-06 08:30:25Z imp $");
39
40#ifndef lint
41#if 0
42static char sccsid[] = "@(#)df.c 8.1 (Berkeley) 6/6/93";
43static char rcsid[] = "$OpenBSD: df.c,v 1.5 2001/10/24 18:38:58 millert Exp $";
44#endif
45#endif /* not lint */
46
47/*
48 * Dial the DF02-AC or DF03-AC
49 */
50
51#include "tip.h"
52
53static jmp_buf Sjbuf;
54static void timeout();
39
40#ifndef lint
41#if 0
42static char sccsid[] = "@(#)df.c 8.1 (Berkeley) 6/6/93";
43static char rcsid[] = "$OpenBSD: df.c,v 1.5 2001/10/24 18:38:58 millert Exp $";
44#endif
45#endif /* not lint */
46
47/*
48 * Dial the DF02-AC or DF03-AC
49 */
50
51#include "tip.h"
52
53static jmp_buf Sjbuf;
54static void timeout();
55static void df_disconnect(void);
55
56int
57df02_dialer(num, acu)
58 char *num, *acu;
59{
60
61 return (df_dialer(num, acu, 0));
62}

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

118 cfsetospeed(&cntrl, speed);
119 cfsetispeed(&cntrl, speed);
120 tcsetattr(f, TCSAFLUSH, &cntrl);
121 }
122#endif
123 return (c == 'A');
124}
125
56
57int
58df02_dialer(num, acu)
59 char *num, *acu;
60{
61
62 return (df_dialer(num, acu, 0));
63}

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

119 cfsetospeed(&cntrl, speed);
120 cfsetispeed(&cntrl, speed);
121 tcsetattr(f, TCSAFLUSH, &cntrl);
122 }
123#endif
124 return (c == 'A');
125}
126
126void
127df_disconnect()
127static void
128df_disconnect(void)
128{
129 write(FD, "\001", 1);
130 sleep(1);
131 tcflush(FD, TCIOFLUSH);
132}
133
134
135void

--- 13 unchanged lines hidden ---
129{
130 write(FD, "\001", 1);
131 sleep(1);
132 tcflush(FD, TCIOFLUSH);
133}
134
135
136void

--- 13 unchanged lines hidden ---