static int _hostfs_rewinddir(oe_fd_t* desc)
{
    int ret = -1;
    dir_t* dir = _cast_dir(desc);

    if (!dir)
        OE_RAISE_ERRNO(OE_EINVAL);

    if (oe_syscall_rewinddir_ocall(dir->host_dir) != OE_OK)
        OE_RAISE_ERRNO(OE_EINVAL);

    ret = 0;

done:
    return ret;
}
static int _hostfs_rewinddir(oe_fd_t* desc)
{
    int ret = -1;
    dir_t* dir = _cast_dir(desc);

    if (!dir)
        OE_RAISE_ERRNO(OE_EINVAL);

    if (oe_syscall_rewinddir_ocall(dir->host_dir) != OE_OK)
        OE_RAISE_ERRNO(OE_EINVAL);

    ret = 0;

done:
    return ret;
}