Close the specified descriptor. 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.
descriptor
k_BAD_FILE_DESCRIPTOR
Declared in <bdls_filesystemutil.h>
<bdls_filesystemutil.h>
static int close(FileDescriptor descriptor);