diff options
Diffstat (limited to 'cpukit/libcsupport/src/readdir_r.c')
-rw-r--r-- | cpukit/libcsupport/src/readdir_r.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/cpukit/libcsupport/src/readdir_r.c b/cpukit/libcsupport/src/readdir_r.c deleted file mode 100644 index 0347f25d8b..0000000000 --- a/cpukit/libcsupport/src/readdir_r.c +++ /dev/null @@ -1,35 +0,0 @@ -/** - * @file - * - * @brief Read a Directory - * @ingroup libcsupport - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#ifndef HAVE_READDIR_R - -#include <sys/types.h> -#include <dirent.h> -#include <errno.h> -#include <stdio.h> - -/** - * The RTEMS version of readdir is already thread-safe. - * This routine is reentrant version of readdir(). - */ -int readdir_r( - DIR *__restrict dirp, - struct dirent *__restrict entry, - struct dirent **__restrict result -) -{ - *result = readdir(dirp); - if (*result) - *entry = **result; - return *result ? 0 : errno; -} - -#endif |