Lines Matching defs:res

564                 PyObject *func, *res;
566 res = _PyObject_CallNoArgs(func);
567 if (res == NULL)
570 Py_DECREF(res);
1186 PyObject *func, *res;
1192 res = _PyObject_CallNoArgs(func);
1194 if (NULL == res) {
1197 else if (PyUnicode_Check(res)) {
1200 else if (PyBytes_Check(res)) {
1207 _PyType_Name(Py_TYPE(res)));
1208 Py_DECREF(res);
1214 o = res;
1772 int res;
1778 res = (*func)(fd);
1781 } while (res != 0 && errno == EINTR && !(async_err = PyErr_CheckSignals()));
1782 if (res != 0)
3114 PyObject *res = PyUnicode_DecodeFSDefault(buffer);
3116 return res;
3391 int res;
3400 res = fchmod(fd, mode);
3402 } while (res != 0 && errno == EINTR && !(async_err = PyErr_CheckSignals()));
3403 if (res != 0)
3428 int res;
3433 res = lchmod(path->narrow, mode);
3435 if (res < 0) {
3512 int res;
3517 res = lchflags(path->narrow, flags);
3519 if (res < 0) {
3540 int res;
3542 res = chroot(path->narrow);
3544 if (res < 0)
3734 int res;
3743 res = fchown(fd, uid, gid);
3745 } while (res != 0 && errno == EINTR && !(async_err = PyErr_CheckSignals()));
3746 if (res != 0)
3772 int res;
3777 res = lchown(path->narrow, uid, gid);
3779 if (res < 0) {
5200 int res;
5204 res = uname(&u);
5206 if (res < 0)
6017 convert_sched_param(PyObject *module, PyObject *param, struct sched_param *res);
6495 pid_t res;
6511 res = waitpid((pid_t)rtpid, &status, 0);
6512 } while (res < 0 && errno == EINTR && !(async_err = PyErr_CheckSignals()));
6514 if (res < 0)
6646 PyObject *res = NULL;
6732 res = Py_BuildValue(_Py_PARSE_INTPTR, spawnval);
6742 return res;
6972 PyObject *res;
6974 res = PyStructSequence_New(type);
6975 if (!res)
6978 PyStructSequence_SET_ITEM(res, 0, sched_priority);
6979 return res;
6997 convert_sched_param(PyObject *module, PyObject *param, struct sched_param *res)
7012 res->sched_priority = Py_SAFE_DOWNCAST(priority, long, int);
7288 PyObject *res = NULL;
7309 res = PySet_New(NULL);
7310 if (res == NULL)
7318 if (PySet_Add(res, cpu_num)) {
7326 return res;
7331 Py_XDECREF(res);
8477 pid_t res;
8485 res = wait4(pid, &status, options, &ru);
8487 } while (res < 0 && errno == EINTR && !(async_err = PyErr_CheckSignals()));
8488 if (res < 0)
8491 return wait_helper(module, res, WAIT_STATUS_INT(status), &ru);
8520 int res;
8527 res = waitid(idtype, id, &si, options);
8529 } while (res < 0 && errno == EINTR && !(async_err = PyErr_CheckSignals()));
8530 if (res < 0)
8575 pid_t res;
8582 res = waitpid(pid, &status, options);
8584 } while (res < 0 && errno == EINTR && !(async_err = PyErr_CheckSignals()));
8585 if (res < 0)
8588 return Py_BuildValue("Ni", PyLong_FromPid(res), WAIT_STATUS_INT(status));
8611 intptr_t res;
8617 res = _cwait(&status, pid, options);
8620 } while (res < 0 && errno == EINTR && !(async_err = PyErr_CheckSignals()));
8621 if (res < 0)
8627 return Py_BuildValue(_Py_PARSE_INTPTR "K", res, ustatus << 8);
9364 int res;
9371 res = close(fd);
9374 if (res < 0)
9432 int res = 0;
9446 res = dup2(fd, fd2);
9449 if (res < 0) {
9453 res = fd2; // msvcrt dup2 returns 0 on success.
9464 res = fcntl(fd, F_DUP2FD_CLOEXEC, fd2);
9466 res = dup2(fd, fd2);
9468 if (res < 0) {
9478 res = dup3(fd, fd2, O_CLOEXEC);
9480 if (res < 0) {
9494 res = dup2(fd, fd2);
9496 if (res < 0) {
9511 return res;
9536 int res;
9543 res = lockf(fd, command, length);
9546 if (res < 0)
10199 int res;
10204 res = FSTAT(fd, &st);
10206 } while (res != 0 && errno == EINTR && !(async_err = PyErr_CheckSignals()));
10207 if (res != 0) {
10264 int res;
10291 res = pipe2(fds, O_CLOEXEC);
10294 if (res != 0 && errno == ENOSYS)
10298 res = pipe(fds);
10301 if (res == 0) {
10317 if (res != 0)
10346 int res;
10348 res = pipe2(fds, flags);
10349 if (res != 0)