diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-10-18 14:11:10 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-10-22 08:06:05 +0200 |
commit | 3cf12c9c6ac6579cfe07d9ddafeecf954d6940de (patch) | |
tree | 18a3aef9bd33378f6f7c6be471945371ab00912b /cpukit/libcsupport/src/readdir_r.c | |
parent | Support O_NOFOLLOW open() flag (diff) | |
download | rtems-3cf12c9c6ac6579cfe07d9ddafeecf954d6940de.tar.bz2 |
Remove strlcat(), strlcpy(), strsep(), readdir_r()
These functions are provided by Newlib since 2002.
Update #3409.
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 |