Home
last modified time | relevance | path

Searched refs:setrlimit (Results 1 – 25 of 169) sorted by relevance

1234567

/third_party/python/Lib/test/
Dtest_resource.py18 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/
Dsetrlimit01.c73 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()
Dsetrlimit05.c29 TEST(setrlimit(RLIMIT_NOFILE, bad_addr)); in verify_setrlimit()
/third_party/ltp/testcases/kernel/syscalls/mlockall/
Dmlockall02.c188 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()
Dmlockall03.c233 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/
Dtest_resource.rs7 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/
Drlimit.rs39 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/
Dsetrlimit.c38 int setrlimit(int resource, const struct rlimit *rlim) in setrlimit() function
49 weak_alias(setrlimit, setrlimit64);
/third_party/libunwind/tests/
Dtest-mem.c98 setrlimit (RLIMIT_DATA, &rlim); in main()
99 setrlimit (RLIMIT_AS, &rlim); in main()
/third_party/musl/src/misc/
Dsetrlimit.c22 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/
D4-1.c69 rc = setrlimit(RLIMIT_DATA, &rl); in child()
70 rc |= setrlimit(RLIMIT_AS, &rl); in child()
/third_party/musl/porting/liteos_a/kernel/include/sys/
Dresource.h50 int setrlimit (int, const struct rlimit *);
103 #define setrlimit64 setrlimit
/third_party/musl/porting/uniproton/kernel/include/sys/
Dresource.h50 int setrlimit (int, const struct rlimit *);
103 #define setrlimit64 setrlimit
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
Dresource.h50 int setrlimit (int, const struct rlimit *);
103 #define setrlimit64 setrlimit
/third_party/musl/porting/liteos_m/kernel/include/sys/
Dresource.h50 int setrlimit (int, const struct rlimit *);
103 #define setrlimit64 setrlimit
/third_party/musl/ndk_musl_include/sys/
Dresource.h50 int setrlimit (int, const struct rlimit *);
103 #define setrlimit64 setrlimit
/third_party/musl/include/sys/
Dresource.h50 int setrlimit (int, const struct rlimit *);
103 #define setrlimit64 setrlimit
/third_party/python/Doc/library/
Dresource.rst33 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/
Dresource.rs248 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/
DREADME2 longer provided by glibc. Use getrlimit(2), setrlimit(2)
/third_party/musl/src/legacy/
Dulimit.c16 if (setrlimit(RLIMIT_FSIZE, &rl)) return -1; in ulimit()
/third_party/musl/porting/liteos_a/user/src/legacy/
Dulimit.c18 if (setrlimit(RLIMIT_FSIZE, &rl)) return -1; in ulimit()
/third_party/musl/porting/linux/user/src/legacy/
Dulimit.c17 if (setrlimit(RLIMIT_FSIZE, &rl)) return -1; in ulimit()
/third_party/musl/libc-test/src/common/
Dsetrlim.c20 if (setrlimit(r, &rl)) { in t_setrlim()
/third_party/musl/libc-test/src/functionalext/supplement/misc/
Dgetrlimit.c33 int ret = setrlimit(r, &rl); in getrlimit_0100()

1234567