diff options
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r-- | winsup/cygwin/include/cygwin/stat.h | 8 | ||||
-rw-r--r-- | winsup/cygwin/include/glob.h | 2 | ||||
-rw-r--r-- | winsup/cygwin/include/sys/dirent.h | 3 |
3 files changed, 8 insertions, 5 deletions
diff --git a/winsup/cygwin/include/cygwin/stat.h b/winsup/cygwin/include/cygwin/stat.h index ed96fafd9..73f3e9310 100644 --- a/winsup/cygwin/include/cygwin/stat.h +++ b/winsup/cygwin/include/cygwin/stat.h @@ -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 diff --git a/winsup/cygwin/include/glob.h b/winsup/cygwin/include/glob.h index 35745196b..4ad200fd5 100644 --- a/winsup/cygwin/include/glob.h +++ b/winsup/cygwin/include/glob.h @@ -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 diff --git a/winsup/cygwin/include/sys/dirent.h b/winsup/cygwin/include/sys/dirent.h index 027fa8f73..46c34ab5e 100644 --- a/winsup/cygwin/include/sys/dirent.h +++ b/winsup/cygwin/include/sys/dirent.h @@ -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 *); |