static int _hostfs_close(oe_fd_t* desc)
{
    int ret = -1;
    file_t* file = _cast_file(desc);

    if (!file)
        OE_RAISE_ERRNO(OE_EINVAL);

    if (file->dir)
        ret = _hostfs_close_directory(desc);
    else
        ret = _hostfs_close_file(desc);

done:
    return ret;
}
static int _hostfs_close(oe_fd_t* desc)
{
    int ret = -1;
    file_t* file = _cast_file(desc);

    if (!file)
        OE_RAISE_ERRNO(OE_EINVAL);

    if (file->dir)
        ret = _hostfs_close_directory(desc);
    else
        ret = _hostfs_close_file(desc);

done:
    return ret;
}