Skip to content
  • Andy Wingo's avatar
    Elide syscalls in fdes->port · 69ca2bb2
    Andy Wingo authored
    * libguile/fports.h (scm_t_fport): Add options field.
      (SCM_FDES_RANDOM_P): Deprecate.
      (scm_i_fdes_to_port): Add options argument.
    * libguile/fports.c (scm_i_fdes_to_port): Add options argument.  Only
      verify FD if SCM_FPORT_OPTION_VERIFY is there.
      (scm_fdes_to_port, scm_open_file_with_encoding): Adapt to
      scm_i_fdes_to_port changes.
      (fport_random_access_p): Don't try to seek if NOT_SEEKABLE option is
      set.
    * libguile/deprecated.h:
    * libguile/deprecated.c (SCM_FDES_RANDOM_P): Deprecate.
    * NEWS: Add deprecation.
    * libguile/filesys.c:
    * libguile/ioext.c:
    * libguile/posix.c:
    * libguile/read.c:
    * libguile/socket.c: Adapt callers.
    69ca2bb2