#include <unistd.h> off64_t fclear (int file_descriptor, off64_t nbyte);
The fclear64() function writes nbyte bytes of binary zeros to the file associated with the file_descriptor. If nbyte is zero, fclear64() simply returns a value of zero without attempting any other action.
fclear64() is enabled for large files. It is capable of operating on files larger than 2GB minus 1 bytes and is capable of clearing up to the system allowed maximum file size bytes as long as the file exists in Root, QOpenSys, and UDFS file systems and has been opened by either of the following:
For additional information about parameters, authorities, error conditions, and examples, see fclear()--Write (Binary Zeros) to Descriptor.
API introduced: V5R3
Top | UNIX-Type APIs | APIs by category |