summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-07-18 08:33:07 +0000
committerngie <ngie@FreeBSD.org>2017-07-18 08:33:07 +0000
commit1eb97000fe25ac2d7ab799065b6555b697b4b11f (patch)
tree706756dc2bb3a6942d8771ff1b424969baecf34a /lib/libc
parent940336f373bbd200daf8bd0dacf42513d3fe3cf0 (diff)
downloadFreeBSD-src-1eb97000fe25ac2d7ab799065b6555b697b4b11f.zip
FreeBSD-src-1eb97000fe25ac2d7ab799065b6555b697b4b11f.tar.gz
MFC r318705,r318711:
r318705: fopen(3): make manlint fixes - Break on new lines. - Use .Dv with NULL. - Rewrap lines as necessary/when possible. r318711: fopencookie(3): declare function pointers in SYNOPSIS correctly Add obligatory `*` in declarations.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdio/fopen.315
-rw-r--r--lib/libc/stdio/fopencookie.38
2 files changed, 14 insertions, 9 deletions
diff --git a/lib/libc/stdio/fopen.3 b/lib/libc/stdio/fopen.3
index f25e6df..70dcb5a 100644
--- a/lib/libc/stdio/fopen.3
+++ b/lib/libc/stdio/fopen.3
@@ -230,15 +230,20 @@ argument,
.Fn fmemopen
allocates
.Fa size
-bytes of memory. This buffer is automatically freed when the
-stream is closed. Buffers can be opened in text-mode (default) or binary-mode
+bytes of memory.
+This buffer is automatically freed when the stream is closed.
+Buffers can be opened in text-mode (default) or binary-mode
(if
.Dq Li b
is present in the second or third position of the
.Fa mode
-argument). Buffers opened in text-mode make sure that writes are terminated with
-a NULL byte, if the last write hasn't filled up the whole buffer. Buffers
-opened in binary-mode never append a NULL byte.
+argument).
+Buffers opened in text-mode make sure that writes are terminated with a
+.Dv NULL
+byte, if the last write hasn't filled up the whole buffer.
+Buffers opened in binary-mode never append a
+.Dv NULL
+byte.
.Sh RETURN VALUES
Upon successful completion
.Fn fopen ,
diff --git a/lib/libc/stdio/fopencookie.3 b/lib/libc/stdio/fopencookie.3
index 4903e91..349b349 100644
--- a/lib/libc/stdio/fopencookie.3
+++ b/lib/libc/stdio/fopencookie.3
@@ -35,13 +35,13 @@
.Sh SYNOPSIS
.In stdio.h
.Ft typedef ssize_t
-.Fn (cookie_read_function_t) "void *cookie" "char *buf" "size_t size"
+.Fn (*cookie_read_function_t) "void *cookie" "char *buf" "size_t size"
.Ft typedef ssize_t
-.Fn (cookie_write_function_t) "void *cookie" "const char *buf" "size_t size"
+.Fn (*cookie_write_function_t) "void *cookie" "const char *buf" "size_t size"
.Ft typedef int
-.Fn (cookie_seek_function_t) "void *cookie" "off64_t *offset" "int whence"
+.Fn (*cookie_seek_function_t) "void *cookie" "off64_t *offset" "int whence"
.Ft typedef int
-.Fn (cookie_close_function_t) "void *cookie"
+.Fn (*cookie_close_function_t) "void *cookie"
.Bd -literal
typedef struct {
cookie_read_function_t *read;
OpenPOWER on IntegriCloud