GRASS GIS 8 Programmer's Manual  8.4.0dev(2024)-55b2a2bccc
pageout.c File Reference

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"
Include dependency graph for pageout.c:

Go to the source code of this file.


int seg_pageout (SEGMENT *SEG, int i)
 Internal use only. More...

Detailed Description

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.

GRASS GIS Development Team

Definition in file pageout.c.

Function Documentation

◆ seg_pageout()

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]isegment value
1 if successful
-1 on error

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().