fd-io.h 845 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Part of Scheme 48 1.9. See file COPYING for notices and license.
  3. *
  4. * Authors: Richard Kelsey, Jonathan Rees, Mike Sperber
  5. */
  6. #define STDIN_FD() 0
  7. #define STDOUT_FD() 1
  8. #define STDERR_FD() 2
  9. S48_EXTERN int ps_open_fd(char *in_filename, psbool is_input, long *status);
  10. S48_EXTERN int ps_close_fd(long fd_as_long);
  11. S48_EXTERN psbool ps_check_fd(long fd_as_long, psbool is_read, long *status);
  12. S48_EXTERN long ps_read_fd(long fd_as_long, char *buf_as_long, long max, psbool waitp,
  13. psbool *eofp, psbool *pending, long *status);
  14. S48_EXTERN long ps_write_fd(long fd_as_long, char *buf_as_long, long max,
  15. psbool *pending, long *status);
  16. S48_EXTERN long ps_abort_fd_op(long fd_as_long);
  17. S48_EXTERN long ps_io_buffer_size(void);
  18. S48_EXTERN psbool ps_io_crlf_p(void);
  19. S48_EXTERN char *ps_console_encoding(long fd_as_long);