From a7c3258311f02587564df48055a8dabbab464fdc Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 21 Nov 2013 16:44:39 +0000 Subject: 2013-11-21 Joel Sherrill * 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. --- newlib/libc/sys/rtems/sys/dirent.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'newlib/libc/sys/rtems') diff --git a/newlib/libc/sys/rtems/sys/dirent.h b/newlib/libc/sys/rtems/sys/dirent.h index c52c7bcf7..8d2aa38cb 100644 --- a/newlib/libc/sys/rtems/sys/dirent.h +++ b/newlib/libc/sys/rtems/sys/dirent.h @@ -26,6 +26,8 @@ typedef struct _dirdesc { DIR *opendir(const char *); struct dirent *readdir(DIR *); +int readdir_r(DIR *__restrict, struct dirent *__restrict, + struct dirent **__restrict); void rewinddir(DIR *); int closedir(DIR *); void seekdir(DIR *dir, long loc); -- cgit v1.2.3