19 #include <grass/segment.h>
49 ncols = SEG->ncols - SEG->spill;
51 size = scols * SEG->len;
53 for (col = 0; col < ncols; col += scols) {
58 if (read(SEG->fd, buf, size) != size) {
68 buf = ((
char *)buf) +
size;
70 if ((size = SEG->spill * SEG->len)) {
75 if (read(SEG->fd, buf, size) != size) {
int segment_seek(const SEGMENT *SEG, int n, int index)
int segment_address(const SEGMENT *SEG, int row, int col, int *n, int *index)
int segment_get_row(const SEGMENT *SEG, void *buf, int row)
char buf[GNAME_MAX+sizeof(G3D_DIRECTORY)+2]
G_warning("category support for [%s] in mapset [%s] %s", name, mapset, type)