Ignore:
Timestamp:
Aug 28, 2006, 2:37:24 AM (19 years ago)
Author:
bird
Message:

Corrected DosSetFHState mask. Fixes #118.

Location:
branches/libc-0.6/src/emx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/libc-0.6/src/emx/ChangeLog.LIBC

    r2792 r2795  
    552006-08-27: knut st. osmundsen <bird-gccos2-spam@anduin.net>
    66    - libc:
     7        o Corrected DosSetFHState mask. Fixes #118.
    78        o Implemented the new length modifiers for *scanf. Adjusted the length
    89          modifier implementation for *printf. Fixes #76.
  • branches/libc-0.6/src/emx/src/lib/sys/filehandles.c

    r2570 r2795  
    12911291        if (fulNewState != fulState)
    12921292        {
    1293             fulNewState &= 0x7f88; /* Mask the flags accepted the API. */
     1293            fulNewState &= OPEN_FLAGS_WRITE_THROUGH | OPEN_FLAGS_FAIL_ON_ERROR | OPEN_FLAGS_NO_CACHE | OPEN_FLAGS_NOINHERIT; /* Turn off non-participating bits. */
    12941294            rc = DosSetFHState(fh, fulNewState);
    12951295        }
     
    13841384                                {
    13851385                                    fulState = fulState & ~OPEN_FLAGS_NOINHERIT;
    1386                                     fulState &= 0x7f88; /* Mask the flags accepted by the API. */
     1386                                    fulState &= OPEN_FLAGS_WRITE_THROUGH | OPEN_FLAGS_FAIL_ON_ERROR | OPEN_FLAGS_NO_CACHE | OPEN_FLAGS_NOINHERIT; /* Turn off non-participating bits. */
    13871387                                    rc = DosSetFHState(iFH, fulState);
    13881388                                }
     
    15061506                        {
    15071507                            fulState |= OPEN_FLAGS_NOINHERIT;
    1508                             fulState &= 0x7f88; /* Mask the flags accepted by the API. */
     1508                            fulState &= OPEN_FLAGS_WRITE_THROUGH | OPEN_FLAGS_FAIL_ON_ERROR | OPEN_FLAGS_NO_CACHE | OPEN_FLAGS_NOINHERIT; /* Turn off non-participating bits. */
    15091509                            rc = DosSetFHState(iFH, fulState);
    15101510                        }
     
    15751575                    {
    15761576                        fulState |= OPEN_FLAGS_NOINHERIT;
    1577                         fulState &= 0x7f88; /* Mask the flags accepted by the API. */
     1577                        fulState &= OPEN_FLAGS_WRITE_THROUGH | OPEN_FLAGS_FAIL_ON_ERROR | OPEN_FLAGS_NO_CACHE | OPEN_FLAGS_NOINHERIT; /* Turn off non-participating bits. */
    15781578                        rc = DosSetFHState(iFH, fulState);
    15791579                    }
Note: See TracChangeset for help on using the changeset viewer.