Ignore:
Timestamp:
Oct 31, 2013, 2:00:14 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
8cb2882
Parents:
ffc862c
git-author:
Sebastian Huber <sebastian.huber@…> (10/31/13 14:00:14)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/04/13 14:22:47)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/include/rtems/libio.h

    rffc862c r16829460  
    944944
    945945/**
     946 * @brief Poll and select support.
     947 *
     948 * @param[in, out] iop The IO pointer.
     949 * @param[in] events The poll events.
     950 *
     951 * @return The poll return events.
     952 *
     953 * @see rtems_filesystem_default_poll().
     954 */
     955typedef int (*rtems_filesystem_poll_t)(
     956  rtems_libio_t *iop,
     957  int events
     958);
     959
     960/**
    946961 * @brief File system node operations table.
    947962 */
     
    958973  rtems_filesystem_fdatasync_t fdatasync_h;
    959974  rtems_filesystem_fcntl_t fcntl_h;
     975  rtems_filesystem_poll_t poll_h;
    960976};
    961977
     
    11291145  rtems_libio_t *iop,
    11301146  int cmd
     1147);
     1148
     1149/**
     1150 * @brief Default poll handler.
     1151 *
     1152 * @retval POLLERR Always.
     1153 *
     1154 * @see rtems_filesystem_poll_t.
     1155 */
     1156int rtems_filesystem_default_poll(
     1157  rtems_libio_t *iop,
     1158  int events
    11311159);
    11321160
Note: See TracChangeset for help on using the changeset viewer.