Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
io_close(3)		   Library Functions Manual		   io_close(3)

NAME
       io_close	- close	a file descriptor

SYNTAX
       #include	<io.h>

       void io_close(int64 fd);

DESCRIPTION
       io_close	 eliminates  the descriptor numbered fd. This usually does not
       mean eliminating	the object that	the descriptor is  talking  to.	  (For
       example,	 if  a descriptor writes to a named disk file, closing the de-
       scriptor	will not remove	the file; it simply removes one	way of writing
       to  the	file.  On  the other hand, a pipe disappears as	soon as	no de-
       scriptors refer to it.)

       io_close	has no return value; it	always succeeds	 in  deallocating  the
       memory  used for	the descriptor.	 If fd is not the number of a descrip-
       tor, io_close has no effect.

       io_close() is like close(), but it also removes the descriptor from the
       internal	 io_wait() data	structures.  If	you called io_fd on a descrip-
       tor, you	need to	use io_close to	close it, not just close().

SEE ALSO
       io_wait(3), io_canwrite(3)

								   io_close(3)

NAME | SYNTAX | DESCRIPTION | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=libowfat_io_close&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help