Index | Thread | Search

From:
Matthieu Herrb <matthieu@openbsd.org>
Subject:
file(9) fix falloc() prototype
To:
tech@openbsd.org
Date:
Sat, 9 Nov 2024 16:33:46 +0100

Download raw body.

Thread
  • Matthieu Herrb:

    file(9) fix falloc() prototype

In 2018, in rev 1.39 of filedesc.h, the 'flags' argument of falloc(9)
was removed, but the man page hasn't been updated.

I haven't checked for other issues.

ok ?

Index: file.9
===================================================================
RCS file: /local/cvs/src/share/man/man9/file.9,v
diff -u -p -u -r1.22 file.9
--- file.9	3 Jan 2020 05:37:00 -0000	1.22
+++ file.9	9 Nov 2024 15:31:41 -0000
@@ -40,7 +40,7 @@
 .In sys/file.h
 .In sys/filedesc.h
 .Ft int
-.Fn falloc "struct proc *p" "int flags" "struct file **resultfp" "int *resultfd"
+.Fn falloc "struct proc *p" "struct file **resultfp" "int *resultfd"
 .Ft int
 .Fn fdrelease "struct proc *p" "int fd"
 .Ft void
@@ -74,11 +74,6 @@ and various special purpose communicatio
 .Pp
 A new file and a file descriptor for it are allocated with the function
 .Fn falloc .
-The
-.Fa flags
-argument can be used to set the
-.Dv UF_EXCLOSE
-flag on the new descriptor.
 The larval file and fd are returned via
 .Fa resultfp
 and

-- 
Matthieu Herrb