diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-02-21 09:01:49 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-02-23 07:27:43 +0100 |
commit | 5bfeddc0c27b7cd896efd8c0b6ef2b5682ec4640 (patch) | |
tree | bd57ef40d12ba5222838dcf6ddba9c1297116872 /cpukit/libfs | |
parent | score: Add RTEMS_WEAK_ALIAS() (diff) | |
download | rtems-5bfeddc0c27b7cd896efd8c0b6ef2b5682ec4640.tar.bz2 |
termios: Add kqueue() and poll() support
Real implementation is provided by libbsd.
Diffstat (limited to 'cpukit/libfs')
-rw-r--r-- | cpukit/libfs/src/defaults/default_kqfilter.c | 12 | ||||
-rw-r--r-- | cpukit/libfs/src/defaults/default_poll.c | 9 |
2 files changed, 14 insertions, 7 deletions
diff --git a/cpukit/libfs/src/defaults/default_kqfilter.c b/cpukit/libfs/src/defaults/default_kqfilter.c index ef6fc1f9e4..df21a8969d 100644 --- a/cpukit/libfs/src/defaults/default_kqfilter.c +++ b/cpukit/libfs/src/defaults/default_kqfilter.c @@ -7,7 +7,7 @@ */ /* - * Copyright (c) 2013 embedded brains GmbH. All rights reserved. + * Copyright (c) 2013, 2017 embedded brains GmbH. All rights reserved. * * embedded brains GmbH * Dornierstr. 4 @@ -26,13 +26,15 @@ #include <rtems/libio_.h> -#include <sys/types.h> -#include <sys/event.h> - int rtems_filesystem_default_kqfilter( rtems_libio_t *iop, - struct knote *kn + struct knote *kn ) { return EINVAL; } + +int rtems_termios_kqfilter( + rtems_libio_t *iop, + struct knote *kn +) RTEMS_WEAK_ALIAS( rtems_filesystem_default_kqfilter ); diff --git a/cpukit/libfs/src/defaults/default_poll.c b/cpukit/libfs/src/defaults/default_poll.c index aa895d6444..a7c9378a8a 100644 --- a/cpukit/libfs/src/defaults/default_poll.c +++ b/cpukit/libfs/src/defaults/default_poll.c @@ -7,7 +7,7 @@ */ /* - * Copyright (c) 2013 embedded brains GmbH. All rights reserved. + * Copyright (c) 2013, 2017 embedded brains GmbH. All rights reserved. * * embedded brains GmbH * Dornierstr. 4 @@ -30,8 +30,13 @@ int rtems_filesystem_default_poll( rtems_libio_t *iop, - int events + int events ) { return POLLERR; } + +int rtems_termios_poll( + rtems_libio_t *iop, + int events +) RTEMS_WEAK_ALIAS( rtems_filesystem_default_poll ); |