Synopsis

PDX_MSGT dof_Open(long option, char *name, int buf_count, long buf_size, DOF_FILE **file)

Purpose

Open a buffered file.

Description

The specified file will be opened.

Input

option

DOF_OLD_FILE

File already exists and will be reopened.

DOF_TMP_FILE

File is a temporary file to be deleted at close.

DOF_HOLE_FILL

Enable hole filling for file.

DOF_RD_ONLY

Open file for read only.

DOF_KEEP_STATS

Track stats for the file and display them when the file is closed.

name

Name of the file to open.

buf_count

Number of buffers to allocate for file (-1 indicates to use the default DOF_BUFCNT), can not be 0

buf_size

Size of each file buffer (-1 indicates to use the default DOF_BUFSIZ), can not be 0

file

Address to store the DOF_FILE pointer at

Output

file

The DOF_FILE structure to use when referencing this file

Return

DOF error code