Zephyr API Documentation
4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
dirent.h
Go to the documentation of this file.
1
/*
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
#include <
zephyr/posix/posix_features.h
>
13
14
#if !defined(NAME_MAX) && defined(_XOPEN_SOURCE)
15
#define NAME_MAX _XOPEN_NAME_MAX
16
#endif
17
18
#if !defined(NAME_MAX) && defined(_POSIX_C_SOURCE)
19
#define NAME_MAX _POSIX_NAME_MAX
20
#endif
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
26
typedef
void
DIR
;
27
28
struct
dirent
{
29
unsigned
int
d_ino
;
30
char
d_name
[NAME_MAX + 1];
31
};
32
33
#ifdef __cplusplus
34
}
35
#endif
36
37
#endif
/* ZEPHYR_INCLUDE_POSIX_SYS_DIRENT_H_ */
limits.h
posix_features.h
dirent
Definition
dirent.h:28
dirent::d_name
char d_name[NAME_MAX+1]
Definition
dirent.h:30
dirent::d_ino
unsigned int d_ino
Definition
dirent.h:29
DIR
void DIR
Definition
dirent.h:26
zephyr
posix
sys
dirent.h
Generated on Thu Jan 9 2025 06:02:42 for Zephyr API Documentation by
1.12.0