* 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.
+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.
+
2013-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* libc/sys/rdos/stat.c: Remove stray +.
DIR *opendir(const char *);
int closedir(DIR *);
struct dirent *readdir (DIR *);
+int readdir_r (DIR *__restrict, struct dirent *__restrict,
+ struct dirent **__restrict);
void rewinddir(DIR *);
void seekdir(DIR *dir, off_t offset);
off_t telldir(DIR *dir);
*/
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;
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 *);
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 *);
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);
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 *);
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 *);
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 *);