Changeset 2277


Ignore:
Timestamp:
Aug 13, 2005, 9:04:16 PM (20 years ago)
Author:
bird
Message:

Added SH_COMPAT to share.h and emulate it as SH_DENYNO (just like watcom).
The SH_COMPAT shareing mode is not available to OS/2 processes, only DOS / os2krnl.

Location:
trunk/src/emx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/ChangeLog.LIBC

    • Property cvs2svn:cvs-rev changed from 1.114 to 1.115
    r2276 r2277  
    22
    33TODO: open replace on RAMFS fails with error 32!
     4
     52005-08-13: knut st. osmundsen <bird-gccos2-spam@anduin.net>
     6    - libc:
     7        o Added SH_COMPAT to share.h and emulate it as SH_DENYNO (just like watcom).
     8          The SH_COMPAT shareing mode is not available to OS/2 processes, only DOS / os2krnl.
    49
    5102005-08-02: knut st. osmundsen <bird-gccos2-spam@anduin.net>
  • trunk/src/emx/include/share.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r2276 r2277  
    11/* share.h,v 1.2 2004/09/14 22:27:35 bird Exp */
    22/** @file
    3  * EMX. VAC legacy.
     3 * EMX. VAC / MSC legacy.
     4 *
     5 * _sopen(),_vsopen() flags.
    46 */
    57
     
    79#define _SHARE_H
    810
     11#define SH_COMPAT       0x00
    912#define SH_DENYRW       0x10
    1013#define SH_DENYWR       0x20
  • trunk/src/emx/src/lib/sys/b_ioFileOpen.c

    • Property cvs2svn:cvs-rev changed from 1.8 to 1.9
    r2276 r2277  
    3838#include <errno.h>
    3939#include <limits.h>
     40#include <share.h>
    4041#include <sys/stat.h>
    4142#include <emx/syscalls.h>
     
    4748#include <InnoTekLIBC/logstrict.h>
    4849
     50#define SH_MASK 0x70
    4951
    5052/**
     
    6668                  pszFile, fFlags, cbInitial, Mode, fLibc, (void*)ppFH);
    6769    FS_VAR();
     70
     71    /*
     72     * The SH_COMPAT mode is weird and unless supported by the host we map it to SH_DENYNO.
     73     */
     74    if ((fFlags & SH_MASK) == SH_COMPAT)
     75        fFlags = (fFlags & ~SH_MASK) | SH_DENYNO;
    6876
    6977    /*
Note: See TracChangeset for help on using the changeset viewer.