summaryrefslogtreecommitdiff
path: root/share/man/man9/file.9
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2003-04-15 04:14:30 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2003-04-15 04:14:30 +0000
commitd586473f58efd1219069adadfa6f4ea5932f1837 (patch)
tree1a8eda0788b96da1321e9ea85fa1ddaa95e37426 /share/man/man9/file.9
parentadd4e4e87558f04377e5ad1407d059a0948d2fd5 (diff)
typos;
VOP, crypto and disklabel ok tedu@ audio(9) ok naddy@
Diffstat (limited to 'share/man/man9/file.9')
-rw-r--r--share/man/man9/file.912
1 files changed, 6 insertions, 6 deletions
diff --git a/share/man/man9/file.9 b/share/man/man9/file.9
index 939ad124e45..d6da53fec9b 100644
--- a/share/man/man9/file.9
+++ b/share/man/man9/file.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: file.9,v 1.4 2002/08/23 19:48:38 art Exp $
+.\" $OpenBSD: file.9,v 1.5 2003/04/15 04:14:29 jmc Exp $
.\"
.\" Copyright (c) 2002 Artur Grabowski <art@openbsd.org>
.\" All rights reserved.
@@ -56,15 +56,15 @@ pipes (see
kqueues (see
.Xr kqueue 2 ) ,
and various special purpose communication endpoints.
-.Pp
+.Pp
A new file descriptor is allocated with the function
-.Fn falloc
+.Fn falloc
and freed with
.Fn fdrelease .
.Fn falloc
and
.Fn fdrelease
-deal with allocating and freeing slots in the file descriptor table
+deal with allocating and freeing slots in the file descriptor table,
expanding the table when necessary and initializing the descriptor.
It's possible to do those things in smaller steps, but it's not
recommended to make complicated kernel APIs that require it.
@@ -88,7 +88,7 @@ also check if the descriptor is a vnode or socket, return the proper
errno on error and increase the use count with
.Fn FREF .
.Sh CONCURRENT ACCESS
-Since multiple processes can share the same file descriptor table
+Since multiple processes can share the same file descriptor table,
it's important that the file is not freed in one process while some
other process is still accessing it.
To solve that problem a special use count is kept with the functions
@@ -113,6 +113,6 @@ not using them.
The majority of those functions are implemented in
.Pa sys/kern/kern_descrip.c .
The function prototypes and the macros are located in
-.Pa sys/sys/file.h
+.Pa sys/sys/file.h
and
.Pa sys/sys/filedesc.h .