Lines Matching refs:errno
1119 POSIX, set errno and return nonzero on error. Fill status and return 0 on
1132 /* errno is already set by _get_osfhandle, but we also set
1143 errno = winerror_to_errno(error);
1158 /* The Win32 error is already set, but we also set errno for
1160 errno = winerror_to_errno(GetLastError());
1183 error on error. On POSIX, set errno on error. Fill status and return 0 on
1225 errno = EINVAL;
1404 if (errno == EBADF) {
1411 if (errno != ENOTTY && errno != EACCES) {
1463 Return 0 on success, set errno and return -1 on error. */
1492 /* Same as _Py_set_inheritable() but on error, set errno and
1534 && errno == EINTR && !(async_err = PyErr_CheckSignals()));
1581 Return a file descriptor on success. Set errno and return -1 on error.
1611 errno = EINVAL;
1689 && errno == EINTR && !(async_err = PyErr_CheckSignals()));
1713 && errno == EINTR && !(async_err = PyErr_CheckSignals()));
1738 On error, raise an exception, set errno and return -1.
1766 errno = 0;
1772 /* save/restore errno because PyErr_CheckSignals()
1774 err = errno;
1783 errno = err;
1784 assert(errno == EINTR && PyErr_Occurred());
1789 errno = err;
1830 errno = 0;
1836 /* save/restore errno because PyErr_CheckSignals()
1838 err = errno;
1845 errno = 0;
1851 err = errno;
1860 errno = err;
1861 assert(errno == EINTR && (!gil_held || PyErr_Occurred()));
1867 errno = err;
1877 including 0. On error, raise an exception, set errno and return -1.
1900 * including 0. On error, set errno and return -1.
1929 errno = EINVAL;
1938 errno = EINVAL;
1944 errno = EINVAL;
1950 errno = EINVAL;
1977 errno = EINVAL;
1987 errno = EINVAL;
1993 errno = EINVAL;
2417 errno = ENOTSUP;