summaryrefslogtreecommitdiff
path: root/libio/stdio.h
diff options
context:
space:
mode:
Diffstat (limited to 'libio/stdio.h')
-rw-r--r--libio/stdio.h9
1 files changed, 6 insertions, 3 deletions
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