cdbmake_start.c (331B)
1 /* ISC license. */ 2 3 #include <unistd.h> 4 5 #include <skalibs/buffer.h> 6 #include <skalibs/genalloc.h> 7 #include <skalibs/cdbmake.h> 8 9 int cdbmake_start (cdbmaker *c, int fd) 10 { 11 c->hplist = genalloc_zero ; 12 c->pos = 2048 ; 13 buffer_init(&c->b, &buffer_write, fd, c->buf, BUFFER_OUTSIZE) ; 14 return lseek(fd, c->pos, SEEK_SET) >= 0 ; 15 }