Subject: Re: veriexec by default (Re: CVS commit: src/sys/arch)
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
List: tech-kern
Date: 10/26/2006 19:23:35
This is a multipart MIME message.
--==_Exmh_30709605080570
Content-Type: text/plain; charset=us-ascii
yamt@mwd.biglobe.ne.jp said:
> Also enable
> fileassoc(9) by default
I'm not that familiar with the fileassoc subsystem, but it appears to me
that there are some inconsistencies in the manpage. I'll append my
suggestions.
best regards
Matthias
--==_Exmh_30709605080570
Content-Type: text/plain ; name="fa.txt"; charset=us-ascii
Content-Description: fa.txt
Content-Disposition: attachment; filename="fa.txt"
Index: fileassoc.9
===================================================================
RCS file: /cvsroot/src/share/man/man9/fileassoc.9,v
retrieving revision 1.9
diff -u -r1.9 fileassoc.9
--- fileassoc.9 6 Sep 2006 13:37:49 -0000 1.9
+++ fileassoc.9 26 Oct 2006 17:17:30 -0000
@@ -90,14 +90,14 @@
.Nm
slot to be used for private data.
.Bl -tag -width "123456"
-.It Ft int Fn fileassoc_register "const char *name" "fileassoc_cleanup_cb cleanup_cb"
+.It Ft fileassoc_t Fn fileassoc_register "const char *name" "fileassoc_cleanup_cb cleanup_cb"
Registers a new fileassoc as
.Ar name ,
and returns an
-.Ft int
-to be used as a metahhook-id in subsequent calls to the
+.Ft fileassoc_t
+to be used as identifier in subsequent calls to the
.Nm
-subsystem to identify the fileassoc, or \-1 on failure.
+subsystem, or \-1 on failure.
.Pp
If
.Ar cleanup_cb
@@ -211,12 +211,13 @@
.Ss File-specific Routines
.Bl -tag -width "123456"
.It Ft int Fn fileassoc_file_delete "struct vnode *vp"
-Delete the fileassoc entry for
+Delete the fileassoc entries for
.Ar vp .
.Pp
-If specified, the fileassoc's
-.Dq cleanup routine
-will be called with a pointer to the private data-structure and indication of
+If specified, the
+.Dq cleanup routines
+of all fileassoc types added will be called with a pointer to the corresponding
+private data structure and indication of
.Dv FILEASSOC_CLEANUP_FILE .
.El
.Ss Fileassoc-specific Routines
--==_Exmh_30709605080570--