view seek.h @ 1:41b9b6a160d1

access functions, use all 32 bits for anything to do with a mapped cdb file
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 29 Jan 2025 12:34:14 +0000
parents 2cb46628feec
children 45f98bfd1dfb
line wrap: on
line source

#ifndef SEEK_H
#define SEEK_H

typedef unsigned long 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