Lines Matching refs:res
67 int hard, soft, cnt, c, res;
72 for (res = 0; res < RLIM_NLIMITS; res++) {
73 resources[res] = 0;
96 for (res = 0; res < RLIM_NLIMITS; res++) {
97 resources[res]++;
102 res = RLIMIT_CORE;
105 res = RLIMIT_DATA;
108 res = RLIMIT_FSIZE;
111 res = RLIMIT_NOFILE;
114 res = RLIMIT_STACK;
117 res = RLIMIT_CPU;
120 res = RLIMIT_VMEM;
126 resources[res]++;
131 resources[res = RLIMIT_FSIZE]++;
143 for (res = 0; res < RLIM_NLIMITS; res++) {
144 if (resources[res] == 0) {
147 if (getrlimit(res, &rlimit) < 0) {
151 prs_buff(_gettext(rlimtab[res].name));
153 prs_buff(_gettext(rlimtab[res].scale));
162 rlimtab[res].divisor);
173 rlimtab[res].divisor);
212 new_limit = limit * rlimtab[res].divisor;
223 if (getrlimit(res, &rlimit) < 0) {
239 if (setrlimit(res, &rlimit) < 0) {