summaryrefslogtreecommitdiffstats
path: root/include/stdio.h
diff options
context:
space:
mode:
authorrobert <robert@FreeBSD.org>2002-08-15 09:47:10 +0000
committerrobert <robert@FreeBSD.org>2002-08-15 09:47:10 +0000
commit4accb821f18b52fbbaf0d1e140d9ad40d85a1b97 (patch)
tree93309c791a798a5bcab0fbe9d6f7ff2aaf3301e6 /include/stdio.h
parent043ed1f5818681c934c1f781e5c12082c79b771c (diff)
downloadFreeBSD-src-4accb821f18b52fbbaf0d1e140d9ad40d85a1b97.zip
FreeBSD-src-4accb821f18b52fbbaf0d1e140d9ad40d85a1b97.tar.gz
- Introduce the 'restrict' qualifier to function prototypes and
definitions to comply with IEEE Std 1003.1-2001. - Update the manual pages.
Diffstat (limited to 'include/stdio.h')
-rw-r--r--include/stdio.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 4067b79..19f6208 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -221,7 +221,7 @@ int fgetc(FILE *);
int fgetpos(FILE *, fpos_t *);
char *fgets(char *, int, FILE *);
FILE *fopen(const char *, const char *);
-int fprintf(FILE *, const char *, ...);
+int fprintf(FILE *__restrict, const char *__restrict, ...);
int fputc(int, FILE *);
int fputs(const char *, FILE *);
size_t fread(void *, size_t, size_t, FILE *);
@@ -235,7 +235,7 @@ int getc(FILE *);
int getchar(void);
char *gets(char *);
void perror(const char *);
-int printf(const char *, ...);
+int printf(const char *__restrict, ...);
int putc(int, FILE *);
int putchar(int);
int puts(const char *);
@@ -245,7 +245,7 @@ void rewind(FILE *);
int scanf(const char *, ...);
void setbuf(FILE *__restrict, char *__restrict);
int setvbuf(FILE *__restrict, char *__restrict, int, size_t);
-int sprintf(char *, const char *, ...);
+int sprintf(char *__restrict, const char *__restrict, ...);
int sscanf(const char *, const char *, ...);
FILE *tmpfile(void);
char *tmpnam(char *);
@@ -255,7 +255,7 @@ int vprintf(const char *, _BSD_VA_LIST_);
int vsprintf(char *, const char *, _BSD_VA_LIST_);
#if __ISO_C_VISIBLE >= 1999
-int snprintf(char *, size_t, const char *, ...) __printflike(3, 4);
+int snprintf(char *__restrict, size_t, const char *__restrict, ...) __printflike(3, 4);
int vsnprintf(char *, size_t, const char *, _BSD_VA_LIST_)
__printflike(3, 0);
#endif
OpenPOWER on IntegriCloud