Lines Matching defs:limits
141 py2rlimit(PyObject *limits, struct rlimit *rl_out)
144 limits = PySequence_Tuple(limits);
145 if (!limits)
146 /* Here limits is a borrowed reference */
149 if (PyTuple_GET_SIZE(limits) != 2) {
154 curobj = PyTuple_GET_ITEM(limits, 0);
155 maxobj = PyTuple_GET_ITEM(limits, 1);
164 /* The limits are probably bigger than a long */
173 Py_DECREF(limits);
179 Py_DECREF(limits);
225 limits: object
231 resource_setrlimit_impl(PyObject *module, int resource, PyObject *limits)
243 limits ? limits : Py_None) < 0) {
247 if (py2rlimit(limits, &rl) < 0) {
272 limits: object
280 int group_right_1, PyObject *limits)
293 limits ? limits : Py_None) < 0) {
298 if (py2rlimit(limits, &new_limit) < 0) {