Changeset 3673 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Jul 17, 2007 2:57:51 PM (18 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxGuestLib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/SysHlp.cpp
r3466 r3673 27 27 28 28 #include <iprt/assert.h> 29 #if !defined( __WIN__) && !defined(__LINUX__)29 #if !defined(RT_OS_WINDOWS) && !defined(RT_OS_LINUX) 30 30 #include <iprt/memobj.h> 31 31 #endif … … 36 36 int rc = VINF_SUCCESS; 37 37 38 #ifdef __WIN__38 #ifdef RT_OS_WINDOWS 39 39 PMDL pMdl = IoAllocateMdl (pv, u32Size, FALSE, FALSE, NULL); 40 40 … … 60 60 } 61 61 62 #elif defined( __LINUX__)62 #elif defined(RT_OS_LINUX) 63 63 NOREF(ppvCtx); 64 64 NOREF(pv); … … 84 84 NOREF(u32Size); 85 85 86 #ifdef __WIN__86 #ifdef RT_OS_WINDOWS 87 87 PMDL pMdl = (PMDL)pvCtx; 88 88 … … 93 93 } 94 94 95 #elif defined( __LINUX__)95 #elif defined(RT_OS_LINUX) 96 96 NOREF(pvCtx); 97 97 … … 107 107 #ifndef VBGL_VBOXGUEST 108 108 109 #if defined ( __LINUX__) && !defined (__KERNEL__)109 #if defined (RT_OS_LINUX) && !defined (__KERNEL__) 110 110 # include <unistd.h> 111 111 # include <errno.h> … … 114 114 #endif 115 115 116 #ifdef __LINUX__116 #ifdef RT_OS_LINUX 117 117 __BEGIN_DECLS 118 118 extern DECLVBGL(void *) vboxadd_cmc_open (void); … … 120 120 extern DECLVBGL(int) vboxadd_cmc_call (void *opaque, uint32_t func, void *data); 121 121 __END_DECLS 122 #endif /* __LINUX__*/123 124 #ifdef __OS2__122 #endif /* RT_OS_LINUX */ 123 124 #ifdef RT_OS_OS2 125 125 __BEGIN_DECLS 126 126 /* … … 136 136 int vbglDriverOpen (VBGLDRIVER *pDriver) 137 137 { 138 #ifdef __WIN__138 #ifdef RT_OS_WINDOWS 139 139 UNICODE_STRING uszDeviceName; 140 140 RtlInitUnicodeString (&uszDeviceName, L"\\Device\\VBoxGuest"); … … 157 157 return rc; 158 158 159 #elif defined ( __LINUX__)159 #elif defined (RT_OS_LINUX) 160 160 void *opaque; 161 161 … … 168 168 return VINF_SUCCESS; 169 169 170 #elif defined ( __OS2__)170 #elif defined (RT_OS_OS2) 171 171 /* 172 172 * Just check whether the connection was made or not. … … 190 190 int vbglDriverIOCtl (VBGLDRIVER *pDriver, uint32_t u32Function, void *pvData, uint32_t cbData) 191 191 { 192 #ifdef __WIN__192 #ifdef RT_OS_WINDOWS 193 193 IO_STATUS_BLOCK ioStatusBlock; 194 194 … … 230 230 return NT_SUCCESS(rc)? VINF_SUCCESS: VERR_VBGL_IOCTL_FAILED; 231 231 232 #elif defined ( __LINUX__)232 #elif defined (RT_OS_LINUX) 233 233 return vboxadd_cmc_call (pDriver->opaque, u32Function, pvData); 234 234 235 #elif defined ( __OS2__)235 #elif defined (RT_OS_OS2) 236 236 if ( pDriver->u32Session 237 237 && pDriver->u32Session == g_VBoxGuestIDC.u32Session) … … 248 248 void vbglDriverClose (VBGLDRIVER *pDriver) 249 249 { 250 #ifdef __WIN__250 #ifdef RT_OS_WINDOWS 251 251 Log(("vbglDriverClose pDeviceObject=%x\n", pDriver->pDeviceObject)); 252 252 ObDereferenceObject (pDriver->pFileObject); 253 253 254 #elif defined ( __LINUX__)254 #elif defined (RT_OS_LINUX) 255 255 vboxadd_cmc_close (pDriver->opaque); 256 256 257 #elif defined ( __OS2__)257 #elif defined (RT_OS_OS2) 258 258 pDriver->u32Session = 0; 259 259 -
trunk/src/VBox/Additions/common/VBoxGuestLib/SysHlp.h
r3466 r3673 24 24 #define __SYSHLP__H 25 25 26 #ifdef __WIN__26 #ifdef RT_OS_WINDOWS 27 27 # if (_MSC_VER >= 1400) && !defined(VBOX_WITH_PATCHED_DDK) 28 28 # include <iprt/asm.h> … … 49 49 typedef struct _VBGLDRIVER 50 50 { 51 #ifdef __WIN__51 #ifdef RT_OS_WINDOWS 52 52 PDEVICE_OBJECT pDeviceObject; 53 53 PFILE_OBJECT pFileObject; 54 #elif defined ( __LINUX__)54 #elif defined (RT_OS_LINUX) 55 55 void *opaque; 56 #elif defined ( __OS2__)56 #elif defined (RT_OS_OS2) 57 57 uint32_t u32Session; /**< just for sanity checking. */ 58 58 #else -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxCalls.c
r3235 r3673 42 42 (a)->cParms = SHFL_CPARMS_##b 43 43 44 #ifndef __WIN__44 #ifndef RT_OS_WINDOWS 45 45 # define RtlZeroMemory(a, b) memset (a, 0, b) 46 46 #endif -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxCalls.h
r3192 r3673 26 26 #include <VBox/VBoxGuestLib.h> 27 27 #ifndef _NTIFS_ 28 # ifdef __WIN__28 # ifdef RT_OS_WINDOWS 29 29 # if (_MSC_VER >= 1400) && !defined(VBOX_WITH_PATCHED_DDK) 30 30 # include <iprt/asm.h> … … 86 86 #define DRIVE_FLAG_WRITE_PROTECTED (0x4) 87 87 88 #ifdef __WIN__88 #ifdef RT_OS_WINDOWS 89 89 /** Device extension structure for each drive letter we created. */ 90 90 typedef struct _VBSFDRIVE … … 112 112 } VBSFDRIVE; 113 113 typedef VBSFDRIVE *PVBSFDRIVE; 114 #endif /* __WIN__*/114 #endif /* RT_OS_WINDOWS */ 115 115 116 116 /* forward decl */
Note:
See TracChangeset
for help on using the changeset viewer.