about summary refs log tree commit diff
path: root/libio
diff options
context:
space:
mode:
Diffstat (limited to 'libio')
-rw-r--r--libio/libio.h4
-rw-r--r--libio/stdio.h9
2 files changed, 8 insertions, 5 deletions
diff --git a/libio/libio.h b/libio/libio.h
index 2e9e62ad61..7c91f6f6de 100644
--- a/libio/libio.h
+++ b/libio/libio.h
@@ -57,9 +57,9 @@
 #  include <sys/cdefs.h>
 # else
 #  ifdef __STDC__
-#   define __P(protos) protos
+#   define __P(p) p
 #  else
-#   define __P(protos) ()
+#   define __P(p) ()
 #  endif
 # endif
 #endif /*!__P*/
diff --git a/libio/stdio.h b/libio/stdio.h
index da796ecbe4..5ba8a30da6 100644
--- a/libio/stdio.h
+++ b/libio/stdio.h
@@ -189,13 +189,16 @@ extern int fcloseall __P ((void));
 
 /* Open a file and create a new stream for it.  */
 #ifndef __USE_FILE_OFFSET64
-extern FILE *fopen __P ((__const char *__filename, __const char *__modes));
+extern FILE *fopen __P ((__const char *__restrict __filename,
+			 __const char *__restrict __modes));
 #else
-extern FILE *fopen __P ((__const char *__filename, __const char *__modes))
+extern FILE *fopen __P ((__const char *__restrict __filename,
+			 __const char *__restrict __modes))
      __asm__ ("fopen64");
 #endif
 #ifdef __USE_LARGEFILE64
-extern FILE *fopen64 __P ((__const char *__filename, __const char *__modes));
+extern FILE *fopen64 __P ((__const char *__restrict __filename,
+			   __const char *__restrict __modes));
 #endif
 /* Open a file, replacing an existing stream with it. */
 #ifndef __USE_FILE_OFFSET64