16 #include <sys/types.h> 21 #include "local_proto.h" 36 #define SEG_SEEK_FAST(SEG, n, index) \ 37 ((((off_t) (n)) << (SEG)->sizebits) + (index) + (SEG)->offset) 39 #define SEG_SEEK_SLOW(SEG, n, index) \ 40 ((off_t) (n) * (SEG)->size + (index) + (SEG)->offset) 45 SEEK_SET) == (off_t) -1) {
55 SEEK_SET) == (off_t) -1) {
64 return SEG->
seek(SEG, n, index);
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
int seg_seek_fast(const SEGMENT *SEG, int n, int index)
int seg_seek(const SEGMENT *SEG, int n, int index)
#define SEG_SEEK_SLOW(SEG, n, index)
int seg_seek_slow(const SEGMENT *SEG, int n, int index)
#define SEG_SEEK_FAST(SEG, n, index)
Internal use only.