Lines Matching defs:lr
78 struct login_res *lr;
83 for (lr = resources; lr->what != NULL; ++lr) {
98 if (getrlimit(lr->why, &rlim) != 0)
99 syslog(LOG_ERR, "getting %s resource limit: %m", lr->what);
106 sprintf(name_cur, "%s-cur", lr->what);
107 sprintf(name_max, "%s-max", lr->what);
109 rcur = (*lr->who)(lc, lr->what, rcur, rcur);
110 rmax = (*lr->who)(lc, lr->what, rmax, rmax);
111 rlim.rlim_cur = (*lr->who)(lc, name_cur, rcur, rcur);
112 rlim.rlim_max = (*lr->who)(lc, name_max, rmax, rmax);
114 if (setrlimit(lr->why, &rlim) == -1)
115 syslog(LOG_WARNING, "set class '%s' resource limit %s: %m", lc->lc_class, lr->what);