16 #include <sys/types.h>
20 #include <grass/config.h>
21 #include <grass/gis.h>
22 #include <grass/segment.h>
41 offset = (off_t) n *SEG->size + index + SEG->offset;
43 if (lseek(SEG->fd, offset, SEEK_SET) == (off_t) - 1) {
int segment_seek(const SEGMENT *SEG, int n, int index)
G_warning("category support for [%s] in mapset [%s] %s", name, mapset, type)