1io_close(3)                Library Functions Manual                io_close(3)
2
3
4

NAME

6       io_close - close a file descriptor
7

SYNTAX

9       #include <io.h>
10
11       void io_close(int64 fd);
12

DESCRIPTION

14       io_close  eliminates  the descriptor numbered fd. This usually does not
15       mean eliminating the object that the descriptor is  talking  to.   (For
16       example,  if  a  descriptor  writes  to  a named disk file, closing the
17       descriptor will not remove the file; it simply removes one way of writ‐
18       ing  to  the  file.  On the other hand, a pipe disappears as soon as no
19       descriptors refer to it.)
20
21       io_close has no return value; it always succeeds  in  deallocating  the
22       memory  used for the descriptor.  If fd is not the number of a descrip‐
23       tor, io_close has no effect.
24
25       io_close() is like close(), but it also removes the descriptor from the
26       internal  io_wait() data structures.  If you called io_fd on a descrip‐
27       tor, you need to use io_close to close it, not just close().
28

SEE ALSO

30       io_wait(3), io_canwrite(3)
31
32
33
34                                                                   io_close(3)
Impressum