mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-30 11:54:57 +00:00
17 lines
189 B
C
17 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);
|
||
|
}
|