* fports.c (scm_fdes_to_port): always set rw_random if the fdes is
authorGary Houston <ghouston@arglist.com>
Mon, 18 Oct 1999 20:49:29 +0000 (20:49 +0000)
committerGary Houston <ghouston@arglist.com>
Mon, 18 Oct 1999 20:49:29 +0000 (20:49 +0000)
commit0de97b83c05a3351c0f09364772391d3108fb61d
treefe567975d44a24d0fd38b4c30c7c21ac3ec4ecf2
parent4fcd6551ffe58ae162e98e29986e1209e803a73a
* fports.c (scm_fdes_to_port): always set rw_random if the fdes is
random access.  rw_active needs to be maintained even for single
directional ports, otherwise scm_seek and probably other things are
broken.  (thanks to Roland Orre).

* strports.c (scm_mkstrport): set rw_random to 1 unconditionally.

* ports.c (scm_add_to_port_table): initialise rw_random to 0.

* ports.h (scm_port): change the comments on rw_random and rw_active.
libguile/ChangeLog
libguile/fports.c
libguile/ports.c
libguile/ports.h
libguile/strports.c