-
Notifications
You must be signed in to change notification settings - Fork 0
/
st-sun.h
211 lines (153 loc) · 5.81 KB
/
st-sun.h
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
{ ****************************************************** stprim ***** }
{ * * }
{ * Software Tools :: Primitives external references * }
{ * * }
{ ******************************************************************* }
{ %% external references converted for 4.2bsd Pascal (SUN) }
{ SGETSTE -- initialise software tools external interface }
procedure SGETSTE (var envlocn : integer;
var littoiso : itable;
var isotolit : chtable);
external;
{ SRELSTE -- release resources acquired by external interface }
procedure SRELSTE (envlocn : integer;
action : integer);
external;
{ SINTRPT -- set attention interrupt (break) processing }
procedure SINTRPT (envlocn : integer;
reqcode : integer);
external;
{ SOPEN -- open a file }
procedure SOPEN (envlocn : integer;
var name : chstring;
mode : integer;
var fd : filedesc);
external;
{ SCREATE -- open a file, creating if necessary }
procedure SCREATE (envlocn : integer;
var name : chstring;
mode : integer;
var fd : filedesc);
external;
{ SIOCTRL -- set state of opened file descriptor }
procedure SIOCTRL (envlocn : integer;
newstate : integer;
fd : filedesc);
external;
{ SSECURE -- secure disk copy of opened file without closing it }
procedure SSECURE (envlocn : integer;
fd : filedesc);
external;
{ SREWIND -- rewind (read) or reset (write, append) file desc }
procedure SREWIND (envlocn : integer;
fd : filedesc;
var rc : integer);
external;
{ SCLOSE -- close an open file }
procedure SCLOSE (envlocn : integer;
fd : filedesc);
external;
{ SREMOVE -- remove (destroy) a file }
procedure SREMOVE (envlocn : integer;
var name : chstring;
var rc : integer);
external;
{ SRENAME -- change the name of a file }
procedure SRENAME (envlocn : integer;
var oldname : chstring;
var newname : chstring;
var rc : integer);
external;
{ SGETLIN -- read from fd until newline }
procedure SGETLIN (envlocn : integer;
var dest : chstring;
fd : filedesc;
maxlen : integer;
var rc : integer);
external;
{ SGETCF -- read one character from fd }
procedure SGETCF (envlocn : integer;
var c : isochar;
fd : filedesc);
external;
{ SPUTSTR -- write string to fd }
procedure SPUTSTR (envlocn : integer;
var src : chstring;
fd : filedesc);
external;
{ SPUTCF -- write character to fd }
procedure SPUTCF (envlocn : integer;
c : isochar;
fd : filedesc);
external;
{ SFFCOPY -- copy from one file descriptor to another }
procedure SFFCOPY (envlocn : integer;
fdin : filedesc;
fdout : filedesc;
var nrecds : integer;
var rc : integer);
external;
{ SIXCOPY -- copy specified record from one f/d to another }
procedure SIXCOPY (envlocn : integer;
fdx : fdpointer;
fdin : filedesc;
fdout : filedesc;
var rc : integer);
external;
{ SGETIDX -- return next get/put i/o pointer for future get }
procedure SGETIDX (envlocn : integer;
var fdx : fdpointer;
fd : filedesc;
var rc : integer);
external;
{ SSEEK -- set next get pointer for fd }
procedure SSEEK (envlocn : integer;
fdx : fdpointer;
fd : filedesc);
external;
{ SITOXPC -- internal to external file pointer conversion }
procedure SITOXPC (envlocn : integer;
var str : chstring;
sidx : integer;
fdx : fdpointer);
external;
{ SXTOIPC -- external to internal file pointer conversion }
procedure SXTOIPC (envlocn : integer;
var str : chstring;
sidx : integer;
var fdx : fdpointer);
external;
{ SGETFDS -- get file descriptor status }
procedure SGETFDS (envlocn : integer;
var fdstat : integer;
fd : filedesc);
external;
{ SPROMPT -- set standard input prompt string }
procedure SPROMPT (envlocn : integer;
var pstr : chstring);
external;
{ SGETINF -- return information according to index }
procedure SGETINF (envlocn : integer;
index : integer;
var info : chstring;
maxlen : integer);
external;
{ SSYSCMD -- execute command line }
procedure SSYSCMD (envlocn : integer;
var cmd : chstring;
var rc : integer);
external;
{ SMAILER -- interface to e-mail spooler }
procedure SMAILER (envlocn : integer;
index : integer;
var info : chstring;
var rc : integer);
external;
{ STWAIT -- wait for a given elapsed time interval }
procedure STWAIT (envlocn : integer;
waittime : integer);
external;
{ SLOGUSE -- log use of software tools application }
procedure SLOGUSE (envlocn : integer;
var name : chstring);
external;