summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-04-13 13:35:33 +0000
committerbde <bde@FreeBSD.org>1997-04-13 13:35:33 +0000
commit9d3ce8b6e3e7b6207a6c6fb57b2609a78c8c5bde (patch)
tree2c27756020127b3b460122f8c2a94e7b7c2159f7 /lib/libc/stdio
parentd4bdcb159bfe42ea0bca83ef22c4eed7fa278d7b (diff)
downloadFreeBSD-src-9d3ce8b6e3e7b6207a6c6fb57b2609a78c8c5bde.zip
FreeBSD-src-9d3ce8b6e3e7b6207a6c6fb57b2609a78c8c5bde.tar.gz
Fixed #include and/or prototype bugs in synopsis.
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r--lib/libc/stdio/fopen.36
-rw-r--r--lib/libc/stdio/fseek.32
-rw-r--r--lib/libc/stdio/funopen.32
-rw-r--r--lib/libc/stdio/setbuf.32
4 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/stdio/fopen.3 b/lib/libc/stdio/fopen.3
index 17cfc96..f954d6c 100644
--- a/lib/libc/stdio/fopen.3
+++ b/lib/libc/stdio/fopen.3
@@ -46,11 +46,11 @@
.Sh SYNOPSIS
.Fd #include <stdio.h>
.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 4d22276..5dd79e9 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 5e57756..90e98d4 100644
--- a/lib/libc/stdio/funopen.3
+++ b/lib/libc/stdio/funopen.3
@@ -44,7 +44,7 @@
.Sh SYNOPSIS
.Fd #include <stdio.h>
.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 a94dec1..ec5bbd8 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
OpenPOWER on IntegriCloud