Changeset de2ee43d in rtems


Ignore:
Timestamp:
Dec 16, 2003, 11:41:27 PM (17 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
a953fa1
Parents:
13c8768
Message:

2003-12-16 Joel Sherrill <joel@…>

PR 542/filesystem

  • include/rtems/libio_.h: Add rtems_libio_iop_to_descriptor macro to convert iop to the corresponding integer file descriptor.
Location:
cpukit/libcsupport
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/ChangeLog

    r13c8768 rde2ee43d  
     12003-12-16      Joel Sherrill <joel@OARcorp.com>
     2
     3        PR 542/filesystem
     4        * include/rtems/libio_.h: Add rtems_libio_iop_to_descriptor macro to
     5        convert iop to the corresponding integer file descriptor.
     6
    172003-12-12      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    28
  • cpukit/libcsupport/include/rtems/libio_.h

    r13c8768 rde2ee43d  
    5454  ((((unsigned32)(_fd)) < rtems_libio_number_iops) ? \
    5555         &rtems_libio_iops[_fd] : 0)
     56
     57/*
     58 *  rtems_libio_iop_to_descriptor
     59 *
     60 *  Macro to convert an internal file descriptor pointer (iop) into
     61 *  the integer file descriptor used by the "section 2" system calls.
     62 */
     63
     64#define rtems_libio_iop_to_descriptor(_iop) \
     65   ((!(_iop)) ? -1 : (_iop - rtems_libio_iops))
    5666
    5767/* 
Note: See TracChangeset for help on using the changeset viewer.