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.
This commit is contained in:
@ -25,6 +25,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 *);
|
||||
|
||||
|
@ -36,6 +36,8 @@ typedef struct {
|
||||
|
||||
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 *);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -21,6 +21,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 *);
|
||||
|
||||
|
@ -23,6 +23,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 *);
|
||||
|
||||
|
@ -20,6 +20,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 *);
|
||||
|
||||
|
Reference in New Issue
Block a user