Mercurial > hg > cdb
view seek.h @ 16:70f4df5a7283
add cdb_write,
log basic mmap outcomes
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Thu, 27 Feb 2025 18:26:29 +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
