- Timestamp:
- Oct 24, 2010 4:18:01 PM (14 years ago)
- Location:
- trunk/src/VBox/Additions/common
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/Makefile.kmk
r32693 r33395 79 79 win/VBoxGuest.rc 80 80 endif 81 VBoxGuest2.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)82 VBoxGuest.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)83 81 VBoxGuest_LIBS += \ 84 82 $(VBOX_LIB_VBGL_R0BASE) \ … … 114 112 VBoxGuestLibOs2Hack_SOURCES = \ 115 113 VBoxGuest-os2.cpp \ 116 VBoxGuest.cpp 114 VBoxGuest.cpp \ 115 VBoxGuest2.cpp 117 116 endif # OS/2 117 118 VBoxGuest2.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV) 119 VBoxGuest.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV) 118 120 119 121 ifeq ($(KBUILD_TARGET),win) -
trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp
r33277 r33395 28 28 #ifndef RT_OS_WINDOWS 29 29 # include <signal.h> 30 # ifdef RT_OS_OS2 31 # define pthread_sigmask sigprocmask 32 # endif 30 33 #endif 31 34 #ifdef RT_OS_FREEBSD -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceClipboard-os2.cpp
r28800 r33395 367 367 { 368 368 size_t cbPM = strlen(pszLocale) + 1; 369 APIRET rc = DosAllocSharedMem(&pvPM, NULL, cbPM, OBJ_GIVEABLE | OBJ_GETTABLE | OBJ_TILE | PAG_READ | PAG_WRITE | PAG_COMMIT);370 if ( rc == NO_ERROR)369 APIRET orc = DosAllocSharedMem(&pvPM, NULL, cbPM, OBJ_GIVEABLE | OBJ_GETTABLE | OBJ_TILE | PAG_READ | PAG_WRITE | PAG_COMMIT); 370 if (orc == NO_ERROR) 371 371 memcpy(pvPM, pszLocale, cbPM); 372 372 else 373 373 { 374 VBoxServiceError("DosAllocSharedMem(,,%#x,,) -> %ld\n", cb + sizeof(CLIPHEADER), rc);374 VBoxServiceError("DosAllocSharedMem(,,%#x,,) -> %ld\n", cb + sizeof(CLIPHEADER), orc); 375 375 pvPM = NULL; 376 376 } -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp
r32771 r33395 36 36 # include <net/if.h> 37 37 # include <unistd.h> 38 # ifndef RT_OS_FREEBSD 39 # include <utmpx.h> /* @todo FreeBSD 9 should have this. */ 38 # ifndef RT_OS_OS2 39 # ifndef RT_OS_FREEBSD 40 # include <utmpx.h> /* @todo FreeBSD 9 should have this. */ 41 # endif 40 42 # endif 41 43 # ifdef RT_OS_SOLARIS … … 637 639 } 638 640 # else 641 # ifndef RT_OS_OS2 /** @todo port this to OS/2 */ 639 642 if (ioctl(sd, SIOCGIFHWADDR, &ifrequest[i]) < 0) 640 643 { … … 643 646 break; 644 647 } 648 # endif 645 649 # endif 646 650 651 # ifndef RT_OS_OS2 /** @todo port this to OS/2 */ 647 652 char szMac[32]; 648 # if defined(RT_OS_SOLARIS)653 # if defined(RT_OS_SOLARIS) 649 654 uint8_t *pu8Mac = IfMac.au8; 650 # else655 # else 651 656 uint8_t *pu8Mac = (uint8_t*)&ifrequest[i].ifr_hwaddr.sa_data[0]; /* @todo see above */ 652 # endif657 # endif 653 658 RTStrPrintf(szMac, sizeof(szMac), "%02X%02X%02X%02X%02X%02X", 654 659 pu8Mac[0], pu8Mac[1], pu8Mac[2], pu8Mac[3], pu8Mac[4], pu8Mac[5]); 655 660 RTStrPrintf(szPropPath, sizeof(szPropPath), "/VirtualBox/GuestInfo/Net/%u/MAC", cIfacesReport); 656 661 VBoxServicePropCacheUpdate(&g_VMInfoPropCache, szPropPath, "%s", szMac); 662 # endif /* !OS/2*/ 657 663 658 664 RTStrPrintf(szPropPath, sizeof(szPropPath), "/VirtualBox/GuestInfo/Net/%u/Status", cIfacesReport);
Note:
See TracChangeset
for help on using the changeset viewer.