|
|
1.1 root 1: /*
2: * $Log: /usr/src/cmd/include/RCS/dial.h,v $
3: * Revision 1.1 89/04/26 16:24:50 root
4: * Initial revision
5: *
6: */
7:
8: #ifndef __DIAL_H__
9: #define __DIAL_H__
10:
11: #include <termio.h>
12:
13: #define LDEVS "/usr/lib/uucp/L-devices"
14: #define DEVDIR "/dev/" /* device path */
15: #define LOCK "/usr/spool/uucp/LCK.." /* lock file semaphore */
16: #define DVC_LEN 30 /* max num of chars in TTY-device path name */
17:
18: /*
19: * Error mnemonics
20: */
21:
22: #define INTRPT (-1) /* Interrupt occured */
23: #define D_HUNG (-2) /* dialer hung (no return from write) */
24: #define NO_ANS (-3) /* no answer within 10 seconds */
25: #define ILL_BD (-4) /* illegal baud rate */
26: #define A_PROB (-5) /* acu problem (open() failure) */
27: #define L_PROB (-6) /* line problem (open() failure) */
28: #define NO_Ldv (-7) /* cannot open LDEVS file */
29: #define DV_NT_A (-8) /* requested device not available */
30: #define DV_NT_K (-9) /* requested device not known */
31: #define NO_BD_A (-10) /* no device available at requested baud */
32: #define NO_BD_K (-11) /* no device known at requested baud */
33:
34: typedef struct {
35: struct termio *attr; /* ptr to termio attribute struct */
36: int baud; /* transmission baud rate */
37: int speed; /* 212A modem: low=300, high=1200 */
38: char *line; /* device name for outgoing line */
39: char *telno; /* ptr to telephone num digits string */
40: int modem; /* allow modem control on direct lines */
41: } CALL;
42:
43: extern int dial();
44: extern void undial();
45:
46: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.