Mercurial > hg > cdb
comparison seek.h @ 0:2cb46628feec
from cdb-0.75 per http://cr.yp.to/cdb.html,
retrieved 2025-01-03,
contents appear to have been create on 2000-02-19
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Wed, 29 Jan 2025 10:50:34 +0000 |
| parents | |
| children | 45f98bfd1dfb |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:2cb46628feec |
|---|---|
| 1 #ifndef SEEK_H | |
| 2 #define SEEK_H | |
| 3 | |
| 4 typedef unsigned long seek_pos; | |
| 5 | |
| 6 extern seek_pos seek_cur(int); | |
| 7 | |
| 8 extern int seek_set(int,seek_pos); | |
| 9 extern int seek_end(int); | |
| 10 | |
| 11 extern int seek_trunc(int,seek_pos); | |
| 12 | |
| 13 #define seek_begin(fd) (seek_set((fd),(seek_pos) 0)) | |
| 14 | |
| 15 #endif |
