scsh-0.6/c/fd-io.h

19 lines
534 B
C
Raw Normal View History

1999-09-14 08:45:02 -04:00
#define STDIN_FD() 0
#define STDOUT_FD() 1
#define STDERR_FD() 2
extern int ps_open_fd(char *in_filename, bool is_input, long *status);
extern int ps_close_fd(long fd_as_long);
2003-05-01 06:21:33 -04:00
extern bool ps_check_fd(long fd_as_long, bool is_read, long *status);
1999-09-14 08:45:02 -04:00
extern long ps_read_fd(long fd_as_long, char *buf_as_long, long max, bool waitp,
bool *eofp, bool *pending, long *status);
extern long ps_write_fd(long fd_as_long, char *buf_as_long, long max,
bool *pending, long *status);
extern long ps_abort_fd_op(long fd_as_long);