sync with the implementation.

This commit is contained in:
yamt 2006-12-11 15:27:09 +00:00
parent 8b3c9d0ad7
commit c534201d82
1 changed files with 10 additions and 13 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: fileassoc.9,v 1.11 2006/10/26 17:54:52 wiz Exp $
.\" $NetBSD: fileassoc.9,v 1.12 2006/12/11 15:27:09 yamt Exp $
.\"
.\" Copyright (c) 2006 Elad Efrat <elad@NetBSD.org>
.\" All rights reserved.
@ -28,7 +28,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 October 26, 2006
.Dd December 12, 2006
.Dt FILEASSOC 9
.Os
.Sh NAME
@ -90,14 +90,20 @@ These routines allow a developer to allocate a
.Nm
slot to be used for private data.
.Bl -tag -width "123456"
.It Ft fileassoc_t Fn fileassoc_register "const char *name" "fileassoc_cleanup_cb cleanup_cb"
.It Ft int Fn fileassoc_register "const char *name" "fileassoc_cleanup_cb cleanup_cb" "fileassoc_t *result"
Registers a new fileassoc as
.Ar name ,
and returns a
.Ft fileassoc_t
via
.Fa result
to be used as identifier in subsequent calls to the
.Nm
subsystem, or \-1 on failure.
subsystem.
.Pp
.Fn fileassoc_register
returns zero on success.
Otherwise, an error number will be returned.
.Pp
If
.Ar cleanup_cb
@ -241,15 +247,6 @@ If specified, the fileassoc's
will be called with a pointer to the private data-structure and indication of
.Dv FILEASSOC_CLEANUP_FILE .
.El
.Ss Misc. Routines
.Bl -tag -width "123456"
.It Ft void Fn fileassoc_init "void"
Initializes the
.Nm
subsystem.
.Fn fileassoc_init
is called once during system boot.
.El
.Sh EXAMPLES
The following code examples should give you a clue on using
.Nm