static oe_off_t _hostfs_lseek(oe_fd_t* desc, oe_off_t offset, int whence)
{
    oe_off_t ret = -1;
    file_t* file = _cast_file(desc);

    if (!file)
        OE_RAISE_ERRNO(OE_EINVAL);

    if (file->dir)
        ret = _hostfs_lseek_dir(desc, offset, whence);
    else
        ret = _hostfs_lseek_file(desc, offset, whence);

done:
    return ret;
}
static oe_off_t _hostfs_lseek(oe_fd_t* desc, oe_off_t offset, int whence)
{
    oe_off_t ret = -1;
    file_t* file = _cast_file(desc);

    if (!file)
        OE_RAISE_ERRNO(OE_EINVAL);

    if (file->dir)
        ret = _hostfs_lseek_dir(desc, offset, whence);
    else
        ret = _hostfs_lseek_file(desc, offset, whence);

done:
    return ret;
}