aboutsummaryrefslogtreecommitdiff
path: root/lib/libufs/bread.3
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2004-07-05 06:53:34 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2004-07-05 06:53:34 +0000
commitc81fcafd0d92925c970384c8f3dd06a491a35071 (patch)
tree8b55b52af9504e03f7fe2906d76823380725cbfc /lib/libufs/bread.3
parentb9384efc1c264c63a53d8c420461ef9c0c17c2b1 (diff)
Notes
Diffstat (limited to 'lib/libufs/bread.3')
-rw-r--r--lib/libufs/bread.313
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/libufs/bread.3 b/lib/libufs/bread.3
index 5fe7224285e5..80aa921f91e6 100644
--- a/lib/libufs/bread.3
+++ b/lib/libufs/bread.3
@@ -14,7 +14,7 @@
.Os
.Sh NAME
.Nm bread , bwrite
-.Nd read and write blocks of a UFS filesystem
+.Nd read and write blocks of a UFS file system
.Sh LIBRARY
.Lb libufs
.Sh SYNOPSIS
@@ -27,7 +27,10 @@
.Ft ssize_t
.Fn bread "struct uufsd *disk" "ufs2_daddr_t blockno" "void *data" "size_t size"
.Ft ssize_t
-.Fn bwrite "struct uufsd *disk" "ufs2_daddr_t blockno" "const void *data" "size_t size"
+.Fo bwrite
+.Fa "struct uufsd *disk" "ufs2_daddr_t blockno"
+.Fa "const void *data" "size_t size"
+.Fc
.Sh DESCRIPTION
The
.Fn bread
@@ -38,14 +41,14 @@ functions provide a block read and write API for
consumers.
They operate on a userland UFS disk structure, and perform the read
and write at a given block address, which uses the current
-.Fa d_bsize
+.Va d_bsize
value of the structure.
-.Pp
+.Sh RETURN VALUES
The
.Fn bread
and
.Fn bwrite
-functions return the amount read or written, or -1 in case of any error,
+functions return the amount read or written, or \-1 in case of any error,
including short read.
.Sh ERRORS
The function