Searched refs:limit (Results 1 - 4 of 4) sorted by relevance

/system/core/toolbox/
H A Dcmp.c22 int limit = 0; local
36 limit = atoi(optarg);
79 if(limit) {
80 limit--;
81 if(limit == 0)
/system/core/sh/
H A Dmiscbltin.c348 struct rlimit limit; local
395 getrlimit(l->cmd, &limit);
397 val = limit.rlim_cur;
399 val = limit.rlim_max;
417 getrlimit(l->cmd, &limit);
420 limit.rlim_max = val;
422 limit.rlim_cur = val;
423 if (setrlimit(l->cmd, &limit) < 0)
424 error("error setting limit (%s)", strerror(errno));
427 val = limit
[all...]
/system/core/fastboot/
H A Dfastboot.c527 int64_t limit = 0; local
532 limit = strtoul(response, NULL, 0);
533 if (limit > 0) {
535 limit);
539 return limit;
544 int64_t limit; local
549 limit = sparse_limit;
555 limit = target_sparse_limit;
561 if (size > limit) {
562 return limit;
584 int64_t limit; local
[all...]
/system/core/init/
H A Dbuiltins.c566 struct rlimit limit; local
569 limit.rlim_cur = atoi(args[2]);
570 limit.rlim_max = atoi(args[3]);
571 return setrlimit(resource, &limit);

Completed in 174 milliseconds