summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/defaults
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-31 15:00:20 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-11-04 15:22:48 +0100
commit8cb28826ffaccd2f9f9f0c77c9cfdf61d1100069 (patch)
treef326b81959591559c91e843326ec198a8d3f9949 /cpukit/libfs/src/defaults
parentFilesystem: Add poll() handler (diff)
downloadrtems-8cb28826ffaccd2f9f9f0c77c9cfdf61d1100069.tar.bz2
Filesystem: Add kernel event filter handler
This handler is necessary to implement the KQUEUE(2) system calls. Add <sys/event.h> from FreeBSD 8.4.
Diffstat (limited to 'cpukit/libfs/src/defaults')
-rw-r--r--cpukit/libfs/src/defaults/default_kqfilter.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/cpukit/libfs/src/defaults/default_kqfilter.c b/cpukit/libfs/src/defaults/default_kqfilter.c
new file mode 100644
index 0000000000..6c8453992d
--- /dev/null
+++ b/cpukit/libfs/src/defaults/default_kqfilter.c
@@ -0,0 +1,38 @@
+/**
+ * @file
+ *
+ * @brief Default Kernel Event Filter Handler
+ *
+ * @ingroup LibIOFSHandler
+ */
+
+/*
+ * Copyright (c) 2013 embedded brains GmbH. All rights reserved.
+ *
+ * embedded brains GmbH
+ * Dornierstr. 4
+ * 82178 Puchheim
+ * Germany
+ * <rtems@embedded-brains.de>
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ */
+
+#if HAVE_CONFIG_H
+ #include "config.h"
+#endif
+
+#include <rtems/libio_.h>
+
+#include <sys/types.h>
+#include <sys/event.h>
+
+int rtems_filesystem_default_kqfilter(
+ rtems_libio_t *iop,
+ struct knote *kn
+)
+{
+ return EINVAL;
+}