fd-io.h 674 B

1234567891011121314151617181920212223242526
  1. #define STDIN_FD() 0
  2. #define STDOUT_FD() 1
  3. #define STDERR_FD() 2
  4. extern int ps_open_fd(char *in_filename, psbool is_input, long *status);
  5. extern int ps_close_fd(long fd_as_long);
  6. extern psbool ps_check_fd(long fd_as_long, psbool is_read, long *status);
  7. extern long ps_read_fd(long fd_as_long, char *buf_as_long, long max, psbool waitp,
  8. psbool *eofp, psbool *pending, long *status);
  9. extern long ps_write_fd(long fd_as_long, char *buf_as_long, long max,
  10. psbool *pending, long *status);
  11. extern long ps_abort_fd_op(long fd_as_long);
  12. extern long ps_io_buffer_size(void);
  13. extern psbool ps_io_crlf_p(void);
  14. extern char *ps_console_encoding(long fd_as_long);