-.\" $OpenBSD: imsg_init.3,v 1.26 2023/06/19 17:19:50 claudio Exp $
+.\" $OpenBSD: imsg_init.3,v 1.27 2023/06/20 05:56:19 jmc Exp $
.\"
.\" Copyright (c) 2010 Nicholas Marriott <nicm@openbsd.org>
.\"
.\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
.\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: June 19 2023 $
+.Dd $Mdocdate: June 20 2023 $
.Dt IMSG_INIT 3
.Os
.Sh NAME
.Fn ibuf_fd_get
and
.Fn ibuf_fd_set
-are functions to check, get and set the filedescriptor assigned to
+are functions to check, get and set the file descriptor assigned to
.Fa buf .
After calling
.Fn ibuf_fd_set
-the filedescriptor is part of the
+the file descriptor is part of the
.Fa buf
and will be transmitted or closed by the ibuf API.
-Any previously set filedescriptor will be closed before assigning a
+Any previously set file descriptor will be closed before assigning a
new descriptor.
.Fn ibuf_fd_get
-returns the filedescriptor and passes the responsibilty to track the
+returns the file descriptor and passes the responsibilty to track the
descriptor back to the program.
.Fn ibuf_fd_avail
-returns true if there is a filedescriptor set on
-.Fa buf
+returns true if there is a file descriptor set on
+.Fa buf .
.Pp
.Fn ibuf_free
frees
.Fa buf
-and any associated storage, and closes any filedescriptor set with
+and any associated storage, and closes any file descriptor set with
.Fn ibuf_fd_set .
If
.Fa buf