Changeset 16829460 in rtems


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.

Location:
cpukit
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/Makefile.am

    rffc862c r16829460  
    5353include_sys_HEADERS += libcsupport/include/sys/filio.h
    5454include_sys_HEADERS += libcsupport/include/sys/ioctl.h
     55include_sys_HEADERS += libcsupport/include/sys/poll.h
    5556include_sys_HEADERS += libcsupport/include/sys/statvfs.h
    5657include_sys_HEADERS += libcsupport/include/sys/sockio.h
  • 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
  • cpukit/libfs/Makefile.am

    rffc862c r16829460  
    3434    src/defaults/default_ftruncate_directory.c \
    3535    src/defaults/default_handlers.c src/defaults/default_ops.c
     36libdefaultfs_a_SOURCES += src/defaults/default_poll.c
    3637
    3738noinst_LIBRARIES += libimfs.a
  • cpukit/preinstall.am

    rffc862c r16829460  
    7777PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/ioctl.h
    7878
     79$(PROJECT_INCLUDE)/sys/poll.h: libcsupport/include/sys/poll.h $(PROJECT_INCLUDE)/sys/$(dirstamp)
     80        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/poll.h
     81PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys/poll.h
     82
    7983$(PROJECT_INCLUDE)/sys/statvfs.h: libcsupport/include/sys/statvfs.h $(PROJECT_INCLUDE)/sys/$(dirstamp)
    8084        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sys/statvfs.h
Note: See TracChangeset for help on using the changeset viewer.