Lines Matching defs:handle

1039  *     If nonzero, the path is permitted to be a file handle
3088 Integer file descriptor handle.
4397 /* We have a good handle to the target, use it to determine the
8081 HANDLE handle;
8084 CTRL+BREAK events, provided they handle said events. */
8096 handle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, (DWORD)pid);
8097 if (handle == NULL) {
8102 if (TerminateProcess(handle, sig) == 0) {
8110 CloseHandle(handle);
8753 /* First get a handle to the reparse point */
9440 * then has to be closed. See os_close_impl() for why we don't handle EINTR
13375 HANDLE handle;
13387 handle = GetStdHandle(nhandle);
13388 if (handle == NULL)
13389 return PyErr_Format(PyExc_OSError, "handle cannot be retrieved");
13390 if (handle == INVALID_HANDLE_VALUE)
13393 if (!GetConsoleScreenBufferInfo(handle, &csbi))
13506 handle: intptr_t
13513 os_get_handle_inheritable_impl(PyObject *module, intptr_t handle)
13518 if (!GetHandleInformation((HANDLE)handle, &flags)) {
13529 handle: intptr_t
13533 Set the inheritable flag of the specified handle.
13537 os_set_handle_inheritable_impl(PyObject *module, intptr_t handle,
13542 if (!SetHandleInformation((HANDLE)handle, HANDLE_FLAG_INHERIT, flags)) {
14198 HANDLE handle;
14214 return iterator->handle == INVALID_HANDLE_VALUE;
14220 HANDLE handle = iterator->handle;
14222 if (handle == INVALID_HANDLE_VALUE)
14225 iterator->handle = INVALID_HANDLE_VALUE;
14227 FindClose(handle);
14239 if (iterator->handle == INVALID_HANDLE_VALUE)
14245 success = FindNextFileW(iterator->handle, file_data);
14480 iterator->handle = INVALID_HANDLE_VALUE;
14497 iterator->handle = FindFirstFileW(path_strW, &iterator->file_data);
14502 if (iterator->handle == INVALID_HANDLE_VALUE) {
15226 /* Automatically delete when last handle is closed. */