/third_party/rust/crates/rustix/examples/ |
D | process.rs | 45 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/ |
D | test_resource.py | 16 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/ |
D | rlimit.rs | 7 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/ |
D | test_resource.rs | 7 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/ |
D | getrlimit.c | 7 int getrlimit(int resource, struct rlimit *rlim) in getrlimit() function 20 weak_alias(getrlimit, getrlimit64);
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
D | getrlimit.c | 36 ret = getrlimit(r, &retrl); in getrlimit_0100() 50 int ret = getrlimit(-1, &limit); in getrlimit_0200()
|
/third_party/musl/src/misc/ |
D | getrlimit.c | 7 int getrlimit(int resource, struct rlimit *rlim) in getrlimit() function 38 weak_alias(getrlimit, getrlimit64);
|
/third_party/rust/crates/rustix/src/process/ |
D | rlimit.rs | 26 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/ |
D | resource.h | 49 int getrlimit (int, struct rlimit *); 102 #define getrlimit64 getrlimit
|
/third_party/musl/porting/uniproton/kernel/include/sys/ |
D | resource.h | 49 int getrlimit (int, struct rlimit *); 102 #define getrlimit64 getrlimit
|
/third_party/musl/porting/liteos_a/kernel/include/sys/ |
D | resource.h | 49 int getrlimit (int, struct rlimit *); 102 #define getrlimit64 getrlimit
|
/third_party/musl/include/sys/ |
D | resource.h | 49 int getrlimit (int, struct rlimit *); 102 #define getrlimit64 getrlimit
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
D | resource.h | 49 int getrlimit (int, struct rlimit *); 102 #define getrlimit64 getrlimit
|
/third_party/rust/crates/nix/src/sys/ |
D | resource.rs | 201 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/ |
D | getdtablesize.c | 11 getrlimit(RLIMIT_NOFILE, &rl); in getdtablesize()
|
D | ulimit.c | 10 getrlimit(RLIMIT_FSIZE, &rl); in ulimit()
|
/third_party/musl/src/legacy/ |
D | getdtablesize.c | 13 getrlimit(RLIMIT_NOFILE, &rl); in getdtablesize()
|
D | ulimit.c | 14 getrlimit(RLIMIT_FSIZE, &rl); in ulimit()
|
/third_party/ltp/testcases/kernel/syscalls/ulimit/ |
D | README | 2 longer provided by glibc. Use getrlimit(2), setrlimit(2)
|
/third_party/mksh/ |
D | ulimit.c | 295 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/ |
D | ulimit.c | 9 getrlimit(RLIMIT_FSIZE, &rl); in ulimit()
|
/third_party/musl/libc-test/src/common/ |
D | setrlim.c | 10 if (getrlimit(r, &rl)) { in t_setrlim()
|
/third_party/ltp/testcases/kernel/syscalls/getrlimit/ |
D | getrlimit02.c | 39 TST_EXP_FAIL(getrlimit(tc->res_type, tc->rlim), in verify_getrlimit()
|
D | getrlimit01.c | 50 TST_EXP_PASS(getrlimit(tc->res, &rlim), in verify_getrlimit()
|
/third_party/python/Doc/library/ |
D | resource.rst | 42 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.
|