VirtualBox

Changeset 40304 in vbox for trunk/src/VBox/Runtime/r3


Ignore:
Timestamp:
Feb 29, 2012 8:02:14 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76552
Message:

IPRT: fixed OS/2 'bitrot'.

Location:
trunk/src/VBox/Runtime/r3
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/init.cpp

    r39753 r40304  
    4646#ifdef RT_OS_OS2
    4747# include <InnoTekLIBC/fork.h>
     48# define INCL_DOSMISC
     49# include <os2.h>
    4850#endif
    4951#include <locale.h>
     
    334336    SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX | fOldErrMode);
    335337#elif defined(RT_OS_OS2)
    336 # error "FIXME"
     338    DosError(FERR_DISABLEHARDERR);
    337339#endif
    338340
  • trunk/src/VBox/Runtime/r3/os2/filelock-os2.cpp

    r33540 r40304  
    8383
    8484    Assert(RTFILE_LOCK_WAIT);
    85     if (fcntl(File, (fLock & RTFILE_LOCK_WAIT) ? F_SETLKW : F_SETLK, &fl) >= 0)
     85    if (fcntl(RTFileToNative(File), (fLock & RTFILE_LOCK_WAIT) ? F_SETLKW : F_SETLK, &fl) >= 0)
    8686        return VINF_SUCCESS;
    8787
     
    163163    fl.l_pid    = 0;
    164164
    165     if (fcntl(File, F_SETLK, &fl) >= 0)
     165    if (fcntl(RTFileToNative(File), F_SETLK, &fl) >= 0)
    166166        return VINF_SUCCESS;
    167167
  • trunk/src/VBox/Runtime/r3/os2/sems-os2.cpp

    r33393 r40304  
    5252RTDECL(int)  RTSemEventCreateEx(PRTSEMEVENT phEventSem, uint32_t fFlags, RTLOCKVALCLASS hClass, const char *pszNameFmt, ...)
    5353{
    54     AssertReturn(!(fFlags & ~(RTSEMEVENT_FLAGS_NO_LOCK_VAL | RTSEMEVENT_FLAGS_BOOTSTRAP_HACK), VERR_INVALID_PARAMETER);
     54    AssertReturn(!(fFlags & ~(RTSEMEVENT_FLAGS_NO_LOCK_VAL | RTSEMEVENT_FLAGS_BOOTSTRAP_HACK)), VERR_INVALID_PARAMETER);
    5555    Assert(!(fFlags & RTSEMEVENT_FLAGS_BOOTSTRAP_HACK) || (fFlags & RTSEMEVENT_FLAGS_NO_LOCK_VAL));
    5656
  • trunk/src/VBox/Runtime/r3/os2/thread-os2.cpp

    r39443 r40304  
    4646#include <iprt/alloc.h>
    4747#include <iprt/asm-amd64-x86.h>
     48#include <iprt/cpuset.h>
    4849#include <iprt/string.h>
    4950#include <iprt/err.h>
     
    208209RTR3DECL(int) RTThreadGetAffinity(PRTCPUSET pCpuSet)
    209210{
    210     return VINF_SUCCESS;
    211 }
    212 
    213 RTR3DECL(int) RTThreadGetAffinity(PRTCPUSET pCpuSet)
    214 {
    215211    union
    216212    {
  • trunk/src/VBox/Runtime/r3/stream.cpp

    r39395 r40304  
    5353#include <stdio.h>
    5454#include <errno.h>
    55 #ifdef RT_OS_WINDOWS
     55#if defined(RT_OS_WINDOWS) || defined(RT_OS_OS2)
    5656# include <io.h>
    5757# include <fcntl.h>
     58#endif
     59#ifdef RT_OS_WINDOWS
    5860# include <Windows.h>
     61#endif
     62
     63#ifdef RT_OS_OS2
     64# define _O_TEXT   O_TEXT
     65# define _O_BINARY O_BINARY
    5966#endif
    6067
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette