Home
last modified time | relevance | path

Searched refs:rlimit (Results 1 – 16 of 16) 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
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);
Dservice.cpp284 for (const auto& rlimit : rlimits_) { in SetProcessAttributes() local
285 if (setrlimit(rlimit.first, &rlimit.second) == -1) { in SetProcessAttributes()
287rlimit.first, rlimit.second.rlim_cur, rlimit.second.rlim_max); in SetProcessAttributes()
666 auto rlimit = ParseRlimit(args); in ParseProcessRlimit() local
667 if (!rlimit) return rlimit.error(); in ParseProcessRlimit()
669 rlimits_.emplace_back(*rlimit); in ParseProcessRlimit()
Dbuiltins.cpp706 auto rlimit = ParseRlimit(args.args); in do_setrlimit() local
707 if (!rlimit) return rlimit.error(); in do_setrlimit()
709 if (setrlimit(rlimit->first, &rlimit->second) == -1) { in do_setrlimit()
Dservice.h236 std::vector<std::pair<int, rlimit>> rlimits_;
DREADME.md291 `rlimit <resource> <cur> <max>`
292 > This applies the given rlimit to the service. rlimits are inherited by child
293 processes, so this effectively applies the given rlimit to the process tree
559 > Set the rlimit for a resource. This applies to all processes launched after
564 _cur_ and _max_ can be 'unlimited' or '-1' to indicate an infinite rlimit.
/system/bpf/bpfloader/
Dbpfloader.rc6 # the global rlimit. Once bpfloader is running as its own user in the
7 # future, it will have dedicated rlimit to itself and this can be 8MB.
8 rlimit memlock 67108864 67108864
/system/extras/tests/storage/
Dopentest.c34 struct rlimit rlim; in main()
/system/core/sdcard/
Dsdcard.cpp247 struct rlimit rlim; in main()
/system/bpf/libbpf_android/
DBpfUtils.cpp242 struct rlimit limit = { in setrlimitForTest()
/system/extras/simpleperf/
DRecordReadThread.cpp305 rlimit rlim; in IncreaseThreadPriority()
Denvironment.cpp830 rlimit limit; in AllowMoreOpenedFiles()
/system/extras/ioshark/
Dioshark_bench.c629 struct rlimit r; in sizeup_fd_limits()
/system/core/debuggerd/
Ddebuggerd_test.cpp682 struct rlimit rlim = { in seccomp_fork_rlimit()
/system/libhwbinder/
DParcel.cpp2221 struct rlimit result; in initState()