diff options
author | Sahil Patnayakunii <sahilp@rtems.org> | 2013-07-24 13:10:32 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-07-24 13:14:29 -0500 |
commit | 5711ecffef50e11d37f959979c84b092530e62da (patch) | |
tree | 5443ceb0028ab651f075a9393a46587706ea63c7 /cpukit | |
parent | POSIX Semaphore: Add restrict keyword per Single UNIX Specification (diff) | |
download | rtems-5711ecffef50e11d37f959979c84b092530e62da.tar.bz2 |
readdir_r(): Add restrict keyword per Single UNIX Specification
Diffstat (limited to 'cpukit')
-rw-r--r-- | 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 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) |