Lines Matching full:limits
139 py2rlimit(PyObject *limits, struct rlimit *rl_out) in py2rlimit() argument
142 limits = PySequence_Tuple(limits); in py2rlimit()
143 if (!limits) in py2rlimit()
144 /* Here limits is a borrowed reference */ in py2rlimit()
147 if (PyTuple_GET_SIZE(limits) != 2) { in py2rlimit()
152 curobj = PyTuple_GET_ITEM(limits, 0); in py2rlimit()
153 maxobj = PyTuple_GET_ITEM(limits, 1); in py2rlimit()
162 /* The limits are probably bigger than a long */ in py2rlimit()
171 Py_DECREF(limits); in py2rlimit()
177 Py_DECREF(limits); in py2rlimit()
223 limits: object
229 resource_setrlimit_impl(PyObject *module, int resource, PyObject *limits) in resource_setrlimit_impl() argument
241 limits ? limits : Py_None) < 0) { in resource_setrlimit_impl()
245 if (py2rlimit(limits, &rl) < 0) { in resource_setrlimit_impl()
270 limits: object
278 int group_right_1, PyObject *limits) in resource_prlimit_impl() argument
291 limits ? limits : Py_None) < 0) { in resource_prlimit_impl()
296 if (py2rlimit(limits, &new_limit) < 0) { in resource_prlimit_impl()