view seek.h @ 17:d9c11148df3b default tip

shh...
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Thu, 28 Aug 2025 11:02:58 +0100
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