return fd;
}
-static inline int fdSeekNot(void * cookie,
- _libio_pos_t pos, int whence)
+static int fdSeekNot(void * cookie, _libio_pos_t pos, int whence)
{
FD_t fd = c2f(cookie);
FDSANE(fd); /* XXX keep gcc quiet */
return rc;
}
-static inline int bzdSeek(void * cookie, _libio_pos_t pos,
- int whence)
-{
- FD_t fd = c2f(cookie);
-
- BZDONLY(fd);
- return -2;
-}
-
static int bzdClose( void * cookie)
{
FD_t fd = c2f(cookie);
}
static const struct FDIO_s bzdio_s = {
- bzdRead, bzdWrite, bzdSeek, bzdClose, fdLink, fdFree, fdNew, fdFileno,
+ bzdRead, bzdWrite, fdSeekNot, bzdClose, fdLink, fdFree, fdNew, fdFileno,
NULL, bzdOpen, bzdFileno, bzdFlush
};
static const FDIO_t bzdio = &bzdio_s ;
return rc;
}
-static inline int lzdSeek(void * cookie, _libio_pos_t pos, int whence)
-{
- FD_t fd = c2f(cookie);
-
- LZDONLY(fd);
- return -2;
-}
-
static int lzdClose(void * cookie)
{
FD_t fd = c2f(cookie);
}
static struct FDIO_s xzdio_s = {
- lzdRead, lzdWrite, lzdSeek, lzdClose, NULL, NULL, NULL, fdFileno,
+ lzdRead, lzdWrite, fdSeekNot, lzdClose, NULL, NULL, NULL, fdFileno,
NULL, xzdOpen, lzdFileno, lzdFlush
};
static const FDIO_t xzdio = &xzdio_s;
static struct FDIO_s lzdio_s = {
- lzdRead, lzdWrite, lzdSeek, lzdClose, NULL, NULL, NULL, fdFileno,
+ lzdRead, lzdWrite, fdSeekNot, lzdClose, NULL, NULL, NULL, fdFileno,
NULL, lzdOpen, lzdFileno, lzdFlush
};
static const FDIO_t lzdio = &lzdio_s;