19 #include <grass/segment.h>
20 #include <grass/gis.h>
54 ncols = SEG->ncols - SEG->spill;
56 size = scols * SEG->len;
59 for (col = 0; col < ncols; col += scols) {
63 (
"Failed seek in segment file for index = %d n = %d at col:row %d:%d",
68 if ((result = write(SEG->fd, buf, size)) != size) {
79 buf = ((
const char *)buf) + size;
82 if ((size = SEG->spill * SEG->len)) {
86 (
"Failed seek in segment file for index = %d n = %d at col:row %d:%d",
90 if (write(SEG->fd, buf, size) != size) {
91 G_warning(
"segment_put_row final write error: %s",