Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/kqueue]: src/sys/kern enable the kqfilter stub on NetBSD too



details:   https://anonhg.NetBSD.org/src/rev/75160f7d2d0a
branches:  kqueue
changeset: 512519:75160f7d2d0a
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Wed Sep 25 13:28:17 2002 +0000

description:
enable the kqfilter stub on NetBSD too

diffstat:

 sys/kern/kern_systrace.c |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (53 lines):

diff -r 1f6bf8473636 -r 75160f7d2d0a sys/kern/kern_systrace.c
--- a/sys/kern/kern_systrace.c  Tue Sep 24 19:48:59 2002 +0000
+++ b/sys/kern/kern_systrace.c  Wed Sep 25 13:28:17 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_systrace.c,v 1.15.2.2 2002/09/06 08:48:01 jdolecek Exp $  */
+/*     $NetBSD: kern_systrace.c,v 1.15.2.3 2002/09/25 13:28:17 jdolecek Exp $  */
 
 /*
  * Copyright 2002 Niels Provos <provos%citi.umich.edu@localhost>
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_systrace.c,v 1.15.2.2 2002/09/06 08:48:01 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_systrace.c,v 1.15.2.3 2002/09/25 13:28:17 jdolecek Exp $");
 
 #include "opt_systrace.h"
 
@@ -82,8 +82,8 @@
 int    systracef_read(struct file *, off_t *, struct uio *, struct ucred *);
 int    systracef_write(struct file *, off_t *, struct uio *, struct ucred *);
 int    systracef_select(struct file *, int, struct proc *);
+#endif
 int    systracef_kqfilter(struct file *, struct knote *);
-#endif
 int    systracef_ioctl(struct file *, u_long, caddr_t, struct proc *);
 int    systracef_stat(struct file *, struct stat *, struct proc *);
 int    systracef_close(struct file *, struct proc *);
@@ -170,6 +170,9 @@
 #endif
        systracef_stat,
        systracef_close
+#ifdef __NetBSD__
+       , systracef_kqfilter
+#endif
 };
 
 struct pool systr_proc_pl;
@@ -444,14 +447,12 @@
 }
 #endif /* __NetBSD__ */
 
-#ifndef __NetBSD__
 /* ARGSUSED */
 int
 systracef_kqfilter(struct file *fp, struct knote *kn)
 {
        return (1);
 }
-#endif
 
 
 /* ARGSUSED */



Home | Main Index | Thread Index | Old Index