GRASS Programmer's Manual  6.4.2(2012)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
flush.c File Reference

Segment flush routines. More...

#include <grass/segment.h>
Include dependency graph for flush.c:

Go to the source code of this file.

Functions

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

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.

Author:
GRASS GIS Development Team
Date:
2005-2006

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.

Parameters:
[in]segsegment
Returns:
always returns 0

Definition at line 32 of file flush.c.

References segment_pageout().