io_shutdown() is now unused, remove

This commit is contained in:
Markus Armbruster 2012-03-18 19:04:21 +01:00
parent eb25be08d4
commit a1003ea7da
2 changed files with 0 additions and 19 deletions

View file

@ -54,7 +54,6 @@ extern int io_read(struct iop *, char *, int);
extern int io_write(struct iop *, char *, int); extern int io_write(struct iop *, char *, int);
extern int io_gets(struct iop *, char *, int); extern int io_gets(struct iop *, char *, int);
extern int io_puts(struct iop *, char *); extern int io_puts(struct iop *, char *);
extern int io_shutdown(struct iop *, int);
extern int io_error(struct iop *); extern int io_error(struct iop *);
extern int io_eof(struct iop *); extern int io_eof(struct iop *);
extern void io_set_eof(struct iop *); extern void io_set_eof(struct iop *);

View file

@ -352,24 +352,6 @@ io_puts(struct iop *iop, char *buf)
return ioq_puts(iop->output, buf); return ioq_puts(iop->output, buf);
} }
int
io_shutdown(struct iop *iop, int flags)
{
flags &= (IO_READ | IO_WRITE);
if ((iop->flags & flags) != flags)
return -1;
if (flags & IO_READ) {
shutdown(iop->fd, 0);
ioq_drain(iop->input);
}
if (flags & IO_WRITE) {
shutdown(iop->fd, 1);
ioq_drain(iop->output);
iop->last_out = 0;
}
return 0;
}
int int
io_error(struct iop *iop) io_error(struct iop *iop)
{ {