Ignore:
Timestamp:
03/08/99 21:38:56 (24 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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.