LCOV - code coverage report
Current view: top level - zephyr/posix - dirent.h Hit Total Coverage
Test: new.info Lines: 0 1 0.0 %
Date: 2024-12-22 00:14:23

          Line data    Source code
       1           0 : /*
       2             :  * Copyright (c) 2018 Intel Corporation
       3             :  *
       4             :  * SPDX-License-Identifier: Apache-2.0
       5             :  */
       6             : #ifndef ZEPHYR_INCLUDE_POSIX_DIRENT_H_
       7             : #define ZEPHYR_INCLUDE_POSIX_DIRENT_H_
       8             : 
       9             : #include <limits.h>
      10             : 
      11             : #include <zephyr/posix/posix_types.h>
      12             : 
      13             : #ifdef CONFIG_POSIX_FILE_SYSTEM
      14             : #include <zephyr/fs/fs.h>
      15             : 
      16             : #ifdef __cplusplus
      17             : extern "C" {
      18             : #endif
      19             : 
      20             : typedef void DIR;
      21             : 
      22             : struct dirent {
      23             :         unsigned int d_ino;
      24             :         char d_name[PATH_MAX + 1];
      25             : };
      26             : 
      27             : /* Directory related operations */
      28             : DIR *opendir(const char *dirname);
      29             : int closedir(DIR *dirp);
      30             : struct dirent *readdir(DIR *dirp);
      31             : int readdir_r(DIR *ZRESTRICT dirp, struct dirent *ZRESTRICT entry,
      32             :               struct dirent **ZRESTRICT result);
      33             : 
      34             : #ifdef __cplusplus
      35             : }
      36             : #endif
      37             : 
      38             : #endif /* CONFIG_POSIX_FILE_SYSTEM */
      39             : 
      40             : #endif  /* ZEPHYR_INCLUDE_POSIX_DIRENT_H_ */

Generated by: LCOV version 1.14