libowfat/io/io_close.c

13 lines
220 B
C
Raw Normal View History

2003-09-02 00:14:04 +00:00
#include <unistd.h>
#include "io_internal.h"
void io_close(int64 d) {
2003-09-06 00:03:27 +00:00
io_entry* e;
if ((e=array_get(&io_fds,sizeof(io_entry),d))) {
e->inuse=0;
io_dontwantread(d);
io_dontwantwrite(d);
}
2003-09-06 01:36:50 +00:00
close(d);
2003-09-02 00:14:04 +00:00
}