* ioext.h: removed scm_duplicate_port prototype.
authorGary Houston <ghouston@arglist.com>
Mon, 21 Jul 1997 08:52:26 +0000 (08:52 +0000)
committerGary Houston <ghouston@arglist.com>
Mon, 21 Jul 1997 08:52:26 +0000 (08:52 +0000)
commite38303a26d4da3cbc64a10d7fc31e65439d9970a
tree274add18966221e6a7c37f2c154be238eb2c2fff
parenta9488d121883c3db948833de03d34f59f2e8a0d3
* ioext.h: removed scm_duplicate_port prototype.

* ioext.c (scm_primitive_dup2): return the new file descriptor
instead of SCM_UNSPECIFIED, since similarity to scm_primitive_dup
is convenient.
(scm_fdopen): bug fix: don't try to make port unbuffered until its
stream has been set.
(scm_duplicate_port): deleted, there's now an implementation in
boot-9.scm.
(scm_primitive_dup2): do nothing if newfd == oldfd.

* boot-9.scm (dup->port, dup->inport, dup->outport, dup->fdes,
dup, fdes->inport, fdes->outport, port->fdes): new procedures.
(duplicate-port): was a C primitive, now it's here.
(move->fdes): allow the first argument to be a file descriptor.
Return the modified port or file descriptor (was unspecified.)
ice-9/ChangeLog
ice-9/boot-9.scm
libguile/ChangeLog
libguile/ioext.c
libguile/ioext.h