Ignore:
Timestamp:
Dec 16, 2003, 11:41:27 PM (18 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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.