From 23f0c1fcf6f10d439a9fa886f7d8ec5f5eb627e6 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sun, 13 Apr 1997 13:35:33 +0000 Subject: [PATCH] Fixed #include and/or prototype bugs in synopsis. --- lib/libc/stdio/fopen.3 | 6 +++--- lib/libc/stdio/fseek.3 | 2 +- lib/libc/stdio/funopen.3 | 2 +- lib/libc/stdio/setbuf.3 | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/libc/stdio/fopen.3 b/lib/libc/stdio/fopen.3 index 17cfc969906e..f954d6c45aa8 100644 --- a/lib/libc/stdio/fopen.3 +++ b/lib/libc/stdio/fopen.3 @@ -46,11 +46,11 @@ .Sh SYNOPSIS .Fd #include .Ft FILE * -.Fn fopen "char *path" "char *mode" +.Fn fopen "const char *path" "const char *mode" .Ft FILE * -.Fn fdopen "int fildes" "char *mode" +.Fn fdopen "int fildes" "const char *mode" .Ft FILE * -.Fn freopen "char *path" "char *mode" "FILE *stream" +.Fn freopen "const char *path" "const char *mode" "FILE *stream" .Sh DESCRIPTION The .Fn fopen diff --git a/lib/libc/stdio/fseek.3 b/lib/libc/stdio/fseek.3 index 4d22276a5090..5dd79e91aa50 100644 --- a/lib/libc/stdio/fseek.3 +++ b/lib/libc/stdio/fseek.3 @@ -56,7 +56,7 @@ .Ft int .Fn fgetpos "FILE *stream" "fpos_t *pos" .Ft int -.Fn fsetpos "FILE *stream" "fpos_t *pos" +.Fn fsetpos "FILE *stream" "const fpos_t *pos" .Sh DESCRIPTION The .Fn fseek diff --git a/lib/libc/stdio/funopen.3 b/lib/libc/stdio/funopen.3 index 5e57756e0937..90e98d4d2890 100644 --- a/lib/libc/stdio/funopen.3 +++ b/lib/libc/stdio/funopen.3 @@ -44,7 +44,7 @@ .Sh SYNOPSIS .Fd #include .Ft FILE * -.Fn funopen "void *cookie" "int (*readfn)(void *, char *, int)" "int (*writefn)(void *, const char *, int)" "fpos_t (*seekfn)(void *, fpos_t, int)" "int (*closefn)(void *)" +.Fn funopen "const void *cookie" "int (*readfn)(void *, char *, int)" "int (*writefn)(void *, const char *, int)" "fpos_t (*seekfn)(void *, fpos_t, int)" "int (*closefn)(void *)" .Ft FILE * .Fn fropen "void *cookie" "int (*readfn)(void *, char *, int)" .Ft FILE * diff --git a/lib/libc/stdio/setbuf.3 b/lib/libc/stdio/setbuf.3 index a94dec17a304..ec5bbd83e23b 100644 --- a/lib/libc/stdio/setbuf.3 +++ b/lib/libc/stdio/setbuf.3 @@ -49,7 +49,7 @@ .Ft void .Fn setbuf "FILE *stream" "char *buf" .Ft void -.Fn setbuffer "FILE *stream" "char *buf" "size_t size" +.Fn setbuffer "FILE *stream" "char *buf" "int size" .Ft int .Fn setlinebuf "FILE *stream" .Ft int