Print this page
remove support for non-ANSI compilation
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/head/dial.h
+++ new/usr/src/head/dial.h
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License, Version 1.0 only
6 6 * (the "License"). You may not use this file except in compliance
7 7 * with the License.
8 8 *
9 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 10 * or http://www.opensolaris.org/os/licensing.
11 11 * See the License for the specific language governing permissions
↓ open down ↓ |
11 lines elided |
↑ open up ↑ |
12 12 * and limitations under the License.
13 13 *
14 14 * When distributing Covered Code, include this CDDL HEADER in each
15 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 16 * If applicable, add the following below this CDDL HEADER, with the
17 17 * fields enclosed by brackets "[]" replaced with your own identifying
18 18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 19 *
20 20 * CDDL HEADER END
21 21 */
22 +/*
23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
24 + */
22 25 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
23 26 /* All Rights Reserved */
24 27
25 -
26 28 #ifndef _DIAL_H
27 29 #define _DIAL_H
28 30
29 -#pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.2 */
30 -
31 31 #ifndef IUCLC
32 32 #include <sys/termio.h>
33 33 #endif
34 34
35 35 #ifdef __cplusplus
36 36 extern "C" {
37 37 #endif
38 38
39 39 /* uucico routines need these */
40 40 #define DIAL
41 41
42 42 /* The following are no longer used by dial() and may be out of date. */
43 43 /* They are included here only to maintain source compatibility. */
44 44 #define STANDALONE
45 45 #define DEVDIR "/dev/" /* device path */
46 46 #define LOCK "/usr/spool/uucp/LCK.." /* lock file semaphore */
47 47 #define DVC_LEN 80 /* max NO of chars in TTY-device path name */
48 48 /* End of unused definitions */
49 49
50 50 /* error mnemonics */
51 51
52 52 #define TRUE 1
53 53 #define FALSE 0
54 54 #define INTRPT (-1) /* interrupt occured */
55 55 #define D_HUNG (-2) /* dialer hung (no return from write) */
56 56 #define NO_ANS (-3) /* no answer (caller script failed) */
57 57 #define ILL_BD (-4) /* illegal baud-rate */
58 58 #define A_PROB (-5) /* acu problem (open() failure) */
59 59 #define L_PROB (-6) /* line problem (open() failure) */
60 60 #define NO_Ldv (-7) /* can't open Devices file */
61 61 #define DV_NT_A (-8) /* requested device not available */
62 62 #define DV_NT_K (-9) /* requested device not known */
63 63 #define NO_BD_A (-10) /* no device available at requested baud */
64 64 #define NO_BD_K (-11) /* no device known at requested baud */
65 65 #define DV_NT_E (-12) /* requested speed does not match */
66 66 #define BAD_SYS (-13) /* system not in Systems file */
67 67
68 68 typedef struct {
↓ open down ↓ |
28 lines elided |
↑ open up ↑ |
69 69 struct termio *attr; /* ptr to termio attribute struct */
70 70 int baud; /* unused */
71 71 int speed; /* 212A modem: low=300, high=1200 */
72 72 char *line; /* device name for out-going line */
73 73 char *telno; /* ptr to tel-no/system name string */
74 74 int modem; /* unused */
75 75 char *device; /* unused */
76 76 int dev_len; /* unused */
77 77 } CALL;
78 78
79 -#if defined(__STDC__)
80 -
81 79 extern int dial(CALL);
82 80 extern void undial(int);
83 81
84 -#else
85 -
86 -extern int dial();
87 -extern void undial();
88 -
89 -#endif
90 -
91 82 #ifdef __cplusplus
92 83 }
93 84 #endif
94 85
95 86 #endif /* _DIAL_H */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX