Line data Source code
1 0 : /*
2 : * Copyright (c) 2024 Tenstorrent AI ULC
3 : *
4 : * SPDX-License-Identifier: Apache-2.0
5 : */
6 :
7 : #ifndef ZEPHYR_INCLUDE_POSIX_SYS_DIRENT_H_
8 : #define ZEPHYR_INCLUDE_POSIX_SYS_DIRENT_H_
9 :
10 : #include <limits.h>
11 :
12 : #if !defined(NAME_MAX) && defined(_XOPEN_SOURCE)
13 : #define NAME_MAX _XOPEN_NAME_MAX
14 : #endif
15 :
16 : #if !defined(NAME_MAX) && defined(_POSIX_C_SOURCE)
17 : #define NAME_MAX _POSIX_NAME_MAX
18 : #endif
19 :
20 : #ifdef __cplusplus
21 : extern "C" {
22 : #endif
23 :
24 0 : typedef void DIR;
25 :
26 0 : struct dirent {
27 0 : unsigned int d_ino;
28 0 : char d_name[NAME_MAX + 1];
29 : };
30 :
31 : #ifdef __cplusplus
32 : }
33 : #endif
34 :
35 : #endif /* ZEPHYR_INCLUDE_POSIX_SYS_DIRENT_H_ */
|