GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
pageout.c File Reference

Segment page-out routines. More...

#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <grass/segment.h>
Include dependency graph for pageout.c:

Go to the source code of this file.

Functions

int segment_pageout (SEGMENT *SEG, int i)
 Pages segment to disk. 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.

Author
GRASS GIS Development Team
Date
2005-2006

Definition in file pageout.c.

Function Documentation

int segment_pageout ( SEGMENT *  SEG,
int  i 
)

Pages segment to disk.

Finds segment value i in segment seg and pages it out to disk.

Parameters
[in]segsegment
[in]isegment value
Returns
1 if successful
-1 on error

Definition at line 36 of file pageout.c.

References errno, G_warning(), and segment_seek().

Referenced by segment_flush(), and segment_pagein().