Lines Matching defs:limit
400 { "swap limit", "kbytes", RLIMIT_SWAP, 1024, 'w' },
421 struct rlimit limit;
469 if (getrlimit(l->cmd, &limit) < 0)
470 error("can't get limit: %s", strerror(errno));
472 val = limit.rlim_cur;
474 val = limit.rlim_max;
494 if (getrlimit(l->cmd, &limit) < 0)
495 error("can't get limit: %s", strerror(errno));
498 limit.rlim_cur = val;
500 limit.rlim_max = val;
501 if (setrlimit(l->cmd, &limit) < 0)
502 error("bad limit: %s", strerror(errno));
505 val = limit.rlim_cur;
507 val = limit.rlim_max;