summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorSahil Patnayakunii <sahilp@rtems.org>2013-07-24 13:10:32 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-07-24 13:14:29 -0500
commit5711ecffef50e11d37f959979c84b092530e62da (patch)
tree5443ceb0028ab651f075a9393a46587706ea63c7 /cpukit
parentPOSIX Semaphore: Add restrict keyword per Single UNIX Specification (diff)
downloadrtems-5711ecffef50e11d37f959979c84b092530e62da.tar.bz2
readdir_r(): Add restrict keyword per Single UNIX Specification
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libcsupport/src/readdir_r.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/readdir_r.c b/cpukit/libcsupport/src/readdir_r.c
index ba0e53af92..0347f25d8b 100644
--- a/cpukit/libcsupport/src/readdir_r.c
+++ b/cpukit/libcsupport/src/readdir_r.c
@@ -20,7 +20,11 @@
* The RTEMS version of readdir is already thread-safe.
* This routine is reentrant version of readdir().
*/
-int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result)
+int readdir_r(
+ DIR *__restrict dirp,
+ struct dirent *__restrict entry,
+ struct dirent **__restrict result
+)
{
*result = readdir(dirp);
if (*result)