4 Closes a file descriptor.
14 PRStatus PR_Close(PRFileDesc *fd);
20 The function has the following parameters:
23 A pointer to a :ref:`PRFileDesc` object.
29 One of the following values:
31 - If file descriptor is closed successfully, ``PR_SUCCESS``.
32 - If the file descriptor is not closed successfully, ``PR_FAILURE``.
38 The file descriptor may represent a normal file, a socket, or an end
39 point of a pipe. On successful return, :ref:`PR_Close` frees the dynamic
40 memory and other resources identified by the ``fd`` parameter.