Lines Matching refs:resource
37 "getrlimit($module, resource, /)\n"
45 resource_getrlimit_impl(PyObject *module, int resource);
51 int resource;
53 resource = _PyLong_AsInt(arg);
54 if (resource == -1 && PyErr_Occurred()) {
57 return_value = resource_getrlimit_impl(module, resource);
64 "setrlimit($module, resource, limits, /)\n"
72 resource_setrlimit_impl(PyObject *module, int resource, PyObject *limits);
78 int resource;
84 resource = _PyLong_AsInt(args[0]);
85 if (resource == -1 && PyErr_Occurred()) {
89 return_value = resource_setrlimit_impl(module, resource, limits);
98 "prlimit(pid, resource, [limits])");
104 resource_prlimit_impl(PyObject *module, pid_t pid, int resource,
112 int resource;
118 if (!PyArg_ParseTuple(args, "" _Py_PARSE_PID "i:prlimit", &pid, &resource)) {
123 if (!PyArg_ParseTuple(args, "" _Py_PARSE_PID "iO:prlimit", &pid, &resource, &limits)) {
129 PyErr_SetString(PyExc_TypeError, "resource.prlimit requires 2 to 3 arguments");
132 return_value = resource_prlimit_impl(module, pid, resource, group_right_1, limits);