22#include "local_proto.h"
59 ncols =
SEG->ncols -
SEG->spill;
61 size = scols *
SEG->len;
65 for (
col = 0;
col < ncols;
col += scols) {
69 G_warning(
_(
"File read/write operation failed: %s (%d)"),
74 if ((result =
write(
SEG->fd, buf, size)) != size) {
87 buf = ((
const char *)buf) + size;
90 if ((size =
SEG->spill *
SEG->len)) {
94 G_warning(
_(
"File read/write operation failed: %s (%d)"),
99 if (
write(
SEG->fd, buf, size) != size) {
AMI_err seek(off_t offset)
void G_warning(const char *,...) __attribute__((format(printf
int Segment_put_row(const SEGMENT *SEG, const void *buf, off_t row)
Write row to segment file.
SYMBOL * err(FILE *fp, SYMBOL *s, char *msg)