~aleteoryx/muditaos

ref: 00ef5e69b87cf8cc44ff767d8f5fa8c0e2fb4b6e muditaos/board/linux/libiosyscalls/include/dirent_support.hpp -rw-r--r-- 564 bytes
00ef5e69 — Marcin Smoczyński changelog: fix broken changelog for v0.49.1 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once

#include <dirent.h>


namespace vfsn::linux::internal::diren
{
    struct DIR_ITER {
        void *dir_state = nullptr;
        char name_state[NAME_MAX+1] = { '\0' };
    };

    DIR_ITER *diropen(int &_errno_, const char *path);
    int dirreset(int &_errno_, DIR_ITER *state);
    int dirnext(int &_errno_, DIR_ITER *state);
    int dirclose(int &_errno_, DIR_ITER *state);
} // namespace vfsn::internal::dirent