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

Segment page-in routines. More...

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

Go to the source code of this file.

Functions

int segment_pagein (SEGMENT *SEG, int n)
 Segment pagein. More...
 

Detailed Description

Segment page-in 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 pagein.c.

Function Documentation

int segment_pagein ( SEGMENT *  SEG,
int  n 
)

Segment pagein.

Finds n in the segment file, seg, and selects it as the current segment.

Parameters
[in]segsegment
[in]nsegment number
Returns
1 if successful
-1 if unable to seek or read segment file

Definition at line 39 of file pagein.c.

References errno, G_debug(), G_warning(), n, segment_pageout(), and segment_seek().

Referenced by segment_get(), and segment_put().