Throughout, keep function definitions and declarations in sync with
newlib in terms of C99 "restrict" keyword.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
/* cygwin/stat.h
|
||||
|
||||
Copyright 2002, 2007, 2010 Red Hat Inc.
|
||||
Copyright 2002, 2007, 2010, 2013 Red Hat Inc.
|
||||
Written by Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
This file is part of Cygwin.
|
||||
@ -56,8 +56,10 @@ struct __stat32
|
||||
#endif
|
||||
|
||||
extern int fstat64 (int fd, struct stat *buf);
|
||||
extern int stat64 (const char *file_name, struct stat *buf);
|
||||
extern int lstat64 (const char *file_name, struct stat *buf);
|
||||
extern int stat64 (const char *__restrict file_name,
|
||||
struct stat *__restrict buf);
|
||||
extern int lstat64 (const char *__restrict file_name,
|
||||
struct stat *__restrict buf);
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -103,7 +103,7 @@ __BEGIN_DECLS
|
||||
# define DLLEXPORT __declspec(dllimport)
|
||||
#endif
|
||||
|
||||
int DLLEXPORT glob (const char *, int, int (*)(const char *, int), glob_t *);
|
||||
int DLLEXPORT glob (const char __restrict *, int, int (*)(const char *, int), glob_t *__restrict);
|
||||
void DLLEXPORT globfree (glob_t *);
|
||||
int DLLEXPORT glob_pattern_p (const char *, int);
|
||||
__END_DECLS
|
||||
|
@ -65,7 +65,8 @@ typedef struct __DIR
|
||||
DIR *opendir (const char *);
|
||||
DIR *fdopendir (int);
|
||||
struct dirent *readdir (DIR *);
|
||||
int readdir_r (DIR *, struct dirent *, struct dirent **);
|
||||
int readdir_r (DIR * __restrict, struct dirent * __restrict,
|
||||
struct dirent ** __restrict);
|
||||
void rewinddir (DIR *);
|
||||
int closedir (DIR *);
|
||||
|
||||
|
Reference in New Issue
Block a user