Zephyr API Documentation 4.2.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#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
21extern "C" {
22#endif
23
24typedef void DIR;
25
26struct dirent {
27 unsigned int d_ino;
28 char d_name[NAME_MAX + 1];
29};
30
31#ifdef __cplusplus
32}
33#endif
34
35#endif /* ZEPHYR_INCLUDE_POSIX_SYS_DIRENT_H_ */
Definition dirent.h:26
char d_name[NAME_MAX+1]
Definition dirent.h:28
unsigned int d_ino
Definition dirent.h:27
void DIR
Definition dirent.h:24