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