Mercurial > hg > cdb
view seek.h @ 12:0e21568dec72
allocate a Cdb struct rather than using a single static one,
note that cdb_free does _not_ call alloc_free, just releases the map,
in fact alloc_free is not called anywhere!
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Mon, 03 Feb 2025 17:31:23 +0000 |
| parents | 3bfef1f22a97 |
| children |
line wrap: on
line source
#ifndef SEEK_H #define SEEK_H #include <sys/types.h> #include <unistd.h> #include "uint32.h" typedef uint32 seek_pos; extern seek_pos seek_cur(int); extern int seek_set(int,seek_pos); extern int seek_end(int); extern int seek_trunc(int,seek_pos); #define seek_begin(fd) (seek_set((fd),(seek_pos) 0)) #endif
