BloombergLP::bdls::FdStreamBuf_FileHandler::clear

Release any file descriptor that may be associated with this file handler. If isOpened and willCloseOnReset are both true, the file descriptor will be closed, otherwise it will be left unchanged. Return 0 on success and a non-zero value if the close fails. This method succeeds with no effect if isOpened was false. Note that fileDescriptor is always FilesystemUtil::k_INVALID_FD after this call.

Synopsis

Declared in <bdls_fdstreambuf.h>

int
clear();