fd-io.h 534 B

12345678910111213141516171819
  1. #define STDIN_FD() 0
  2. #define STDOUT_FD() 1
  3. #define STDERR_FD() 2
  4. extern int ps_open_fd(char *in_filename, bool is_input, long *status);
  5. extern int ps_close_fd(long fd_as_long);
  6. extern bool ps_check_fd(long fd_as_long, bool is_read, long *status);
  7. extern long ps_read_fd(long fd_as_long, char *buf_as_long, long max, bool waitp,
  8. bool *eofp, bool *pending, long *status);
  9. extern long ps_write_fd(long fd_as_long, char *buf_as_long, long max,
  10. bool *pending, long *status);
  11. extern long ps_abort_fd_op(long fd_as_long);