#include "lib/fastbuf.h"
#include "lib/lfs.h"
+#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
static int
bfd_seek(struct fastbuf *f, sh_off_t pos, int whence)
{
- if (whence == SEEK_SET && pos == f->pos)
- return 1;
-
sh_off_t l = sh_seek(FB_FILE(f)->fd, pos, whence);
if (l < 0)
return 0;