_commit

Commits buffers to disk.

int _commit (int handle);

int commit (int handle);

Required Header
<io.h>

Return Value

Each of these functions returns 0 if the operation was successful. -1 indicates an error.

Parameters

handle

  The low level I/O handle to the open file

Remarks

The _commit function in JCC does nothing except to check that the handle is valid, if the file was opened in read/write mode the update handle buffer data is rewritten.

To ensure all current buffer data is commited, write zeros to fill the available write handle buffer block with a known dataset block size. In read/write mode the _close function automatically performs this operation.

Low Level I/O

See Also    _open, _read, _write