From 4b64f84a432f94425359802d506816872f43c5d7 Mon Sep 17 00:00:00 2001 From: robert Date: Wed, 14 Aug 2002 23:45:42 +0000 Subject: - Add the 'restrict' qualifier to the function definitions and public prototypes of setbuf(3) and setvbuf(3) using the '__restrict' macro from to be compliant with IEEE Std 1003.1-2001. - Replace the K&R with ANSI-C function definitions. - Bring the manual page up-to-date. --- lib/libc/stdio/setbuf.3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/stdio/setbuf.3') diff --git a/lib/libc/stdio/setbuf.3 b/lib/libc/stdio/setbuf.3 index d25f1b8..bfe6487 100644 --- a/lib/libc/stdio/setbuf.3 +++ b/lib/libc/stdio/setbuf.3 @@ -50,13 +50,13 @@ .Sh SYNOPSIS .In stdio.h .Ft void -.Fn setbuf "FILE *stream" "char *buf" +.Fn setbuf "FILE *restrict stream" "char *restrict buf" .Ft void .Fn setbuffer "FILE *stream" "char *buf" "int size" .Ft int .Fn setlinebuf "FILE *stream" .Ft int -.Fn setvbuf "FILE *stream" "char *buf" "int mode" "size_t size" +.Fn setvbuf "FILE *restrict stream" "char *restrict buf" "int mode" "size_t size" .Sh DESCRIPTION The three types of buffering available are unbuffered, block buffered, and line buffered. -- cgit v1.1