BloombergLP::bdls::FilesystemUtil::close

Close the specified descriptor.

Synopsis

Declared in <bdls_filesystemutil.h>

static
int
close(FileDescriptor descriptor);

Description

Return 0 on success and a non-zero value otherwise. A return value of k_BAD_FILE_DESCRIPTOR indicates that the supplied descriptor is invalid.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
descriptorfile descriptor to close