view packages/net/tcpip/current/doc/close.man @ 1777:c16341b1bac6 default tip

* Added execute permissions to files missed in conversion from CVS
author alexs
date Mon, 12 Oct 2009 02:26:09 +0100
parents ced4577552cd
children
line wrap: on
line source

NAME
       close - close a file descriptor

SYNOPSIS

       int close(int fd);

DESCRIPTION
       close  closes  a  file  descriptor,  so  that it no longer
       refers to any file and may be reused.

       If fd is the last copy of a particular file descriptor the
       resources associated with it are freed.

RETURN VALUE
       close returns zero on success, or -1 if an error occurred.

ERRORS
       EBADF  fd isn't a valid open file descriptor.