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
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
23extern "C" {
24#endif
25
26typedef void DIR;
27
28struct 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_ */
Definition dirent.h:28
char d_name[NAME_MAX+1]
Definition dirent.h:30
unsigned int d_ino
Definition dirent.h:29
void DIR
Definition dirent.h:26