Go to the first, previous, next, last section, table of contents.


__clear_fd_properties

Syntax

#include <libc/fd_props.h>

int __clear_fd_properties(int fd);

Description

This internal function is called when the file descriptor fd is no longer valid. The usage count of the associated fd_properties struct is decremented. And if it becomes zero, this function performs cleanup and releases the memory used by the fd_properties struct.

For more information, see section __set_fd_properties and section __dup_fd_properties.

Return Value

Always returns 0 for success.

Portability

not ANSI, not POSIX


Go to the first, previous, next, last section, table of contents.