GRASS GIS 7 Programmer's Manual  7.5.svn(2018)-r73122
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
flush.c File Reference

Segment flush routines. More...

#include "local_proto.h"
Include dependency graph for flush.c:

Go to the source code of this file.


int Segment_flush (SEGMENT *SEG)
 Flush pending updates to disk. More...

Detailed Description

Segment flush routines.

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

GRASS GIS Development Team

Definition in file flush.c.

Function Documentation

int Segment_flush ( SEGMENT SEG)

Flush pending updates to disk.

Forces all pending updates generated by Segment_put() to be written to the segment file seg. Must be called after the final Segment_put() to force all pending updates to disk. Must also be called before the first call to Segment_get_row.

always returns 0

Definition at line 32 of file flush.c.

References SEGMENT::scb::dirty, SEGMENT::scb::n, SEGMENT::nseg, SEGMENT::scb, and seg_pageout().