File descriptor API functions

int purify_all_fds_inuse (void)

Generates a list of all file descriptors currently open. Returns the number of currently open file descriptors.

int purify_new_fds_inuse (void)

Generates a list of new file descriptors found since the last call to a file descriptor API function. Returns the number of new file descriptors.

int purify_clear_fds_inuse (void)

Marks the file descriptors that have been opened since the last call to a file descriptor API function so that the function purify_new_fds_inuse does not report them. Returns the number of new file descriptors.

See also -copy-fd-output-to-logfile.

For more information about file descriptor leaks, click image\SHORTCUT.gif