From: millert Date: Thu, 30 Apr 2015 11:46:16 +0000 (+0000) Subject: FRELE returns an int not void. It is actually the return value X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=17f4e87f689623e10580a1176cd3d857f21835c2;p=openbsd 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 --- 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 .\" 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"