GRASS GIS 7 Programmer's Manual  7.0.4(2016)-r00000
flush.c
Go to the documentation of this file.
1 
15 #include "local_proto.h"
16 
17 
32 int Segment_flush(SEGMENT * SEG)
33 {
34  int i;
35 
36  for (i = 0; i < SEG->nseg; i++)
37  if (SEG->scb[i].n >= 0 && SEG->scb[i].dirty)
38  seg_pageout(SEG, i);
39 
40  return 0;
41 }
int Segment_flush(SEGMENT *SEG)
Flush pending updates to disk.
Definition: flush.c:32
int seg_pageout(SEGMENT *SEG, int i)
Internal use only.
Definition: pageout.c:37