Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
dirent.h
Go to the documentation of this file.
1
/*
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
#include <
limits.h
>
10
#include "
posix_types.h
"
11
12
#ifdef CONFIG_POSIX_FS
13
#include <
fs/fs.h
>
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
19
typedef
void
DIR;
20
21
struct
dirent {
22
unsigned
int
d_ino;
23
char
d_name[
PATH_MAX
+ 1];
24
};
25
26
/* Directory related operations */
27
extern
DIR *opendir(
const
char
*dirname);
28
extern
int
closedir(DIR *dirp);
29
extern
struct
dirent *readdir(DIR *dirp);
30
31
#ifdef __cplusplus
32
}
33
#endif
34
35
#endif
/* CONFIG_POSIX_FS */
36
37
#endif
/* ZEPHYR_INCLUDE_POSIX_DIRENT_H_ */
fs.h
limits.h
PATH_MAX
#define PATH_MAX
Definition:
limits.h:83
posix_types.h
include
posix
dirent.h
Generated on Sun Oct 9 2022 09:21:57 for Zephyr API Documentation by
1.9.4