/third_party/python/Lib/test/ |
D | test_resource.py | 18 self.assertRaises(TypeError, resource.setrlimit) 19 self.assertRaises(TypeError, resource.setrlimit, 42, 42, 42) 35 resource.setrlimit(resource.RLIMIT_FSIZE, (cur, max)) 52 resource.setrlimit(resource.RLIMIT_FSIZE, (1024, max)) 76 resource.setrlimit(resource.RLIMIT_FSIZE, (cur, max)) 81 resource.setrlimit(resource.RLIMIT_FSIZE, (cur, max)) 93 resource.setrlimit(resource.RLIMIT_FSIZE, (too_big, max)) 97 resource.setrlimit(resource.RLIMIT_FSIZE, (max, too_big)) 133 resource.setrlimit(resource.RLIMIT_CPU, BadSequence())
|
/third_party/ltp/testcases/kernel/syscalls/setrlimit/ |
D | setrlimit01.c | 73 if ((setrlimit(RLIMIT_NPROC, &save_rlim)) == -1) { in main() 92 TEST(setrlimit(RLIMIT_NOFILE, &rlim)); in test1() 145 if ((setrlimit(RLIMIT_FSIZE, &rlim)) == -1) in test2() 201 TEST(setrlimit(RLIMIT_NPROC, &rlim)); in test3() 247 TEST(setrlimit(RLIMIT_CORE, &rlim)); in test4()
|
D | setrlimit05.c | 29 TEST(setrlimit(RLIMIT_NOFILE, bad_addr)); in verify_setrlimit()
|
/third_party/ltp/testcases/kernel/syscalls/mlockall/ |
D | mlockall02.c | 188 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in setup_test() 210 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in setup_test() 243 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in cleanup_test()
|
D | mlockall03.c | 233 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in setup_test() 244 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in setup_test() 277 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in cleanup_test()
|
/third_party/rust/crates/nix/test/ |
D | test_resource.rs | 7 use nix::sys::resource::{getrlimit, setrlimit, Resource}; 30 setrlimit(Resource::RLIMIT_NOFILE, soft_limit, hard_limit).unwrap(); in test_resource_limits_nofile()
|
/third_party/rust/crates/rustix/src/process/ |
D | rlimit.rs | 39 pub fn setrlimit(resource: Resource, new: Rlimit) -> io::Result<()> { in setrlimit() function 40 backend::process::syscalls::setrlimit(resource, new) in setrlimit()
|
/third_party/musl/porting/liteos_a/user/src/misc/ |
D | setrlimit.c | 38 int setrlimit(int resource, const struct rlimit *rlim) in setrlimit() function 49 weak_alias(setrlimit, setrlimit64);
|
/third_party/libunwind/tests/ |
D | test-mem.c | 98 setrlimit (RLIMIT_DATA, &rlim); in main() 99 setrlimit (RLIMIT_AS, &rlim); in main()
|
/third_party/musl/src/misc/ |
D | setrlimit.c | 22 int setrlimit(int resource, const struct rlimit *rlim) in setrlimit() function 47 weak_alias(setrlimit, setrlimit64);
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_init/ |
D | 4-1.c | 69 rc = setrlimit(RLIMIT_DATA, &rl); in child() 70 rc |= setrlimit(RLIMIT_AS, &rl); in child()
|
/third_party/musl/porting/liteos_a/kernel/include/sys/ |
D | resource.h | 50 int setrlimit (int, const struct rlimit *); 103 #define setrlimit64 setrlimit
|
/third_party/musl/porting/uniproton/kernel/include/sys/ |
D | resource.h | 50 int setrlimit (int, const struct rlimit *); 103 #define setrlimit64 setrlimit
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
D | resource.h | 50 int setrlimit (int, const struct rlimit *); 103 #define setrlimit64 setrlimit
|
/third_party/musl/porting/liteos_m/kernel/include/sys/ |
D | resource.h | 50 int setrlimit (int, const struct rlimit *); 103 #define setrlimit64 setrlimit
|
/third_party/musl/ndk_musl_include/sys/ |
D | resource.h | 50 int setrlimit (int, const struct rlimit *); 103 #define setrlimit64 setrlimit
|
/third_party/musl/include/sys/ |
D | resource.h | 50 int setrlimit (int, const struct rlimit *); 103 #define setrlimit64 setrlimit
|
/third_party/python/Doc/library/ |
D | resource.rst | 33 Resources usage can be limited using the :func:`setrlimit` function described 60 .. function:: setrlimit(resource, limits) 76 ``setrlimit`` may also raise :exc:`error` if the underlying system call 81 .. audit-event:: resource.setrlimit resource,limits resource.setrlimit 86 Combines :func:`setrlimit` and :func:`getrlimit` in one function and 89 *limits* have the same meaning as in :func:`setrlimit`, except that 108 :func:`setrlimit` and :func:`getrlimit` functions described below. The values of
|
/third_party/rust/crates/nix/src/sys/ |
D | resource.rs | 248 pub fn setrlimit( in setrlimit() function 259 … let res = unsafe { libc::setrlimit(resource as __rlimit_resource_t, &new_rlim as *const rlimit) }; in setrlimit() 261 let res = unsafe { libc::setrlimit(resource as c_int, &new_rlim as *const rlimit) }; in setrlimit()
|
/third_party/ltp/testcases/kernel/syscalls/ulimit/ |
D | README | 2 longer provided by glibc. Use getrlimit(2), setrlimit(2)
|
/third_party/musl/src/legacy/ |
D | ulimit.c | 16 if (setrlimit(RLIMIT_FSIZE, &rl)) return -1; in ulimit()
|
/third_party/musl/porting/liteos_a/user/src/legacy/ |
D | ulimit.c | 18 if (setrlimit(RLIMIT_FSIZE, &rl)) return -1; in ulimit()
|
/third_party/musl/porting/linux/user/src/legacy/ |
D | ulimit.c | 17 if (setrlimit(RLIMIT_FSIZE, &rl)) return -1; in ulimit()
|
/third_party/musl/libc-test/src/common/ |
D | setrlim.c | 20 if (setrlimit(r, &rl)) { in t_setrlim()
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
D | getrlimit.c | 33 int ret = setrlimit(r, &rl); in getrlimit_0100()
|