Lines Matching refs:limits
110 py2rlimit(PyObject *limits, struct rlimit *rl_out) in py2rlimit() argument
113 limits = PySequence_Tuple(limits); in py2rlimit()
114 if (!limits) in py2rlimit()
118 if (PyTuple_GET_SIZE(limits) != 2) { in py2rlimit()
123 curobj = PyTuple_GET_ITEM(limits, 0); in py2rlimit()
124 maxobj = PyTuple_GET_ITEM(limits, 1); in py2rlimit()
142 Py_DECREF(limits); in py2rlimit()
148 Py_DECREF(limits); in py2rlimit()
190 PyObject *limits; in resource_setrlimit() local
192 if (!PyArg_ParseTuple(args, "iO:setrlimit", &resource, &limits)) in resource_setrlimit()
201 if (py2rlimit(limits, &rl) < 0) { in resource_setrlimit()
226 PyObject *limits = NULL; in resource_prlimit() local
229 &pid, &resource, &limits)) in resource_prlimit()
238 if (limits != NULL) { in resource_prlimit()
239 if (py2rlimit(limits, &new_limit) < 0) { in resource_prlimit()