Home
last modified time | relevance | path

Searched refs:getrlimit (Results 1 – 25 of 135) sorted by relevance

123456

/third_party/rust/crates/rustix/examples/
Dprocess.rs45 println!("Cpu Limit: {:?}", getrlimit(Resource::Cpu)); in main()
46 println!("Fsize Limit: {:?}", getrlimit(Resource::Fsize)); in main()
47 println!("Data Limit: {:?}", getrlimit(Resource::Data)); in main()
48 println!("Stack Limit: {:?}", getrlimit(Resource::Stack)); in main()
50 println!("Core Limit: {:?}", getrlimit(Resource::Core)); in main()
52 println!("Rss Limit: {:?}", getrlimit(Resource::Rss)); in main()
54 println!("Nproc Limit: {:?}", getrlimit(Resource::Nproc)); in main()
56 println!("Nofile Limit: {:?}", getrlimit(Resource::Nofile)); in main()
58 println!("Memlock Limit: {:?}", getrlimit(Resource::Memlock)); in main()
60 println!("As Limit: {:?}", getrlimit(Resource::As)); in main()
[all …]
/third_party/python/Lib/test/
Dtest_resource.py16 self.assertRaises(TypeError, resource.getrlimit)
17 self.assertRaises(TypeError, resource.getrlimit, 42, 42)
25 (cur, max) = resource.getrlimit(resource.RLIMIT_FSIZE)
39 (cur, max) = resource.getrlimit(resource.RLIMIT_FSIZE)
88 (cur, max) = resource.getrlimit(resource.RLIMIT_FSIZE)
121 limits = resource.getrlimit(resource.RLIMIT_CPU)
157 limit = resource.getrlimit(resource.RLIMIT_AS)
172 limits = resource.getrlimit(resource.RLIMIT_AS)
/third_party/rust/crates/rustix/tests/process/
Drlimit.rs7 let lim = rustix::process::getrlimit(Resource::Stack); in test_getrlimit()
15 let old = rustix::process::getrlimit(Resource::Core); in test_setrlimit()
23 let lim = rustix::process::getrlimit(Resource::Core); in test_setrlimit()
33 let first = rustix::process::getrlimit(Resource::Core); in test_setrlimit()
/third_party/rust/crates/nix/test/
Dtest_resource.rs7 use nix::sys::resource::{getrlimit, setrlimit, Resource};
26 getrlimit(Resource::RLIMIT_NOFILE).unwrap(); in test_resource_limits_nofile()
32 let (new_soft_limit, _) = getrlimit(Resource::RLIMIT_NOFILE).unwrap(); in test_resource_limits_nofile()
/third_party/musl/porting/liteos_a/user/src/misc/
Dgetrlimit.c7 int getrlimit(int resource, struct rlimit *rlim) in getrlimit() function
20 weak_alias(getrlimit, getrlimit64);
/third_party/musl/libc-test/src/functionalext/supplement/misc/
Dgetrlimit.c36 ret = getrlimit(r, &retrl); in getrlimit_0100()
50 int ret = getrlimit(-1, &limit); in getrlimit_0200()
/third_party/musl/src/misc/
Dgetrlimit.c7 int getrlimit(int resource, struct rlimit *rlim) in getrlimit() function
38 weak_alias(getrlimit, getrlimit64);
/third_party/rust/crates/rustix/src/process/
Drlimit.rs26 pub fn getrlimit(resource: Resource) -> Rlimit { in getrlimit() function
27 backend::process::syscalls::getrlimit(resource) in getrlimit()
/third_party/musl/porting/liteos_m/kernel/include/sys/
Dresource.h49 int getrlimit (int, struct rlimit *);
102 #define getrlimit64 getrlimit
/third_party/musl/porting/uniproton/kernel/include/sys/
Dresource.h49 int getrlimit (int, struct rlimit *);
102 #define getrlimit64 getrlimit
/third_party/musl/porting/liteos_a/kernel/include/sys/
Dresource.h49 int getrlimit (int, struct rlimit *);
102 #define getrlimit64 getrlimit
/third_party/musl/include/sys/
Dresource.h49 int getrlimit (int, struct rlimit *);
102 #define getrlimit64 getrlimit
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
Dresource.h49 int getrlimit (int, struct rlimit *);
102 #define getrlimit64 getrlimit
/third_party/rust/crates/nix/src/sys/
Dresource.rs201 pub fn getrlimit(resource: Resource) -> Result<(rlim_t, rlim_t)> { in getrlimit() function
206 … let res = unsafe { libc::getrlimit(resource as __rlimit_resource_t, old_rlim.as_mut_ptr()) }; in getrlimit()
208 let res = unsafe { libc::getrlimit(resource as c_int, old_rlim.as_mut_ptr()) }; in getrlimit()
/third_party/musl/porting/liteos_a/user/src/legacy/
Dgetdtablesize.c11 getrlimit(RLIMIT_NOFILE, &rl); in getdtablesize()
Dulimit.c10 getrlimit(RLIMIT_FSIZE, &rl); in ulimit()
/third_party/musl/src/legacy/
Dgetdtablesize.c13 getrlimit(RLIMIT_NOFILE, &rl); in getdtablesize()
Dulimit.c14 getrlimit(RLIMIT_FSIZE, &rl); in ulimit()
/third_party/ltp/testcases/kernel/syscalls/ulimit/
DREADME2 longer provided by glibc. Use getrlimit(2), setrlimit(2)
/third_party/mksh/
Dulimit.c295 if (getrlimit(l->resource, &limit) < 0) { in set_ulimit()
334 if (getrlimit(l->resource, &limit)) in print_ulimit()
/third_party/musl/porting/linux/user/src/legacy/
Dulimit.c9 getrlimit(RLIMIT_FSIZE, &rl); in ulimit()
/third_party/musl/libc-test/src/common/
Dsetrlim.c10 if (getrlimit(r, &rl)) { in t_setrlim()
/third_party/ltp/testcases/kernel/syscalls/getrlimit/
Dgetrlimit02.c39 TST_EXP_FAIL(getrlimit(tc->res_type, tc->rlim), in verify_getrlimit()
Dgetrlimit01.c50 TST_EXP_PASS(getrlimit(tc->res, &rlim), in verify_getrlimit()
/third_party/python/Doc/library/
Dresource.rst42 described in the :manpage:`getrlimit(2)` man page. The resources listed below
53 .. function:: getrlimit(resource)
86 Combines :func:`setrlimit` and :func:`getrlimit` in one function and
108 :func:`setrlimit` and :func:`getrlimit` functions described below. The values of
111 The Unix man page for :manpage:`getrlimit(2)` lists the available resources.

123456