summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2015-04-30 11:46:16 +0000
committermillert <millert@openbsd.org>2015-04-30 11:46:16 +0000
commit17f4e87f689623e10580a1176cd3d857f21835c2 (patch)
tree3e654e30b88d99cd1d8ab9081ba8259967df52bc
parentNow we use p_filesz - 1 to test for NUL check that p_filesz is (diff)
downloadwireguard-openbsd-17f4e87f689623e10580a1176cd3d857f21835c2.tar.xz
wireguard-openbsd-17f4e87f689623e10580a1176cd3d857f21835c2.zip
FRELE returns an int not void. It is actually the return value
of fdrop() (or 0 if the ref count is non-zero). From Kanonenvogel
-rw-r--r--share/man/man9/file.96
1 files changed, 3 insertions, 3 deletions
diff --git a/share/man/man9/file.9 b/share/man/man9/file.9
index 7eba6a6ebb8..7ff402aa4b6 100644
--- a/share/man/man9/file.9
+++ b/share/man/man9/file.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: file.9,v 1.12 2013/06/04 19:27:06 schwarze Exp $
+.\" $OpenBSD: file.9,v 1.13 2015/04/30 11:46:16 millert Exp $
.\"
.\" Copyright (c) 2002 Artur Grabowski <art@openbsd.org>
.\" All rights reserved.
@@ -22,7 +22,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: June 4 2013 $
+.Dd $Mdocdate: April 30 2015 $
.Dt FILE 9
.Os
.Sh NAME
@@ -37,7 +37,7 @@
.Fn fdrelease "struct proc *p" "int fd"
.Ft void
.Fn FREF "struct file *fp"
-.Ft void
+.Ft int
.Fn FRELE "struct file *fp" "struct proc *p"
.Ft struct file *
.Fn fd_getfile "struct filedesc *fdp" "int fd"