Garbage collection to side-step sparse file descriptor problem.

(io_select, io_flush, io_iopfromfd): Unused, remove.
(io_open): Allow more than one open for the same file descriptor.
The check is the last remaining use of io_list[], and it's
unimportant.
(io_list, niop, io_init): io_list[] no longer serves any purpose,
remove.  Sparse allocation of file descriptors (deplorable misfeature
of Winsock, at least some versions) is no longer a problem.
(getfdtablesize): Unused, remove.  Was broken for Windows anyway.
This commit is contained in:
Markus Armbruster 2004-02-06 12:35:51 +00:00
parent 52cb1f8c55
commit 875d72a00f
5 changed files with 3 additions and 126 deletions

View file

@ -59,8 +59,6 @@ extern int io_input(struct iop *, int);
extern int io_inputwaiting(struct iop *);
extern int io_outputwaiting(struct iop *);
extern int io_output(struct iop *, int);
extern int io_select(struct timeval *);
extern void io_flush(int);
extern int io_peek(struct iop *, s_char *, int);
extern int io_read(struct iop *, s_char *, int);
extern int io_write(struct iop *, s_char *, int, int);
@ -72,6 +70,5 @@ extern int io_conn(struct iop *);
extern int io_error(struct iop *);
extern int io_eof(struct iop *);
extern int io_fileno(struct iop *);
extern struct iop *io_iopfromfd(int);
#endif /* _EMPIO_H_ */