NXFileFlushBuffers

Flushes the buffers of a file.

Library:LibC
Classification:NKS
Service:File and Directory I/O

Syntax

  #include <nks/fsio.h> 
  
  int NXFileFlushBuffers (
     NXHandle_t      fileHandle,
     unsigned long   flags,
     NXOffset_t      offset,
     NXOffset_t      length); 
  

Parameters

fileHandle

(IN) Specifies a file handle (or descriptor), which refers to a system-maintained state description for a file.

flags

(IN) Specifies how the flush is handled. Currently not supported. Set to 0.

offset

(IN) Specifies the starting offset from which to start flushing. Currently not supported. Set to 0

length

(IN) Specifies the number of bytes in the file to flush. Currently not supported. Set to 0.

Return Values

If successful, returns 0. Otherwise, returns one of the following error codes:

Decimal

Hex

Constant

Description

4

0x04

NX_EBADF

The fileHandle parameter does not refer to a valid description of a file.

9

0x09

NX_EINVAL

The length and/or offset parameters are not be valid for the file system.

Remarks

NXFileFlushBuffers flushes buffers that have been modified in some way to the disk.

Currently, NetWare does not support range flushing and the whole file is flushed.

See Also