Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2013-11-21 20:44:39 +0400
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-11-21 20:44:39 +0400
commita7c3258311f02587564df48055a8dabbab464fdc (patch)
treeb99e0a6d2baf283bc5afd65dac52f0484216d9fb /newlib/libc/posix/readdir_r.c
parentc9e978ed1b0a7ca8d0ed09480eba4b691c561271 (diff)
2013-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* libc/posix/readdir_r.c: Add restrict keyword. * libc/machine/spu/sys/dirent.h, libc/sys/decstation/sys/dirent.h, libc/sys/linux/sys/dirent.h, libc/sys/rtems/sys/dirent.h, libc/sys/sparc64/sys/dirent.h, libc/sys/sun4/sys/dirent.h, libc/sys/sysvi386/sys/dirent.h: Add readdir_r() prototype.
Diffstat (limited to 'newlib/libc/posix/readdir_r.c')
-rw-r--r--newlib/libc/posix/readdir_r.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/posix/readdir_r.c b/newlib/libc/posix/readdir_r.c
index 1d526e309..d13775b87 100644
--- a/newlib/libc/posix/readdir_r.c
+++ b/newlib/libc/posix/readdir_r.c
@@ -51,9 +51,9 @@ extern int getdents (int fd, void *dp, int count);
*/
int
_DEFUN(readdir_r, (dirp, dp, dpp),
- register DIR *dirp _AND
- struct dirent *dp _AND
- struct dirent **dpp) {
+ register DIR *__restrict dirp _AND
+ struct dirent *__restrict dp _AND
+ struct dirent **__restrict dpp) {
struct dirent *tmpdp;