Searched refs:_winapi (Results 1 – 14 of 14) sorted by relevance
/external/python/cpython3/Lib/multiprocessing/ |
D | connection.py | 30 import _winapi 31 from _winapi import WAIT_OBJECT_0, WAIT_ABANDONED_0, WAIT_TIMEOUT, INFINITE 35 _winapi = None variable 266 if _winapi: 276 def _close(self, _CloseHandle=_winapi.CloseHandle): 280 ov, err = _winapi.WriteFile(self._handle, buf, overlapped=True) 282 if err == _winapi.ERROR_IO_PENDING: 283 waitres = _winapi.WaitForMultipleObjects( 301 ov, err = _winapi.ReadFile(self._handle, bsize, 304 if err == _winapi.ERROR_IO_PENDING: [all …]
|
D | reduction.py | 69 import _winapi 74 target_process = _winapi.GetCurrentProcess() 75 return _winapi.DuplicateHandle( 76 _winapi.GetCurrentProcess(), handle, target_process, 77 0, inheritable, _winapi.DUPLICATE_SAME_ACCESS) 81 source_process_handle = _winapi.OpenProcess( 82 _winapi.PROCESS_DUP_HANDLE, False, source_pid) 84 return _winapi.DuplicateHandle( 86 _winapi.GetCurrentProcess(), 0, False, 87 _winapi.DUPLICATE_SAME_ACCESS | _winapi.DUPLICATE_CLOSE_SOURCE) [all …]
|
D | popen_spawn_win32.py | 5 import _winapi 31 _winapi.CloseHandle(handle) 50 rhandle, whandle = _winapi.CreatePipe(None, 0) 70 hp, ht, pid, tid = _winapi.CreateProcess( 73 _winapi.CloseHandle(ht) 75 _winapi.CloseHandle(rhandle) 83 self.finalizer = util.Finalize(self, _winapi.CloseHandle, (self.sentinel,)) 100 msecs = _winapi.INFINITE 104 res = _winapi.WaitForSingleObject(int(self._handle), msecs) 105 if res == _winapi.WAIT_OBJECT_0: [all …]
|
D | heap.py | 28 import _winapi 39 if _winapi.GetLastError() == 0:
|
/external/python/cpython3/Lib/asyncio/ |
D | windows_utils.py | 8 import _winapi 39 openmode = _winapi.PIPE_ACCESS_DUPLEX 40 access = _winapi.GENERIC_READ | _winapi.GENERIC_WRITE 43 openmode = _winapi.PIPE_ACCESS_INBOUND 44 access = _winapi.GENERIC_WRITE 47 openmode |= _winapi.FILE_FLAG_FIRST_PIPE_INSTANCE 50 openmode |= _winapi.FILE_FLAG_OVERLAPPED 53 flags_and_attribs = _winapi.FILE_FLAG_OVERLAPPED 59 h1 = _winapi.CreateNamedPipe( 60 address, openmode, _winapi.PIPE_WAIT, [all …]
|
D | windows_events.py | 4 import _winapi 109 return (_winapi.WaitForSingleObject(self._handle, 0) == 110 _winapi.WAIT_OBJECT_0) 198 _winapi.CloseHandle(self._event) 267 flags = _winapi.PIPE_ACCESS_DUPLEX | _winapi.FILE_FLAG_OVERLAPPED 269 flags |= _winapi.FILE_FLAG_FIRST_PIPE_INSTANCE 270 h = _winapi.CreateNamedPipe( 272 _winapi.PIPE_TYPE_MESSAGE | _winapi.PIPE_READMODE_MESSAGE | 273 _winapi.PIPE_WAIT, 274 _winapi.PIPE_UNLIMITED_INSTANCES, [all …]
|
/external/python/cpython3/Lib/test/test_asyncio/ |
D | test_windows_utils.py | 11 import _winapi 28 self.assertEqual(ov1.error, _winapi.ERROR_IO_PENDING) 42 self.assertIn(ov2.error, {0, _winapi.ERROR_IO_PENDING}) 44 res = _winapi.WaitForMultipleObjects([ov2.event], False, 100) 45 self.assertEqual(res, _winapi.WAIT_OBJECT_0) 50 self.assertIn(ov2.error, {0, _winapi.ERROR_IO_PENDING}) 53 _winapi.CloseHandle(h1) 54 _winapi.CloseHandle(h2) 58 _winapi.CloseHandle(_) 69 _winapi.CloseHandle(h) [all …]
|
D | test_windows_events.py | 11 import _winapi 112 self.addCleanup(_winapi.CloseHandle, event) 146 self.addCleanup(_winapi.CloseHandle, event)
|
/external/python/cpython3/Lib/ |
D | subprocess.py | 128 import _winapi 178 from _winapi import (CREATE_NEW_CONSOLE, CREATE_NEW_PROCESS_GROUP, 202 def Close(self, CloseHandle=_winapi.CloseHandle): 1025 p2cread = _winapi.GetStdHandle(_winapi.STD_INPUT_HANDLE) 1027 p2cread, _ = _winapi.CreatePipe(None, 0) 1029 _winapi.CloseHandle(_) 1031 p2cread, p2cwrite = _winapi.CreatePipe(None, 0) 1043 c2pwrite = _winapi.GetStdHandle(_winapi.STD_OUTPUT_HANDLE) 1045 _, c2pwrite = _winapi.CreatePipe(None, 0) 1047 _winapi.CloseHandle(_) [all …]
|
D | site.py | 463 import _winapi 464 sys._base_executable = _winapi.GetModuleFileName(0)
|
/external/python/cpython3/Lib/encodings/ |
D | __init__.py | 161 import _winapi 162 ansi_code_page = "cp%s" % _winapi.GetACP()
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.7.1rc1.rst | 453 _winapi.PeekNamedPipe() and _winapi.ReadFile() for read larger than INT_MAX
|
/external/python/cpython3/Lib/test/ |
D | test_os.py | 41 import _winapi 43 _winapi = None variable 2279 _winapi.CreateJunction(self.junction_target, self.junction) 2287 _winapi.CreateJunction(self.junction_target, self.junction)
|
/external/python/cpython3/Misc/ |
D | HISTORY | 7871 _multiprocessing.win32 modules now live in a single module "_winapi".
|