#include "lib/lib.h"
#include "lib/fastbuf.h"
+#include <stdio.h>
#include <stdlib.h>
struct fb_gbuf {
}
}
-static void
+static int
fbgrow_seek(struct fastbuf *b, sh_off_t pos, int whence)
{
ASSERT(FB_GBUF(b)->last_written); /* Seeks allowed only in read mode */
b->bptr = b->buffer + pos;
b->bstop = FB_GBUF(b)->last_written;
b->pos = len;
+ return 1;
}
static void