[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

__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 __set_fd_properties (see section __set_fd_properties) and __dup_fd_properties (see section __dup_fd_properties).

Return Value

Always returns 0 for success.

Portability

ANSI/ISO C No
POSIX No