GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-b2e2571e19
|
Segment setup routines. More...
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <grass/gis.h>
#include "local_proto.h"
Go to the source code of this file.
Functions | |
int | seg_setup (SEGMENT *SEG) |
Internal use only. More... | |
Segment setup 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 segment/setup.c.
int seg_setup | ( | SEGMENT * | SEG | ) |
Internal use only.
Setup segment.
SEG must have the following parms set: fd (open for read and write), nrows, ncols, srows, scols, len, nseg
[in,out] | SEG | segment |
Definition at line 34 of file segment/setup.c.
References SEGMENT::address, SEGMENT::scb::age, SEGMENT::agequeue, SEGMENT::scb::buf, SEGMENT::cache, aq::cur, SEGMENT::cur, SEGMENT::scb::dirty, SEGMENT::fast_adrs, SEGMENT::fast_seek, SEGMENT::fd, SEGMENT::freeslot, G_debug(), G_malloc, G_warning(), SEGMENT::len, SEGMENT::lenbits, SEGMENT::load_idx, SEGMENT::scb::n, SEGMENT::ncols, SEGMENT::nfreeslots, SEGMENT::nrows, SEGMENT::nseg, NULL, SEGMENT::offset, aq::older, SEGMENT::oldest, SEGMENT::open, SEGMENT::scb, SEGMENT::scolbits, SEGMENT::scols, SEGMENT::seek, seg_address_fast(), seg_address_slow(), seg_seek_fast(), seg_seek_slow(), SEGMENT::segbits, SEGMENT::size, SEGMENT::sizebits, SEGMENT::spill, SEGMENT::spr, SEGMENT::srowbits, SEGMENT::srows, SEGMENT::srowscols, aq::younger, and SEGMENT::youngest.