don't expose FILEASSOC_NHOOKS.

This commit is contained in:
yamt 2006-12-08 13:23:22 +00:00
parent 3c71b5db0d
commit 4d5f3128d9
2 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_fileassoc.c,v 1.12 2006/11/20 21:50:51 elad Exp $ */
/* $NetBSD: kern_fileassoc.c,v 1.13 2006/12/08 13:23:22 yamt Exp $ */
/*-
* Copyright (c) 2006 Elad Efrat <elad@NetBSD.org>
@ -31,7 +31,9 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_fileassoc.c,v 1.12 2006/11/20 21:50:51 elad Exp $");
__KERNEL_RCSID(0, "$NetBSD: kern_fileassoc.c,v 1.13 2006/12/08 13:23:22 yamt Exp $");
#include "opt_fileassoc.h"
#include <sys/param.h>
#include <sys/mount.h>
@ -47,6 +49,11 @@ __KERNEL_RCSID(0, "$NetBSD: kern_fileassoc.c,v 1.12 2006/11/20 21:50:51 elad Exp
#include <sys/hash.h>
#include <sys/fstypes.h>
/* Max. number of hooks. */
#ifndef FILEASSOC_NHOOKS
#define FILEASSOC_NHOOKS 4
#endif /* !FILEASSOC_NHOOKS */
static struct fileassoc_hash_entry *
fileassoc_file_lookup(struct vnode *, fhandle_t *);
static struct fileassoc_hash_entry *

View File

@ -1,4 +1,4 @@
/* $NetBSD: fileassoc.h,v 1.5 2006/09/06 13:37:49 blymn Exp $ */
/* $NetBSD: fileassoc.h,v 1.6 2006/12/08 13:23:22 yamt Exp $ */
/*-
* Copyright (c) 2006 Elad Efrat <elad@NetBSD.org>
@ -33,16 +33,9 @@
#ifndef _SYS_FILEASSOC_H_
#define _SYS_FILEASSOC_H_
#include "opt_fileassoc.h"
#include <sys/cdefs.h>
#include <sys/param.h>
/* Max. number of hooks. */
#ifndef FILEASSOC_NHOOKS
#define FILEASSOC_NHOOKS 4
#endif /* !FILEASSOC_NHOOKS */
#define FILEASSOC_INVAL -1
typedef int fileassoc_t;