/vbox/src/VBox/Runtime/r3/win/ |
H A D | RTHandleGetStandard-win.cpp | 65 HANDLE hNative = GetStdHandle(dwStdHandle); local 66 if (hNative == INVALID_HANDLE_VALUE) 70 if (!GetHandleInformation(hNative, &dwInfo)) 75 DWORD dwType = GetFileType(hNative); 89 if (!GetNamedPipeInfo(hNative, &fInfo, NULL, NULL, &cMaxInstances)) 104 rc = RTFileFromNative(&h.u.hFile, (RTHCUINTPTR)hNative); 108 rc = RTPipeFromNative(&h.u.hPipe, (RTHCUINTPTR)hNative, 114 rc = rtSocketCreateForNative(&h.u.hSocket, (RTHCUINTPTR)hNative);
|
H A D | ldrNative-win.cpp | 93 FARPROC pfn = GetProcAddress((HMODULE)pModNative->hNative, pszSymbol); 108 || FreeLibrary((HMODULE)pModNative->hNative)) 110 pModNative->hNative = (uintptr_t)INVALID_HANDLE_VALUE;
|
H A D | pipe-win.cpp | 442 HANDLE hNative = (HANDLE)hNativePipe; local 443 AssertReturn(GetFileType(hNative) == FILE_TYPE_PIPE, VERR_INVALID_HANDLE); 447 if (!GetNamedPipeInfo(hNative, &fInfo, NULL, NULL, &cMaxInstances)) 454 if (!GetNamedPipeHandleState(hNative, &fState, &cInstances, NULL, NULL, NULL, 0)) 475 pThis->hPipe = hNative; 493 if (DuplicateHandle(GetCurrentProcess() /*hSrcProcess*/, hNative /*hSrcHandle*/, 527 && !SetHandleInformation(hNative, 540 CloseHandle(hNative);
|
H A D | fileio-win.cpp | 367 HANDLE hNative = GetStdHandle(dwStdHandle); local 368 if (hNative == INVALID_HANDLE_VALUE) 371 RTFILE hFile = (RTFILE)(uintptr_t)hNative; 372 AssertReturn((HANDLE)(uintptr_t)hFile == hNative, NIL_RTFILE);
|
/vbox/src/VBox/HostServices/SharedOpenGL/render/ |
H A D | renderspu_cocoa.c | 320 static VBoxGLhandleARB crHndlSearchVBox(GLhandleARB hNative) argument 322 CRASSERT(!(((uintptr_t)hNative) >> 32)); 323 return (VBoxGLhandleARB)((uintptr_t)hNative); 331 static VBoxGLhandleARB crHndlAcquireVBox(GLhandleARB hNative) argument 333 CRASSERT(!(((uintptr_t)hNative) >> 32)); 334 return (VBoxGLhandleARB)((uintptr_t)hNative); 344 GLhandleARB hNative = crHndlReleaseVBox(obj); local 345 if (!hNative) 351 render_spu.pfnDeleteObject(hNative); 357 GLhandleARB hNative local 396 GLhandleARB hNative = render_spu.pfnGetHandle(pname); local 410 GLhandleARB hNative = crHndlSearchNative(obj); local 422 GLhandleARB hNative = crHndlSearchNative(obj); local 434 GLhandleARB hNative = crHndlSearchNative(obj); local [all...] |
H A D | renderspu_init.c | 559 HANDLE hNative; local 561 hNative = OpenThread(SYNCHRONIZE|THREAD_QUERY_INFORMATION|THREAD_TERMINATE, 563 if (!hNative) 573 if (hNative && WaitForSingleObject(hNative, 3000)==WAIT_TIMEOUT) 576 if (!TerminateThread(hNative, 1)) 583 if (hNative) 585 CloseHandle(hNative);
|
/vbox/src/VBox/Runtime/r3/posix/ |
H A D | ldrNative-posix.cpp | 101 *ppvValue = dlsym((void *)pModNative->hNative, pszSymbol); 112 || !dlclose((void *)pModNative->hNative)) 114 pModNative->hNative = (uintptr_t)0; 117 Log(("rtldrNativeFree: dlclose(%p) failed: %s\n", pModNative->hNative, dlerror()));
|
H A D | pipe-posix.cpp | 252 int hNative = (int)hNativePipe; local 254 AssertReturn(fstat(hNative, &st) == 0, RTErrConvertFromErrno(errno)); 257 int fFd = fcntl(hNative, F_GETFL, 0); 271 pThis->fd = hNative; 278 if (fcntl(hNative, F_SETFD, fFlags & RTPIPE_N_INHERIT ? 0 : FD_CLOEXEC) == 0)
|
/vbox/src/VBox/Runtime/r3/ |
H A D | socket.cpp | 142 RTSOCKETNATIVE hNative; member in struct:RTSOCKETINT 357 if (ioctlsocket(pThis->hNative, FIONBIO, &uBlocking)) 361 int fFlags = fcntl(pThis->hNative, F_GETFL, 0); 369 if (fcntl(pThis->hNative, F_SETFL, fFlags) == -1) 400 * @param hNative The native handle. 402 int rtSocketCreateForNative(RTSOCKETINT **ppSocket, RTSOCKETNATIVE hNative) argument 409 pThis->hNative = hNative; 451 RTSOCKETNATIVE hNative = socket(iDomain, iType, iProtocol); local 452 if (hNative 504 RTSOCKETNATIVE hNative = pThis->hNative; local [all...] |
H A D | poll.cpp | 756 RTHCINTPTR hNative = -1; local 765 rc = rtPipePollGetHandle(uh.hPipe, fEvents, &hNative); 772 rc = rtSocketPollGetHandle(uh.hSocket, fEvents, &hNative); 825 pThis->pahNative[i] = (HANDLE)hNative; 827 pThis->pahNative[i] = hNative; 829 pThis->paPollFds[i].fd = (int)hNative; 908 RTHCINTPTR const hNative = pThis->pahNative[i]; local 950 APIRET orc = DosDeleteMuxWaitSem(pThis->hmux, (HSEM)hNative); 959 rtPollSetOs2RemoveSocket(pThis, pThis->cReadSockets + pThis->cWriteSockets, &pThis->cXcptSockets, (int)hNative); 961 rtPollSetOs2RemoveSocket(pThis, pThis->cReadSockets, &pThis->cWriteSockets, (int)hNative); [all...] |
H A D | tcp.cpp | 953 RTHCUINTPTR hNative = RTSocketToNative(Sock); local 954 if (RT_SUCCESS(rc) && rtTcpSetBlockingMode(hNative, false /*fBlocking*/) == 0) 968 FD_SET(hNative, &FdSetR); 972 FD_SET(hNative, &FdSetE); 977 rc = select(hNative + 1, &FdSetR, NULL, &FdSetE, &TvTimeout); 982 if (FD_ISSET(hNative, &FdSetE)) 997 ssize_t cbRead = recv(hNative, &abBitBucket[0], sizeof(abBitBucket), MSG_NOSIGNAL);
|
/vbox/src/VBox/Runtime/include/internal/ |
H A D | socket.h | 55 int rtSocketCreateForNative(RTSOCKETINT **ppSocket, RTSOCKETNATIVE hNative);
|
H A D | ldr.h | 457 uintptr_t hNative; member in struct:RTLDRMODNATIVE
|
/vbox/src/VBox/Runtime/common/ldr/ |
H A D | ldrNative.cpp | 153 pMod->hNative = ~(uintptr_t)0; 159 rc = rtldrNativeLoad(pszFilename, &pMod->hNative, fFlags, pErrInfo); 320 return pThis->hNative;
|
/vbox/src/VBox/Additions/common/crOpenGL/ |
H A D | load.c | 403 HANDLE hNative; local 406 hNative = OpenThread(SYNCHRONIZE|THREAD_QUERY_INFORMATION|THREAD_TERMINATE, 408 if (!hNative) 414 crDebug("Got handle %p for thread %#x", hNative, RTThreadGetNative(stub.hSyncThread)); 429 if (WaitForSingleObject(hNative, 100)==WAIT_TIMEOUT) 432 if (!TerminateThread(hNative, 1)) 437 if (GetExitCodeThread(hNative, &ec)) 439 crDebug("Thread %p exited with ec=%i", hNative, ec); 451 if (hNative) 453 CloseHandle(hNative); [all...] |
/vbox/src/VBox/Runtime/testcase/ |
H A D | tstRTPipe.cpp | 102 RTHCINTPTR hNative = RTPipeToNative(hPipeR); local 103 RTTESTI_CHECK_RETV(hNative != -1); 106 RTStrPrintf(szNative, sizeof(szNative), "%RHi", hNative); 165 RTHCINTPTR hNative = RTPipeToNative(hPipeW); local 166 RTTESTI_CHECK_RETV(hNative != -1); 169 RTStrPrintf(szNative, sizeof(szNative), "%RHi", hNative);
|
/vbox/src/VBox/Runtime/r3/os2/ |
H A D | pipe-os2.cpp | 272 HPIPE hNative = (HPIPE)hNativePipe; local 275 APIRET orc = DosQueryHType(hNative, &ulType, &ulAttr); 285 orc = DosQueryNPipeInfo(hNative, 1, &Buf, sizeof(Buf)); 296 orc = DosQueryNPHState(hNative, &fPipeState); 308 orc = DosQueryFHState(hNative, &fFileState); 317 orc = DosSetFHState(hNative, (fFileState & (OPEN_FLAGS_WRITE_THROUGH | OPEN_FLAGS_FAIL_ON_ERROR | OPEN_FLAGS_NO_CACHE)) 333 pThis->hPipe = hNative;
|
/vbox/src/VBox/ExtPacks/VBoxDTrace/ |
H A D | VBoxDTraceR0.cpp | 713 g_aThreads[i].hNative = NIL_RTNATIVETHREAD; 741 Assert(pData->pThread->hNative == RTThreadNativeSelf()); 759 if (pThread->hNative == hNativeSelf) 791 if (pThread->hNative != NIL_RTNATIVETHREAD) 793 uintptr_t iHash2 = (pThread->hNative * 2654435761U) % RT_ELEMENTS(g_apThreadsHash); 819 pThread->hNative = hNativeSelf;
|
/vbox/src/VBox/HostDrivers/Support/ |
H A D | SUPR3HardenedVerify.cpp | 1256 * @param hNative The native handle to the object @a pszPath 1264 static int supR3HardenedQueryFsObjectByHandle(RTHCUINTPTR hNative, PSUPR3HARDENEDFSOBJSTATE pFsObjState, argument 1276 if (fstat((int)hNative, &pFsObjState->Stat) != 0) 1448 * @param hNative The native handle to the object @a pszPath 1457 static int supR3HardenedVerifySameFsObject(RTHCUINTPTR hNative, PCSUPR3HARDENEDFSOBJSTATE pFsObjState, argument 1461 int rc = supR3HardenedQueryFsObjectByHandle(hNative, &FsObjState2, pszPath, pErrInfo);
|
/vbox/src/VBox/Main/src-helper-apps/ |
H A D | VBoxExtPackHelperApp.cpp | 856 RTHCUINTPTR hNative = (RTHCUINTPTR)ValueUnion.u64; 857 if (hNative != ValueUnion.u64) 859 rc = RTFileFromNative(&hTarballFileOpt, hNative);
|
/vbox/src/VBox/ExtPacks/VBoxDTrace/include/ |
H A D | VBoxDTraceTypes.h | 229 RTNATIVETHREAD hNative; member in struct:VBoxDtThread
|