Re: Remove file descriptors completely from srfi-170? Lassi Kortela (10 Sep 2020 15:55 UTC)
Re: Remove file descriptors completely from srfi-170? Duy Nguyen (10 Sep 2020 15:59 UTC)
open-file and fd->*port Lassi Kortela (10 Sep 2020 16:05 UTC)
Re: open-file and fd->*port Duy Nguyen (10 Sep 2020 16:16 UTC)
Re: open-file and fd->*port Shiro Kawai (10 Sep 2020 17:34 UTC)
Re: open-file and fd->*port Duy Nguyen (10 Sep 2020 17:41 UTC)
Re: open-file and fd->*port John Cowan (10 Sep 2020 18:19 UTC)

Re: Remove file descriptors completely from srfi-170? Lassi Kortela 10 Sep 2020 15:55 UTC

> Why not combine open-file and
> fd->*port in one? All other procedures either take pathname or a port.

POSIX open() takes a whole bunch of flags which are relevant when
opening a pathname and don't have much to do with converting an
already-existing fd to a Scheme port.
<https://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html>