]> sourceware.org Git - newlib-cygwin.git/commitdiff
2013-11-21 Daniel Ramirez <javamonn@gmail.com>
authorJoel Sherrill <joel.sherrill@oarcorp.com>
Thu, 21 Nov 2013 16:35:47 +0000 (16:35 +0000)
committerJoel Sherrill <joel.sherrill@oarcorp.com>
Thu, 21 Nov 2013 16:35:47 +0000 (16:35 +0000)
* libc/include/sys/stat.h, libc/sys/linux/sys/stat.h,
libc/sys/m88kbug/syscalls.c, libc/sys/rdos/stat.c,
libc/sys/sparc64/sys/stat.h: Add restrict keyword.

newlib/ChangeLog
newlib/libc/include/sys/stat.h
newlib/libc/sys/linux/sys/stat.h
newlib/libc/sys/m88kbug/syscalls.c
newlib/libc/sys/rdos/stat.c
newlib/libc/sys/sparc64/sys/stat.h

index 420019d1e3dd94087ef3b781a2543b39ddd8ecb9..d9ca905c27986ba341f3cd196af27440f8c00e4b 100644 (file)
@@ -1,3 +1,9 @@
+2013-11-21  Daniel Ramirez <javamonn@gmail.com>
+
+       * libc/include/sys/stat.h, libc/sys/linux/sys/stat.h, 
+       libc/sys/m88kbug/syscalls.c, libc/sys/rdos/stat.c, 
+       libc/sys/sparc64/sys/stat.h: Add restrict keyword.
+
 2013-11-20  Daniel Ramirez <javamonn@gmail.com>
 
        * libc/include/search.h, libc/search/tdelete.c: Add restrict keyword.
index 937bcacd20526826bbc231d57fcd352a7551108a..dbd85ee24ce712f2550049787627eb13152149e4 100644 (file)
@@ -147,17 +147,17 @@ int     _EXFUN(fchmod,(int __fd, mode_t __mode));
 int    _EXFUN(fstat,( int __fd, struct stat *__sbuf ));
 int    _EXFUN(mkdir,( const char *_path, mode_t __mode ));
 int    _EXFUN(mkfifo,( const char *__path, mode_t __mode ));
-int    _EXFUN(stat,( const char *__path, struct stat *__sbuf ));
+int    _EXFUN(stat,( const char *__restrict __path, struct stat *__restrict __sbuf ));
 mode_t _EXFUN(umask,( mode_t __mask ));
 
 #if defined (__SPU__) || defined(__rtems__) || defined(__CYGWIN__) && !defined(__INSIDE_CYGWIN__)
-int    _EXFUN(lstat,( const char *__path, struct stat *__buf ));
+int    _EXFUN(lstat,( const char *__restrict __path, struct stat *__restrict __buf ));
 int    _EXFUN(mknod,( const char *__path, mode_t __mode, dev_t __dev ));
 #endif
 
 #if defined (__CYGWIN__) && !defined(__INSIDE_CYGWIN__)
 int    _EXFUN(fchmodat, (int, const char *, mode_t, int));
-int    _EXFUN(fstatat, (int, const char *, struct stat *, int));
+int    _EXFUN(fstatat, (int, const char *__restrict , struct stat *__restrict, int));
 int    _EXFUN(mkdirat, (int, const char *, mode_t));
 int    _EXFUN(mkfifoat, (int, const char *, mode_t));
 int    _EXFUN(mknodat, (int, const char *, mode_t, dev_t));
@@ -169,11 +169,11 @@ int       _EXFUN(futimens, (int, const struct timespec *));
    provided in newlib for some compilers.  */
 #ifdef _COMPILING_NEWLIB
 int    _EXFUN(_fstat,( int __fd, struct stat *__sbuf ));
-int    _EXFUN(_stat,( const char *__path, struct stat *__sbuf ));
+int    _EXFUN(_stat,( const char *__restrict __path, struct stat *__restrict __sbuf ));
 int    _EXFUN(_mkdir,( const char *_path, mode_t __mode ));
 #ifdef __LARGE64_FILES
 struct stat64;
-int    _EXFUN(_stat64,( const char *__path, struct stat64 *__sbuf ));
+int    _EXFUN(_stat64,( const char *__restrict __path, struct stat64 *__restrict __sbuf ));
 int    _EXFUN(_fstat64,( int __fd, struct stat64 *__sbuf ));
 #endif
 #endif
index 99da598ba3b13e2ff497b83fd033872615c7f5aa..c04142c458ecd15278c053497d425406a5f6fcde 100644 (file)
 int     _EXFUN(fstat,( int __fd, struct stat *__sbuf ));
 int     _EXFUN(mkdir,( const char *_path, mode_t __mode ));
 int     _EXFUN(mkfifo,( const char *__path, mode_t __mode ));
-int     _EXFUN(stat,( const char *__path, struct stat *__sbuf ));
+int     _EXFUN(stat,( const char *__restrict __path, struct stat *__restrict __sbuf ));
 mode_t  _EXFUN(umask,( mode_t __mask ));
 
 #ifndef _POSIX_SOURCE
 int     _EXFUN(fstat64,( int __fd, struct stat64 *__sbuf ));
-int    _EXFUN(lstat,( const char *file_name, struct stat64 *buf));
-int    _EXFUN(lstat64,( const char *file_name, struct stat64 *buf));
-int     _EXFUN(stat64,( const char *__path, struct stat64 *__sbuf ));
+int    _EXFUN(lstat,( const char *__restrict file_name, struct stat64 *__restrict buf));
+int    _EXFUN(lstat64,( const char *__restrict file_name, struct stat64 *__restrict buf));
+int     _EXFUN(stat64,( const char *__restrict __path, struct stat64 *__restrict __sbuf ));
 #endif /* _POSIX_SOURCE */
 
 #endif /* _SYS_STAT_H */
index 32f42a925bb3f67ab85459ee50af4663b58ce414..954dcf6b11c4cfddbdef131b22ebfbb5313534da 100644 (file)
@@ -76,7 +76,7 @@ int fstat(int file, struct stat *st) {
   return(0);
 }
 
-int stat(char *filename, struct stat *st) {
+int stat(char *__restrict filename, struct stat *__restrict st) {
   st->st_mode = S_IFCHR;
   return(0);
 }
index f1683b63af90f364faca2021446806d069c5cf77..542a3cc1b5faab33cf3bc060bc8b71b92bdf4aea 100755 (executable)
@@ -5,7 +5,7 @@
 #include <sys/stat.h>\r
 #include <errno.h>\r
 \r
-int stat(const char *file, struct stat *st)\r
++int stat(const char *__restrict file, struct stat *__restrict st)\r
 {\r
   errno = ENOSYS;\r
   return -1;\r
index 256c1b41b97ded64871c0b9db9c7ea67356544d5..26ed53f5947c29c03a253d4e4f2ef9ce3dfbac2c 100644 (file)
@@ -122,7 +122,7 @@ int _EXFUN(chmod,( const char *_path, mode_t _mode ));
 int    _EXFUN(fstat,( int _fd, struct stat *_sbuf ));
 int    _EXFUN(mkdir,( char *_path, mode_t _mode ));
 int    _EXFUN(mkfifo,( char *_path, mode_t _mode ));
-int    _EXFUN(stat,( const char *_path, struct stat *_sbuf ));
+int    _EXFUN(stat,( const char *__restrict _path, struct stat *__restrict _sbuf ));
 mode_t _EXFUN(umask,( mode_t _mask ));
 
 #ifdef __cplusplus
This page took 0.061697 seconds and 5 git commands to generate.