diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/stdio/fprintf.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/printf.3 | 8 | ||||
-rw-r--r-- | lib/libc/stdio/printf.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/snprintf.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/sprintf.c | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/lib/libc/stdio/fprintf.c b/lib/libc/stdio/fprintf.c index 55ae1d5..4232cc7 100644 --- a/lib/libc/stdio/fprintf.c +++ b/lib/libc/stdio/fprintf.c @@ -44,7 +44,7 @@ __FBSDID("$FreeBSD$"); #include <stdarg.h> int -fprintf(FILE *fp, const char *fmt, ...) +fprintf(FILE *__restrict fp, const char *__restrict fmt, ...) { int ret; va_list ap; diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3 index ca9aae2..9a285a4 100644 --- a/lib/libc/stdio/printf.3 +++ b/lib/libc/stdio/printf.3 @@ -48,13 +48,13 @@ .Sh SYNOPSIS .In stdio.h .Ft int -.Fn printf "const char *format" ... +.Fn printf "const char *restrict format" ... .Ft int -.Fn fprintf "FILE *stream" "const char *format" ... +.Fn fprintf "FILE *restrict stream" "const char *restrict format" ... .Ft int -.Fn sprintf "char *str" "const char *format" ... +.Fn sprintf "char *restrict str" "const char *restrict format" ... .Ft int -.Fn snprintf "char *str" "size_t size" "const char *format" ... +.Fn snprintf "char *restrict str" "size_t size" "const char *restrict format" ... .Ft int .Fn asprintf "char **ret" "const char *format" ... .In stdarg.h diff --git a/lib/libc/stdio/printf.c b/lib/libc/stdio/printf.c index bd7d16c..1aa2767 100644 --- a/lib/libc/stdio/printf.c +++ b/lib/libc/stdio/printf.c @@ -44,7 +44,7 @@ __FBSDID("$FreeBSD$"); #include <stdarg.h> int -printf(char const *fmt, ...) +printf(char const *__restrict fmt, ...) { int ret; va_list ap; diff --git a/lib/libc/stdio/snprintf.c b/lib/libc/stdio/snprintf.c index e4cc7fc..c053ec9 100644 --- a/lib/libc/stdio/snprintf.c +++ b/lib/libc/stdio/snprintf.c @@ -47,7 +47,7 @@ __FBSDID("$FreeBSD$"); #include "local.h" int -snprintf(char *str, size_t n, char const *fmt, ...) +snprintf(char *__restrict str, size_t n, char const *__restrict fmt, ...) { size_t on; int ret; diff --git a/lib/libc/stdio/sprintf.c b/lib/libc/stdio/sprintf.c index e2511d6..71279ba 100644 --- a/lib/libc/stdio/sprintf.c +++ b/lib/libc/stdio/sprintf.c @@ -46,7 +46,7 @@ __FBSDID("$FreeBSD$"); #include "local.h" int -sprintf(char *str, char const *fmt, ...) +sprintf(char *__restrict str, char const *__restrict fmt, ...) { int ret; va_list ap; |