* String comparison functions don't accept symbols as arguments any more.
[bpt/guile.git] / libguile / ioext.c
CommitLineData
f2c9fcb0 1/* Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
0f2d19dd
JB
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2, or (at your option)
6 * any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this software; see the file COPYING. If not, write to
82892bed
JB
15 * the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
16 * Boston, MA 02111-1307 USA
0f2d19dd
JB
17 *
18 * As a special exception, the Free Software Foundation gives permission
19 * for additional uses of the text contained in its release of GUILE.
20 *
21 * The exception is that, if you link the GUILE library with other files
22 * to produce an executable, this does not by itself cause the
23 * resulting executable to be covered by the GNU General Public License.
24 * Your use of that executable is in no way restricted on account of
25 * linking the GUILE library code into it.
26 *
27 * This exception does not however invalidate any other reasons why
28 * the executable file might be covered by the GNU General Public License.
29 *
30 * This exception applies only to the code released by the
31 * Free Software Foundation under the name GUILE. If you copy
32 * code from other Free Software Foundation releases into a copy of
33 * GUILE, as the General Public License permits, the exception does
34 * not apply to the code that you add in this way. To avoid misleading
35 * anyone as to the status of such modified files, you must delete
36 * this exception notice from them.
37 *
38 * If you write modifications of your own for GUILE, it is your choice
39 * whether to permit this exception to apply to your modifications.
82892bed 40 * If you do not wish that, delete this exception notice. */
1bbd0b84
GB
41
42/* Software engineering face-lift by Greg J. Badros, 11-Dec-1999,
43 gjb@cs.washington.edu, http://www.cs.washington.edu/homes/gjb */
44
0f2d19dd
JB
45\f
46
47
48#include <stdio.h>
a0599745
MD
49#include "libguile/_scm.h"
50#include "libguile/ports.h"
51#include "libguile/read.h"
52#include "libguile/fports.h"
53#include "libguile/unif.h"
54#include "libguile/chars.h"
55#include "libguile/feature.h"
56#include "libguile/root.h"
57#include "libguile/strings.h"
58
59#include "libguile/validate.h"
60#include "libguile/ioext.h"
0f2d19dd 61
ee149d03
JB
62#include <fcntl.h>
63
95b88819
GH
64#ifdef HAVE_STRING_H
65#include <string.h>
66#endif
67#ifdef HAVE_UNISTD_H
68#include <unistd.h>
69#endif
0f2d19dd
JB
70\f
71
a1ec6916 72SCM_DEFINE (scm_read_delimited_x, "%read-delimited!", 3, 3, 0,
1bbd0b84 73 (SCM delims, SCM buf, SCM gobble, SCM port, SCM start, SCM end),
b380b885
MD
74 "Read characters from @var{port} into @var{buf} until one of the\n"
75 "characters in the @var{delims} string is encountered. If @var{gobble?}\n"
76 "is true, store the delimiter character in @var{buf} as well; otherwise,\n"
77 "discard it. If @var{port} is not specified, use the value of\n"
78 "@code{(current-input-port)}. If @var{start} or @var{end} are specified,\n"
79 "store data only into the substring of @var{buf} bounded by @var{start}\n"
80 "and @var{end} (which default to the beginning and end of the buffer,\n"
81 "respectively).\n\n"
82 "Return a pair consisting of the delimiter that terminated the string and\n"
83 "the number of characters read. If reading stopped at the end of file,\n"
84 "the delimiter returned is the @var{eof-object}; if the buffer was filled\n"
85 "without encountering a delimiter, this value is @var{#f}.")
1bbd0b84 86#define FUNC_NAME s_scm_read_delimited_x
1146b6cd
GH
87{
88 long j;
89 char *cbuf;
90 long cstart;
1bbd0b84 91 long cend, tend;
1146b6cd
GH
92 int c;
93 char *cdelims;
94 int num_delims;
95
3b3b36dd 96 SCM_VALIDATE_ROSTRING_COPY (1,delims,cdelims);
ae2fa5bc 97 num_delims = SCM_ROLENGTH (delims);
3b3b36dd 98 SCM_VALIDATE_STRING_COPY (2,buf,cbuf);
bfa974f0 99 cend = SCM_STRING_LENGTH (buf);
1146b6cd
GH
100 if (SCM_UNBNDP (port))
101 port = scm_cur_inp;
102 else
3b3b36dd 103 SCM_VALIDATE_OPINPORT (4,port);
1146b6cd 104
3b3b36dd 105 SCM_VALIDATE_INUM_DEF_COPY (5,start,0,cstart);
c1bfcf60 106 SCM_ASSERT_RANGE(5, start, cstart >= 0 && cstart < cend);
1146b6cd 107
3b3b36dd 108 SCM_VALIDATE_INUM_DEF_COPY (6,end,cend,tend);
c1bfcf60
GB
109 SCM_ASSERT_RANGE(6, end, tend > cstart && tend <= cend);
110
1bbd0b84 111 cend = tend;
1146b6cd
GH
112
113 for (j = cstart; j < cend; j++)
114 {
115 int k;
116
b7f3516f 117 c = scm_getc (port);
1146b6cd
GH
118 for (k = 0; k < num_delims; k++)
119 {
120 if (cdelims[k] == c)
121 {
122 if (SCM_FALSEP (gobble))
b7f3516f 123 scm_ungetc (c, port);
1146b6cd 124
7866a09b 125 return scm_cons (SCM_MAKE_CHAR (c),
1146b6cd
GH
126 scm_long2num (j - cstart));
127 }
128 }
129 if (c == EOF)
130 return scm_cons (SCM_EOF_VAL,
131 scm_long2num (j - cstart));
132
133 cbuf[j] = c;
134 }
135 return scm_cons (SCM_BOOL_F, scm_long2num (j - cstart));
136}
1bbd0b84 137#undef FUNC_NAME
1146b6cd 138
ee149d03
JB
139static unsigned char *
140scm_do_read_line (SCM port, int *len_p)
141{
afc5764c 142 scm_port *pt = SCM_PTAB_ENTRY (port);
ee149d03
JB
143 unsigned char *end;
144
145 /* I thought reading lines was simple. Mercy me. */
146
6c951427
GH
147 /* The common case: the buffer contains a complete line.
148 This needs to be fast. */
ee149d03
JB
149 if ((end = memchr (pt->read_pos, '\n', (pt->read_end - pt->read_pos)))
150 != 0)
151 {
152 int buf_len = (end + 1) - pt->read_pos;
153 /* Allocate a buffer of the perfect size. */
66a10575 154 unsigned char *buf = scm_must_malloc (buf_len + 1, "%read-line");
ee149d03
JB
155
156 memcpy (buf, pt->read_pos, buf_len);
157 pt->read_pos += buf_len;
158
159 buf[buf_len] = '\0';
160
161 *len_p = buf_len;
162 return buf;
163 }
164
6c951427 165 /* The buffer contains no newlines. */
ee149d03
JB
166 {
167 /* When live, len is always the number of characters in the
168 current buffer that are part of the current line. */
169 int len = (pt->read_end - pt->read_pos);
170 int buf_size = (len < 50) ? 60 : len * 2;
171 /* Invariant: buf always has buf_size + 1 characters allocated;
172 the `+ 1' is for the final '\0'. */
66a10575 173 unsigned char *buf = scm_must_malloc (buf_size + 1, "%read-line");
ee149d03 174 int buf_len = 0;
ee149d03
JB
175
176 for (;;)
177 {
178 if (buf_len + len > buf_size)
179 {
180 int new_size = (buf_len + len) * 2;
66a10575
JB
181 buf = scm_must_realloc (buf, buf_size + 1, new_size + 1,
182 "%read-line");
ee149d03
JB
183 buf_size = new_size;
184 }
185
186 /* Copy what we've got out of the port, into our buffer. */
187 memcpy (buf + buf_len, pt->read_pos, len);
188 buf_len += len;
189 pt->read_pos += len;
190
191 /* If we had seen a newline, we're done now. */
192 if (end)
193 break;
194
5c070ca7 195 /* Get more characters. */
affc96b5 196 if (scm_fill_input (port) == EOF)
ee149d03
JB
197 {
198 /* If we're missing a final newline in the file, return
199 what we did get, sans newline. */
200 if (buf_len > 0)
201 break;
202
203 free (buf);
204 return 0;
205 }
206
ee149d03
JB
207 /* Search the buffer for newlines. */
208 if ((end = memchr (pt->read_pos, '\n',
209 (len = (pt->read_end - pt->read_pos))))
210 != 0)
211 len = (end - pt->read_pos) + 1;
212 }
213
214 /* I wonder how expensive this realloc is. */
66a10575 215 buf = scm_must_realloc (buf, buf_size + 1, buf_len + 1, "%read-line");
ee149d03
JB
216 buf[buf_len] = '\0';
217 *len_p = buf_len;
218 return buf;
219 }
220}
221
222
3e2043c4 223/*
ee149d03 224 * %read-line
848f2a01
TP
225 * truncates any terminating newline from its input, and returns
226 * a cons of the string read and its terminating character. Doing
227 * so makes it easy to implement the hairy `read-line' options
228 * efficiently in Scheme.
3e2043c4
TP
229 */
230
a1ec6916 231SCM_DEFINE (scm_read_line, "%read-line", 0, 1, 0,
1bbd0b84 232 (SCM port),
b380b885
MD
233 "Read a newline-terminated line from @var{port}, allocating storage as\n"
234 "necessary. The newline terminator (if any) is removed from the string,\n"
235 "and a pair consisting of the line and its delimiter is returned. The\n"
236 "delimiter may be either a newline or the @var{eof-object}; if\n"
237 "@code{%read-line} is called at the end of file, it returns the pair\n"
238 "@code{(#<eof> . #<eof>)}.")
1bbd0b84 239#define FUNC_NAME s_scm_read_line
3cb988bd 240{
afc5764c 241 scm_port *pt;
3cb988bd 242 char *s;
848f2a01
TP
243 int slen;
244 SCM line, term;
3cb988bd
TP
245
246 if (SCM_UNBNDP (port))
247 port = scm_cur_inp;
3b3b36dd 248 SCM_VALIDATE_OPINPORT (1,port);
3cb988bd 249
afc5764c
JB
250 pt = SCM_PTAB_ENTRY (port);
251 if (pt->rw_active == SCM_PORT_WRITE)
affc96b5 252 scm_ptobs[SCM_PTOBNUM (port)].flush (port);
afc5764c 253
dce41066 254 s = (char *) scm_do_read_line (port, &slen);
848f2a01 255
3e2043c4 256 if (s == NULL)
848f2a01 257 term = line = SCM_EOF_VAL;
3e2043c4
TP
258 else
259 {
848f2a01
TP
260 if (s[slen-1] == '\n')
261 {
7866a09b 262 term = SCM_MAKE_CHAR ('\n');
ee149d03
JB
263 s[slen-1] = '\0';
264 line = scm_take_str (s, slen-1);
66a10575 265 scm_done_malloc (-1);
ee149d03 266 SCM_INCLINE (port);
848f2a01
TP
267 }
268 else
269 {
270 /* Fix: we should check for eof on the port before assuming this. */
271 term = SCM_EOF_VAL;
ee149d03 272 line = scm_take_str (s, slen);
afc5764c 273 SCM_COL (port) += slen;
848f2a01 274 }
3e2043c4 275 }
848f2a01 276
afc5764c
JB
277 if (pt->rw_random)
278 pt->rw_active = SCM_PORT_READ;
279
848f2a01 280 return scm_cons (line, term);
3cb988bd 281}
1bbd0b84 282#undef FUNC_NAME
3cb988bd 283
a1ec6916 284SCM_DEFINE (scm_write_line, "write-line", 1, 1, 0,
1bbd0b84 285 (SCM obj, SCM port),
b380b885
MD
286 "Display @var{obj} and a newline character to @var{port}. If @var{port}\n"
287 "is not specified, @code{(current-output-port)} is used. This function\n"
288 "is equivalent to:\n\n"
289 "@smalllisp\n"
290 "(display obj [port])\n"
291 "(newline [port])\n"
292 "@end smalllisp")
1bbd0b84 293#define FUNC_NAME s_scm_write_line
1146b6cd
GH
294{
295 scm_display (obj, port);
296 return scm_newline (port);
297}
1bbd0b84 298#undef FUNC_NAME
1146b6cd 299
a1ec6916 300SCM_DEFINE (scm_ftell, "ftell", 1, 0, 0,
1bbd0b84 301 (SCM object),
b380b885
MD
302 "Returns an integer representing the current position of @var{fd/port},\n"
303 "measured from the beginning. Equivalent to:\n"
304 "@smalllisp\n"
305 "(seek port 0 SEEK_CUR)\n"
306 "@end smalllisp")
1bbd0b84 307#define FUNC_NAME s_scm_ftell
0f2d19dd 308{
c94577b4 309 return scm_seek (object, SCM_INUM0, SCM_MAKINUM (SEEK_CUR));
ee149d03 310}
1bbd0b84 311#undef FUNC_NAME
0f2d19dd 312
f5f2dcff
DH
313
314#if (SCM_DEBUG_DEPRECATED == 0)
315
a1ec6916 316SCM_DEFINE (scm_fseek, "fseek", 3, 0, 0,
1bbd0b84 317 (SCM object, SCM offset, SCM whence),
b380b885
MD
318 "Obsolete. Almost the same as seek, above, but the return value is\n"
319 "unspecified.")
1bbd0b84 320#define FUNC_NAME s_scm_fseek
0f2d19dd 321{
c94577b4 322 scm_seek (object, offset, whence);
02b754d3 323 return SCM_UNSPECIFIED;
0f2d19dd 324}
1bbd0b84 325#undef FUNC_NAME
0f2d19dd 326
f5f2dcff
DH
327#endif /* SCM_DEBUG_DEPRECATED == 0 */
328
329
a1ec6916 330SCM_DEFINE (scm_redirect_port, "redirect-port", 2, 0, 0,
1bbd0b84 331 (SCM old, SCM new),
b380b885
MD
332 "This procedure takes two ports and duplicates the underlying file\n"
333 "descriptor from @var{old-port} into @var{new-port}. The\n"
334 "current file descriptor in @var{new-port} will be closed.\n"
335 "After the redirection the two ports will share a file position\n"
336 "and file status flags.\n\n"
337 "The return value is unspecified.\n\n"
338 "Unexpected behaviour can result if both ports are subsequently used\n"
339 "and the original and/or duplicate ports are buffered.\n\n"
340 "This procedure does not have any side effects on other ports or\n"
341 "revealed counts.")
1bbd0b84 342#define FUNC_NAME s_scm_redirect_port
0f2d19dd
JB
343{
344 int ans, oldfd, newfd;
ee149d03 345 struct scm_fport *fp;
9c29ac66 346
78446828
MV
347 old = SCM_COERCE_OUTPORT (old);
348 new = SCM_COERCE_OUTPORT (new);
1bbd0b84 349
3b3b36dd
GB
350 SCM_VALIDATE_OPFPORT (1,old);
351 SCM_VALIDATE_OPFPORT (2,new);
ee149d03
JB
352 oldfd = SCM_FPORT_FDES (old);
353 fp = SCM_FSTREAM (new);
354 newfd = fp->fdes;
355 if (oldfd != newfd)
356 {
afc5764c
JB
357 scm_port *pt = SCM_PTAB_ENTRY (new);
358 scm_port *old_pt = SCM_PTAB_ENTRY (old);
16019956 359 scm_ptob_descriptor *ptob = &scm_ptobs[SCM_PTOBNUM (new)];
afc5764c
JB
360
361 /* must flush to old fdes. */
362 if (pt->rw_active == SCM_PORT_WRITE)
affc96b5 363 ptob->flush (new);
afc5764c 364 else if (pt->rw_active == SCM_PORT_READ)
affc96b5 365 scm_end_input (new);
ee149d03
JB
366 ans = dup2 (oldfd, newfd);
367 if (ans == -1)
1bbd0b84 368 SCM_SYSERROR;
afc5764c 369 pt->rw_random = old_pt->rw_random;
ee149d03 370 /* continue using existing buffers, even if inappropriate. */
ee149d03 371 }
02b754d3 372 return SCM_UNSPECIFIED;
0f2d19dd 373}
1bbd0b84 374#undef FUNC_NAME
0f2d19dd 375
a1ec6916 376SCM_DEFINE (scm_dup_to_fdes, "dup->fdes", 1, 1, 0,
1bbd0b84 377 (SCM fd_or_port, SCM fd),
b380b885 378 "Returns an integer file descriptor.")
1bbd0b84 379#define FUNC_NAME s_scm_dup_to_fdes
a9488d12
GH
380{
381 int oldfd, newfd, rv;
382
78446828
MV
383 fd_or_port = SCM_COERCE_OUTPORT (fd_or_port);
384
a9488d12
GH
385 if (SCM_INUMP (fd_or_port))
386 oldfd = SCM_INUM (fd_or_port);
387 else
388 {
3b3b36dd 389 SCM_VALIDATE_OPFPORT (1,fd_or_port);
ee149d03 390 oldfd = SCM_FPORT_FDES (fd_or_port);
a9488d12 391 }
7a6f1ffa
GH
392
393 if (SCM_UNBNDP (fd))
e38303a2 394 {
ee149d03 395 newfd = dup (oldfd);
7a6f1ffa 396 if (newfd == -1)
1bbd0b84 397 SCM_SYSERROR;
7a6f1ffa
GH
398 fd = SCM_MAKINUM (newfd);
399 }
400 else
401 {
c1bfcf60 402 SCM_VALIDATE_INUM_COPY (2, fd, newfd);
7a6f1ffa
GH
403 if (oldfd != newfd)
404 {
405 scm_evict_ports (newfd); /* see scsh manual. */
ee149d03 406 rv = dup2 (oldfd, newfd);
7a6f1ffa 407 if (rv == -1)
1bbd0b84 408 SCM_SYSERROR;
7a6f1ffa 409 }
e38303a2 410 }
e38303a2 411 return fd;
a9488d12 412}
1bbd0b84 413#undef FUNC_NAME
a9488d12 414
a1ec6916 415SCM_DEFINE (scm_fileno, "fileno", 1, 0, 0,
1bbd0b84 416 (SCM port),
b380b885
MD
417 "Returns the integer file descriptor underlying @var{port}.\n"
418 "Does not change its revealed count.")
1bbd0b84 419#define FUNC_NAME s_scm_fileno
0f2d19dd 420{
78446828 421 port = SCM_COERCE_OUTPORT (port);
3b3b36dd 422 SCM_VALIDATE_OPFPORT (1,port);
ee149d03 423 return SCM_MAKINUM (SCM_FPORT_FDES (port));
0f2d19dd 424}
1bbd0b84
GB
425#undef FUNC_NAME
426
427/* GJB:FIXME:: why does this not throw
428 an error if the arg is not a port?
429 This proc as is would be better names isattyport?
430 if it is not going to assume that the arg is a port */
a1ec6916 431SCM_DEFINE (scm_isatty_p, "isatty?", 1, 0, 0,
1bbd0b84 432 (SCM port),
b380b885
MD
433 "Returns @code{#t} if @var{port} is using a serial\n"
434 "non-file device, otherwise @code{#f}.")
1bbd0b84 435#define FUNC_NAME s_scm_isatty_p
0f2d19dd
JB
436{
437 int rv;
78446828
MV
438
439 port = SCM_COERCE_OUTPORT (port);
440
0c95b57d 441 if (!SCM_OPFPORTP (port))
10ccfad7 442 return SCM_BOOL_F;
ee149d03
JB
443
444 rv = isatty (SCM_FPORT_FDES (port));
1bbd0b84 445 return SCM_BOOL(rv);
0f2d19dd 446}
1bbd0b84 447#undef FUNC_NAME
0f2d19dd
JB
448
449
450
a1ec6916 451SCM_DEFINE (scm_fdopen, "fdopen", 2, 0, 0,
1bbd0b84 452 (SCM fdes, SCM modes),
b380b885
MD
453 "Returns a new port based on the file descriptor @var{fdes}.\n"
454 "Modes are given by the string @var{modes}. The revealed count of the port\n"
455 "is initialized to zero. The modes string is the same as that accepted\n"
456 "by @ref{File Ports, open-file}.")
1bbd0b84 457#define FUNC_NAME s_scm_fdopen
0f2d19dd 458{
3b3b36dd
GB
459 SCM_VALIDATE_INUM (1,fdes);
460 SCM_VALIDATE_ROSTRING (2,modes);
89958ad0 461 SCM_COERCE_SUBSTR (modes);
19b27fa2
GH
462
463 return scm_fdes_to_port (SCM_INUM (fdes), SCM_ROCHARS (modes), SCM_BOOL_F);
0f2d19dd 464}
1bbd0b84 465#undef FUNC_NAME
0f2d19dd
JB
466
467
468
469/* Move a port's underlying file descriptor to a given value.
8b13c6b3
GH
470 * Returns #f if fdes is already the given value.
471 * #t if fdes moved.
0f2d19dd
JB
472 * MOVE->FDES is implemented in Scheme and calls this primitive.
473 */
a1ec6916 474SCM_DEFINE (scm_primitive_move_to_fdes, "primitive-move->fdes", 2, 0, 0,
1bbd0b84 475 (SCM port, SCM fd),
b380b885
MD
476 "Moves the underlying file descriptor for @var{port} to the integer\n"
477 "value @var{fdes} without changing the revealed count of @var{port}.\n"
478 "Any other ports already using this descriptor will be automatically\n"
479 "shifted to new descriptors and their revealed counts reset to zero.\n"
480 "The return value is @code{#f} if the file descriptor already had the\n"
481 "required value or @code{#t} if it was moved.")
1bbd0b84 482#define FUNC_NAME s_scm_primitive_move_to_fdes
0f2d19dd 483{
ee149d03 484 struct scm_fport *stream;
0f2d19dd
JB
485 int old_fd;
486 int new_fd;
487 int rv;
488
78446828
MV
489 port = SCM_COERCE_OUTPORT (port);
490
3b3b36dd
GB
491 SCM_VALIDATE_OPFPORT (1,port);
492 SCM_VALIDATE_INUM (2,fd);
ee149d03
JB
493 stream = SCM_FSTREAM (port);
494 old_fd = stream->fdes;
0f2d19dd
JB
495 new_fd = SCM_INUM (fd);
496 if (old_fd == new_fd)
497 {
8b13c6b3 498 return SCM_BOOL_F;
0f2d19dd
JB
499 }
500 scm_evict_ports (new_fd);
501 rv = dup2 (old_fd, new_fd);
502 if (rv == -1)
1bbd0b84 503 SCM_SYSERROR;
ee149d03 504 stream->fdes = new_fd;
0f2d19dd 505 SCM_SYSCALL (close (old_fd));
8b13c6b3 506 return SCM_BOOL_T;
0f2d19dd 507}
1bbd0b84 508#undef FUNC_NAME
0f2d19dd 509
0f2d19dd 510/* Return a list of ports using a given file descriptor. */
3b3b36dd 511SCM_DEFINE (scm_fdes_to_ports, "fdes->ports", 1, 0, 0,
1bbd0b84 512 (SCM fd),
b380b885
MD
513 "Returns a list of existing ports which have @var{fdes} as an\n"
514 "underlying file descriptor, without changing their revealed counts.")
1bbd0b84 515#define FUNC_NAME s_scm_fdes_to_ports
0f2d19dd
JB
516{
517 SCM result = SCM_EOL;
518 int int_fd;
519 int i;
520
3b3b36dd 521 SCM_VALIDATE_INUM_COPY (1,fd,int_fd);
0f2d19dd 522
0f2d19dd
JB
523 for (i = 0; i < scm_port_table_size; i++)
524 {
ee149d03
JB
525 if (SCM_OPFPORTP (scm_port_table[i]->port)
526 && ((struct scm_fport *) scm_port_table[i]->stream)->fdes == int_fd)
0f2d19dd
JB
527 result = scm_cons (scm_port_table[i]->port, result);
528 }
0f2d19dd 529 return result;
1bbd0b84
GB
530}
531#undef FUNC_NAME
0f2d19dd 532
1cc91f1b 533
0f2d19dd
JB
534void
535scm_init_ioext ()
0f2d19dd 536{
52cfc69b
GH
537 scm_add_feature ("i/o-extensions");
538
a0599745 539#include "libguile/ioext.x"
0f2d19dd
JB
540}
541
89e00824
ML
542
543/*
544 Local Variables:
545 c-file-style: "gnu"
546 End:
547*/