Lines Matching full:limits
148 PyObject *limits, *curobj, *maxobj; in resource_setrlimit() local
150 if (!PyArg_ParseTuple(args, "iO:setrlimit", &resource, &limits)) in resource_setrlimit()
159 limits = PySequence_Tuple(limits); in resource_setrlimit()
160 if (!limits) in resource_setrlimit()
161 /* Here limits is a borrowed reference */ in resource_setrlimit()
164 if (PyTuple_GET_SIZE(limits) != 2) { in resource_setrlimit()
169 curobj = PyTuple_GET_ITEM(limits, 0); in resource_setrlimit()
170 maxobj = PyTuple_GET_ITEM(limits, 1); in resource_setrlimit()
180 /* The limits are probably bigger than a long */ in resource_setrlimit()
204 Py_DECREF(limits); in resource_setrlimit()
209 Py_DECREF(limits); in resource_setrlimit()