[rtems commit] readdir_r(): Add restrict keyword per Single UNIX Specification
Joel Sherrill
joel at rtems.org
Wed Jul 24 18:08:28 UTC 2013
Module: rtems
Branch: master
Commit: 5711ecffef50e11d37f959979c84b092530e62da
Changeset: http://git.rtems.org/rtems/commit/?id=5711ecffef50e11d37f959979c84b092530e62da
Author: Sahil Patnayakunii <sahilp at rtems.org>
Date: Wed Jul 24 13:10:32 2013 -0500
readdir_r(): Add restrict keyword per Single UNIX Specification
---
cpukit/libcsupport/src/readdir_r.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/cpukit/libcsupport/src/readdir_r.c b/cpukit/libcsupport/src/readdir_r.c
index ba0e53a..0347f25 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)
More information about the vc
mailing list