mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
16 lines
189 B
C
16 lines
189 B
C
#include "threadimpl.h"
|
|
|
|
static long
|
|
_ioclose(va_list *arg)
|
|
{
|
|
int fd;
|
|
|
|
fd = va_arg(*arg, int);
|
|
return close(fd);
|
|
}
|
|
|
|
int
|
|
ioclose(Ioproc *io, int fd)
|
|
{
|
|
return iocall(io, _ioclose, fd);
|
|
}
|