1995-10-22 08:34:53 -04:00
|
|
|
/* Exports from fdports1.c. */
|
|
|
|
|
|
|
|
void init_fdports(void);
|
|
|
|
|
|
|
|
scheme_value maybe_fdes2port(int fd);
|
|
|
|
|
|
|
|
scheme_value fdport_getchar(scheme_value data);
|
|
|
|
|
|
|
|
int fdport_putchar(scheme_value data, char c);
|
|
|
|
|
|
|
|
scheme_value fdport_char_readyp(scheme_value data);
|
|
|
|
|
|
|
|
int flush_fdport(scheme_value data);
|
|
|
|
|
|
|
|
int flush_all_ports(void);
|
|
|
|
|
|
|
|
int seek_fdport(scheme_value data, off_t offset, int whence, int *newpos);
|
|
|
|
|
|
|
|
int tell_fdport( scheme_value data, int *newpos );
|
|
|
|
|
|
|
|
int set_fdbuf( scheme_value data, int policy, int bufsize );
|
|
|
|
|
|
|
|
int close_fdport(scheme_value port_data);
|
|
|
|
|
1996-08-24 03:36:50 -04:00
|
|
|
scheme_value cloexec_unrevealed(void);
|
1995-10-22 08:34:53 -04:00
|
|
|
|
|
|
|
int install_port(int fd, scheme_value port);
|
|
|
|
|
|
|
|
FILE *fdes2fstar(int fd);
|
|
|
|
|
|
|
|
int move_fdport(int fd, scheme_value port, int new_revealed);
|
|
|
|
|
|
|
|
void post_gc_fdports(void);
|
|
|
|
|
|
|
|
int read_fdport_substring(scheme_value buf, int start, int end, scheme_value data);
|
|
|
|
|
|
|
|
int write_fdport_substring(scheme_value buf, int start, int end, scheme_value data);
|
|
|
|
|
|
|
|
scheme_value read_delim(const char *delims, char *buf, int gobble,
|
|
|
|
scheme_value port, int start, int end,
|
|
|
|
int *nread);
|
1995-11-19 23:15:04 -05:00
|
|
|
|
|
|
|
scheme_value skip_chars(const char *skipchars, scheme_value port, int *nread);
|