diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-31 15:00:14 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-11-04 15:22:47 +0100 |
commit | 16829460572c9d8451154b2c296ac1abb7701b78 (patch) | |
tree | c92fd3fed60437b55a04f7d7e451dd636ec44da5 /cpukit/libfs/src/defaults/default_poll.c | |
parent | bsp/realview-pbx-a9: Add NULL pointer protection (diff) | |
download | rtems-16829460572c9d8451154b2c296ac1abb7701b78.tar.bz2 |
Filesystem: Add poll() handler
This handler is necessary to implement the SELECT(2) and POLL(2) system
calls.
Add <sys/poll.h> from FreeBSD 8.4.
Diffstat (limited to 'cpukit/libfs/src/defaults/default_poll.c')
-rw-r--r-- | cpukit/libfs/src/defaults/default_poll.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/cpukit/libfs/src/defaults/default_poll.c b/cpukit/libfs/src/defaults/default_poll.c new file mode 100644 index 0000000000..7540390cd3 --- /dev/null +++ b/cpukit/libfs/src/defaults/default_poll.c @@ -0,0 +1,37 @@ +/** + * @file + * + * @brief Default Poll 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/poll.h> + +int rtems_filesystem_default_poll( + rtems_libio_t *iop, + int events +) +{ + return POLLERR; +} |