Home
last modified time | relevance | path

Searched refs:rlimit (Results 1 – 19 of 19) sorted by relevance

/system/core/init/
Drlimit_parser_test.cpp27 const std::pair<int, rlimit>& expected_result) { in TestRlimitSuccess()
33 const auto& [resource, rlimit] = *result; in TestRlimitSuccess()
36 EXPECT_EQ(expected_rlimit.rlim_cur, rlimit.rlim_cur); in TestRlimitSuccess()
37 EXPECT_EQ(expected_rlimit.rlim_max, rlimit.rlim_max); in TestRlimitSuccess()
50 TEST(rlimit, RlimitSuccess) { in TEST() argument
51 const std::vector<std::pair<std::vector<std::string>, std::pair<int, rlimit>>> in TEST()
110 TEST(rlimit, RlimitFailure) { in TEST() argument
Dservice_utils.cpp253 for (const auto& rlimit : attr.rlimits) { in SetProcessAttributes() local
254 if (setrlimit(rlimit.first, &rlimit.second) == -1) { in SetProcessAttributes()
255 return ErrnoErrorf("setrlimit({}, {{rlim_cur={}, rlim_max={}}}) failed", rlimit.first, in SetProcessAttributes()
256 rlimit.second.rlim_cur, rlimit.second.rlim_max); in SetProcessAttributes()
Drlimit_parser.cpp31 Result<std::pair<int, rlimit>> ParseRlimit(const std::vector<std::string>& args) { in ParseRlimit()
67 rlimit limit; in ParseRlimit()
Drlimit_parser.h30 Result<std::pair<int, rlimit>> ParseRlimit(const std::vector<std::string>& args);
Dcheck_builtins.cpp200 auto rlimit = ParseRlimit(args.args); in check_setrlimit() local
201 if (!rlimit.ok()) return rlimit.error(); in check_setrlimit()
Dservice_utils.h83 std::vector<std::pair<int, rlimit>> rlimits;
Dservice_parser.cpp345 auto rlimit = ParseRlimit(args); in ParseProcessRlimit() local
346 if (!rlimit.ok()) return rlimit.error(); in ParseProcessRlimit()
348 service_->proc_attr_.rlimits.emplace_back(*rlimit); in ParseProcessRlimit()
Dbuiltins.cpp786 auto rlimit = ParseRlimit(args.args); in do_setrlimit() local
787 if (!rlimit.ok()) return rlimit.error(); in do_setrlimit()
789 if (setrlimit(rlimit->first, &rlimit->second) == -1) { in do_setrlimit()
DREADME.md288 `rlimit <resource> <cur> <max>`
289 > This applies the given rlimit to the service. rlimits are inherited by child
290 processes, so this effectively applies the given rlimit to the process tree
620 > Set the rlimit for a resource. This applies to all processes launched after
625 _cur_ and _max_ can be 'unlimited' or '-1' to indicate an infinite rlimit.
/system/bpf/bpfloader/
Dbpfloader.rc32 # However, while the rlimit is per-thread, the accounting is system wide.
35 # if its memlock rlimit is only 8MiB - since there would be none left for it.
50 # would simply ignore it's memlock rlimit... but it turns that this
55 rlimit memlock 1073741824 1073741824
/system/bpf/libbpf_android/
DBpfUtils.cpp86 struct rlimit limit = { in setrlimitForTest()
/system/extras/tests/storage/
Dopentest.c34 struct rlimit rlim; in main()
/system/core/sdcard/
Dsdcard.cpp247 struct rlimit rlim; in main()
/system/extras/ioshark/
Dioshark_bench.c629 struct rlimit r; in sizeup_fd_limits()
/system/extras/simpleperf/
DRecordReadThread.cpp331 rlimit rlim; in IncreaseThreadPriority()
Denvironment.cpp825 rlimit limit; in AllowMoreOpenedFiles()
/system/libfmq/tests/
Dfmq_unit_tests.cpp315 struct rlimit rlim; in TEST_F()
/system/core/debuggerd/
Ddebuggerd_test.cpp1255 struct rlimit rlim = { in seccomp_fork_rlimit()
/system/libhwbinder/
DParcel.cpp2004 struct rlimit result; in initState()