The ifx_lo_specset_def_open_flags() function

The ifx_lo_specset_def_open_flags() function sets the default open flags for a smart large object.

Syntax

mint ifx_lo_specset_def_open_flags(LO_spec, flags)

   ifx_lo_create_spec_t *LO_spec;

   mint flags;
LO_spec
A pointer to the LO-specification structure in which the default open flags are to be set.
flags
A mint value for the default open flags of the smart large object.

Usage

The most common use of this function is to specify that the smart large object always is to be opened by using unbuffered I/O. This function can also be used to supply any required default open flags for a smart large object. The supplied flags are used whenever the smart large object is later opened, unless explicitly overridden at open time.

Return codes

0
The function was successful
-1
The function was unsuccessful

Example

/* use unbuffered I/O on all opens for this LO */

ret = ifx_lo_specset_def_open_flags(lospec, LO_NOBUFFER);