blob: 8242b990a1ea65d3ff98909b3292fa47c00759f7 [file] [log] [blame]
Paul Sokolovskyc152ebd2018-09-27 17:54:24 +03001/*
2 * Copyright (c) 2018 Intel Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6#ifndef ZEPHYR_INCLUDE_POSIX_DIRENT_H_
7#define ZEPHYR_INCLUDE_POSIX_DIRENT_H_
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13#include <limits.h>
14#include "sys/types.h"
15
16#ifdef CONFIG_POSIX_FS
17#include <fs.h>
18
Paul Sokolovskyb6e58d52018-10-08 14:01:46 +030019typedef void DIR;
Paul Sokolovskyc152ebd2018-09-27 17:54:24 +030020
21struct dirent {
22 unsigned int d_ino;
23 char d_name[PATH_MAX + 1];
24};
25
26/* Directory related operations */
27extern DIR *opendir(const char *dirname);
28extern int closedir(DIR *dirp);
29extern struct dirent *readdir(DIR *dirp);
30
31#endif
32
33#ifdef __cplusplus
34}
35#endif
36
37#endif /* ZEPHYR_INCLUDE_POSIX_DIRENT_H_ */