summaryrefslogtreecommitdiff
path: root/static/v10/man3/dialout.3
blob: 5291b7245feb06c9015fbabb10e159791d522b90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
.TH DIALOUT 3
.CT 2 comm_mach
.SH NAME
dialout \(mi place call on ACU
.SH SYNOPSIS
.B int dialout(telno, class)
.br
.B char *telno, *class;
.SH DESCRIPTION
.I Dialout
places a data call via an automatic calling unit directly
attached to the calling computer.
To use an ACU on Datakit see the example in
.IR ipc (3).
.PP
.I Dialout
searches for an ACU of the appropriate service class
and places a data call on the associated line, using the given telephone
number.
If successful, it returns an open file descriptor for the line.
The file is in raw mode, and has exclusive-use and hangup-on-close modes set.
It returns \-1
if all ACUs of the given class are busy,
\-3
if carrier
could not be set, and
\-9
if the service class is unidentifiable.
.PP
The routine consults a data file
.F /etc/aculist
that consists of lines containing six blank- or tab-separated fields.
.TP "\w'service class  'u"
service class
Each line with a service class matching the one specified is tried
in turn until an unoccupied one is found.
Service classes specify a switching office and a baud rate.
.IP
Defined service classes at the `research' site are
.B 300
and
.BR 1200 ,
for 300- and 1200-baud calls on 665- phone lines, with synonyms
.B D300
and
.BR D1200 .
Internal calls on these lines require 5 digits.
Service classes
.B C300
and
.B C1200
use 582- phone lines.
Internal calls on these lines require 4 digits and reach only other
582- lines.
.TP
file
The file name of the associated special file for the telephone line.
.TP
acu
The file name of the associated ACU.
If specified as
.BR none ,
no ACU is used and the telephone number is ignored.
This is for hardwired connections.
.TP
speed
The bit rate of the interface, chosen from the numbers given in
.IR ttyld (4).
.TP
prefix
A string to be prefixed to the number.
This is handy for shared ACUs in which the first digit specifies a line.
The prefix
.L -
is taken to be an empty prefix.
.TP
postfix
A string to be postfixed to the number to be dialed.
Some ACUs require an `end of number' code; it should be specified here.
.SH FILES
.TP
.F /etc/aculist
.SH SEE ALSO
.IR ttyld (4),
.IR cu (1),
.IR ipc (3)