summaryrefslogtreecommitdiffstats
path: root/lib/libufs
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2003-06-10 18:36:16 +0000
committerjmallett <jmallett@FreeBSD.org>2003-06-10 18:36:16 +0000
commit25cc522581ed01e9d39d79313908b4f36e8475ee (patch)
tree553571380dd5dc4c0ddead95ecbe6099badbfcb6 /lib/libufs
parent957fe1b56ff09b44509d20d61fc796c61fcb85c7 (diff)
downloadFreeBSD-src-25cc522581ed01e9d39d79313908b4f36e8475ee.zip
FreeBSD-src-25cc522581ed01e9d39d79313908b4f36e8475ee.tar.gz
Various cleanups of careless mistakes/omissions.
PR: 53149 Submitted by: Lukas Ertl <l.ertl@univie.ac.at>
Diffstat (limited to 'lib/libufs')
-rw-r--r--lib/libufs/bread.36
-rw-r--r--lib/libufs/cgread.32
-rw-r--r--lib/libufs/libufs.312
-rw-r--r--lib/libufs/ufs_disk_close.32
4 files changed, 11 insertions, 11 deletions
diff --git a/lib/libufs/bread.3 b/lib/libufs/bread.3
index 44e0bef..b18ce4a 100644
--- a/lib/libufs/bread.3
+++ b/lib/libufs/bread.3
@@ -34,7 +34,7 @@ The
.Fn bread
and
.Fn bwrite
-functions provide a block read and write api for
+functions provide a block read and write API for
.Xr libufs 3
consumers.
They operate on a userland UFS disk structure, and perform the read
@@ -46,7 +46,7 @@ The
.Fn bread
and
.Fn bwrite
-functions return the amount 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
@@ -54,7 +54,7 @@ The function
may fail and set
.Va errno
for any of the errors specified for the library functions
-.Xr ufs_disk_write
+.Xr ufs_disk_write 3
or
.Xr pread 2 .
Additionally, it may follow the
diff --git a/lib/libufs/cgread.3 b/lib/libufs/cgread.3
index 02eefad..9245a62 100644
--- a/lib/libufs/cgread.3
+++ b/lib/libufs/cgread.3
@@ -46,7 +46,7 @@ into the
field of a userland UFS disk structure.
It sets the
.Fa d_lcg
-field to the cylinger group number
+field to the cylinder group number
.Fa c .
.Pp
The
diff --git a/lib/libufs/libufs.3 b/lib/libufs/libufs.3
index cf4b7d5..6250803 100644
--- a/lib/libufs/libufs.3
+++ b/lib/libufs/libufs.3
@@ -8,11 +8,11 @@
.\" $FreeBSD$
.\"
.Dd June 04, 2003
-.Dt SBREAD 3
+.Dt LIBUFS 3
.Os
.Sh NAME
.Nm libufs
-.Nd operate on UFS disks from userland
+.Nd operate on UFS filesystems from userland
.Sh LIBRARY
.Lb libufs
.Sh SYNOPSIS
@@ -35,7 +35,7 @@ and
.Xr dumpfs 8 .
The
.Nm
-library is designed to be simple, and provide functions that are
+library is designed to be simple, and to provide functions that are
traditionally useful to have.
.Pp
A disk is represented as the type
@@ -50,14 +50,14 @@ Functions provided by
return -1 in every functional error situation.
They also set the
.Fa d_error
-field to a string describing the error.
+field of
+.Dq struct uufsd
+to a string describing the error.
.Sh SEE ALSO
.Xr bread 3 ,
.Xr bwrite 3 ,
.Xr cgread 3 ,
.Xr cgread1 3 ,
-.Xr getino 3 ,
-.Xr putino 3 ,
.Xr sbread 3 ,
.Xr sbwrite 3 ,
.Xr ufs_disk_close 3 ,
diff --git a/lib/libufs/ufs_disk_close.3 b/lib/libufs/ufs_disk_close.3
index dea8dd3..ec38c94 100644
--- a/lib/libufs/ufs_disk_close.3
+++ b/lib/libufs/ufs_disk_close.3
@@ -84,7 +84,7 @@ may fail and set
.Va errno
for any of the errors specified for the library functions
.Xr open 2 ,
-.Xr strdup 3
+.Xr strdup 3 .
Additionally, it may follow the
.Xr libufs 3
error methodologies in situations where no device could be found to
OpenPOWER on IntegriCloud