22#include "local_proto.h"
57 ncols =
SEG->ncols -
SEG->spill;
59 size = scols *
SEG->len;
61 for (
col = 0;
col < ncols;
col += scols) {
65 G_warning(
_(
"File read/write operation failed: %s (%d)"),
70 if (
read(
SEG->fd, buf, size) != size) {
80 buf = ((
char *)buf) + size;
82 if ((size =
SEG->spill *
SEG->len)) {
86 G_warning(
_(
"File read/write operation failed: %s (%d)"),
91 if (
read(
SEG->fd, buf, size) != size) {
AMI_err seek(off_t offset)
void G_warning(const char *,...) __attribute__((format(printf
int Segment_get_row(const SEGMENT *SEG, void *buf, off_t row)
SYMBOL * err(FILE *fp, SYMBOL *s, char *msg)