diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-31 15:00:20 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-11-04 15:22:48 +0100 |
commit | 8cb28826ffaccd2f9f9f0c77c9cfdf61d1100069 (patch) | |
tree | f326b81959591559c91e843326ec198a8d3f9949 /cpukit/libfs | |
parent | Filesystem: Add poll() handler (diff) | |
download | rtems-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')
-rw-r--r-- | cpukit/libfs/Makefile.am | 1 | ||||
-rw-r--r-- | cpukit/libfs/src/defaults/default_kqfilter.c | 38 |
2 files changed, 39 insertions, 0 deletions
diff --git a/cpukit/libfs/Makefile.am b/cpukit/libfs/Makefile.am index b8496d5e07..21bb7ef9b9 100644 --- a/cpukit/libfs/Makefile.am +++ b/cpukit/libfs/Makefile.am @@ -33,6 +33,7 @@ libdefaultfs_a_SOURCES = \ src/defaults/default_node_type.c \ src/defaults/default_ftruncate_directory.c \ src/defaults/default_handlers.c src/defaults/default_ops.c +libdefaultfs_a_SOURCES += src/defaults/default_kqfilter.c libdefaultfs_a_SOURCES += src/defaults/default_poll.c noinst_LIBRARIES += libimfs.a 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; +} |