Function

CFFileDescriptorInvalidate

Invalidates a CFFileDescriptor object.

Declaration

void CFFileDescriptorInvalidate(CFFileDescriptorRef f);

Parameters

f

A CFFileDescriptor.

Discussion

Once invalidated, the CFFileDescriptor object will no longer be read from or written to at the Core Fundation level.

If you passed true for the closeOnInvalidate parameter when you called CFFileDescriptorCreate, this function also closes the underlying file descriptor. If you passed false, you must close the descriptor yourself after invalidating the CFFileDescriptor object.

See Also