2018-09-27 16:54:24 +02:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
#ifndef ZEPHYR_INCLUDE_POSIX_DIRENT_H_
|
|
|
|
#define ZEPHYR_INCLUDE_POSIX_DIRENT_H_
|
|
|
|
|
|
|
|
#include <limits.h>
|
2019-02-19 19:49:04 +01:00
|
|
|
#include "posix_types.h"
|
2018-09-27 16:54:24 +02:00
|
|
|
|
2024-05-23 01:56:11 +02:00
|
|
|
#ifdef CONFIG_POSIX_FILE_SYSTEM
|
2022-05-06 10:30:42 +02:00
|
|
|
#include <zephyr/fs/fs.h>
|
2018-09-27 16:54:24 +02:00
|
|
|
|
2019-08-12 19:55:06 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2018-10-08 13:01:46 +02:00
|
|
|
typedef void DIR;
|
2018-09-27 16:54:24 +02:00
|
|
|
|
|
|
|
struct dirent {
|
|
|
|
unsigned int d_ino;
|
|
|
|
char d_name[PATH_MAX + 1];
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Directory related operations */
|
2023-10-27 21:50:51 +02:00
|
|
|
DIR *opendir(const char *dirname);
|
|
|
|
int closedir(DIR *dirp);
|
|
|
|
struct dirent *readdir(DIR *dirp);
|
2018-09-27 16:54:24 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2024-05-23 01:56:11 +02:00
|
|
|
#endif /* CONFIG_POSIX_FILE_SYSTEM */
|
2019-08-12 19:55:06 +02:00
|
|
|
|
2018-09-27 16:54:24 +02:00
|
|
|
#endif /* ZEPHYR_INCLUDE_POSIX_DIRENT_H_ */
|