GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-bea8435a9e
|
Segment page-out routines. More...
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <grass/gis.h>
#include "local_proto.h"
Go to the source code of this file.
Functions | |
int | seg_pageout (SEGMENT *SEG, int i) |
Internal use only. More... | |
Segment page-out routines.
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file pageout.c.
int seg_pageout | ( | SEGMENT * | SEG, |
int | i | ||
) |
Internal use only.
Pages segment to disk.
Finds segment value i in segment seg and pages it out to disk.
[in] | SEG | segment |
[in] | i | segment value |
Definition at line 35 of file pageout.c.
References SEGMENT::scb::buf, SEGMENT::scb::dirty, err(), SEGMENT::fd, G_warning(), SEGMENT::scb::n, SEGMENT::scb, SEGMENT::seek, and SEGMENT::size.
Referenced by Segment_flush().