Various cleanups of careless mistakes/omissions.
PR: 53149 Submitted by: Lukas Ertl <l.ertl@univie.ac.at>
This commit is contained in:
parent
3cd7e22936
commit
dfa13bbf27
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116165
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 ,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user