tf_flush(), sf_flush()

Purpose

Flushes buffers to a file

Old names

#define _vflush tf_flush

#define _aflush sf_flush

Syntax (CCOWN)

void tf_flush(int file_handle)
void sf_flush(int file_handle)

Syntax (DP4DBAPI)

BOOLEAN dp4_sf_flush(FCONN * fconn);

Parameters

int file_handle

File handle of file to flush, obtained by a successful call to tf_open() or sf_open()

 

FCONN * fconn

File handle of file to flush,obtained by a successful call to dp4_sf_open()

Description

The tf_flush() and sf_flush() functions flush data written to files, ensuring that it is all written from internal buffers to disk.

The sf_flush()amd dp4_sf_flush() functions call the file handling support in the database manager, and the tf_flush() function calls the file handling support in the terminal manager. You must not call an sf_ function with a handle obtained with tf_open(), or a tf_ function with a handle obtained with sf_open().

See also

tf_open()