2004-07-23 20:35:13 -04:00
|
|
|
#define LINE_SIZE 80
|
2004-08-11 16:56:48 -04:00
|
|
|
#define BUF_SIZE (32 * 1024)
|
2004-07-23 20:35:13 -04:00
|
|
|
|
2004-08-15 21:50:44 -04:00
|
|
|
bool can_read_line(PORT* port);
|
|
|
|
|
void primitive_can_read_line(void);
|
2004-08-13 02:32:11 -04:00
|
|
|
bool read_step(PORT* port);
|
2004-08-15 21:50:44 -04:00
|
|
|
bool read_line_step(PORT* port);
|
2004-08-12 23:40:28 -04:00
|
|
|
|
2004-08-13 02:19:22 -04:00
|
|
|
bool write_step(PORT* port);
|
2004-08-12 17:36:36 -04:00
|
|
|
void flush_buffer(PORT* port);
|
2004-08-11 16:56:48 -04:00
|
|
|
void init_io(void);
|
2004-07-23 20:35:13 -04:00
|
|
|
void primitive_read_line_fd_8(void);
|
2004-08-15 21:50:44 -04:00
|
|
|
bool can_write(PORT* port, FIXNUM len);
|
|
|
|
|
void primitive_can_write(void);
|
2004-08-12 17:36:36 -04:00
|
|
|
void write_fd_char_8(PORT* port, FIXNUM ch);
|
|
|
|
|
void write_fd_string_8(PORT* port, STRING* str);
|
2004-07-23 20:35:13 -04:00
|
|
|
void primitive_write_fd_8(void);
|
2004-08-11 16:56:48 -04:00
|
|
|
void primitive_close_fd(void);
|
2004-08-15 21:50:44 -04:00
|
|
|
void io_error(PORT* port, const char* func);
|