Changeset 1bb17020 in rtems


Ignore:
Timestamp:
Mar 8, 1999, 9:38:56 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
3195d9c
Parents:
550b6da
Message:

Added support for F_GETFL and F_SETFL.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/libcsupport/src/fcntl.c

    r550b6da r1bb17020  
    9696       */
    9797
    98       flags &= ~(O_APPEND | O_NONBLOCK);
     98      flags = (iop->flags & ~(O_APPEND|O_NONBLOCK)) |
     99                   (flags & (O_APPEND|O_NONBLOCK));
    99100
    100101      /*
     
    102103       */
    103104
    104       iop->flags |= flags;
     105      iop->flags = flags;
    105106      return 0;
    106107
  • c/src/lib/libc/fcntl.c

    r550b6da r1bb17020  
    9696       */
    9797
    98       flags &= ~(O_APPEND | O_NONBLOCK);
     98      flags = (iop->flags & ~(O_APPEND|O_NONBLOCK)) |
     99                   (flags & (O_APPEND|O_NONBLOCK));
    99100
    100101      /*
     
    102103       */
    103104
    104       iop->flags |= flags;
     105      iop->flags = flags;
    105106      return 0;
    106107
  • cpukit/libcsupport/src/fcntl.c

    r550b6da r1bb17020  
    9696       */
    9797
    98       flags &= ~(O_APPEND | O_NONBLOCK);
     98      flags = (iop->flags & ~(O_APPEND|O_NONBLOCK)) |
     99                   (flags & (O_APPEND|O_NONBLOCK));
    99100
    100101      /*
     
    102103       */
    103104
    104       iop->flags |= flags;
     105      iop->flags = flags;
    105106      return 0;
    106107
Note: See TracChangeset for help on using the changeset viewer.