Home
last modified time | relevance | path

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

12345678910>>...14

/external/python/cpython2/Lib/test/
Dtest_resource.py14 self.assertRaises(TypeError, resource.setrlimit)
15 self.assertRaises(TypeError, resource.setrlimit, 42, 42, 42)
28 resource.setrlimit(resource.RLIMIT_FSIZE, (cur, max))
44 resource.setrlimit(resource.RLIMIT_FSIZE, (1024, max))
68 resource.setrlimit(resource.RLIMIT_FSIZE, (cur, max))
73 resource.setrlimit(resource.RLIMIT_FSIZE, (cur, max))
84 resource.setrlimit(resource.RLIMIT_FSIZE, (too_big, max))
88 resource.setrlimit(resource.RLIMIT_FSIZE, (max, too_big))
117 resource.setrlimit(resource.RLIMIT_CPU, BadSequence())
/external/python/cpython3/Lib/test/
Dtest_resource.py16 self.assertRaises(TypeError, resource.setrlimit)
17 self.assertRaises(TypeError, resource.setrlimit, 42, 42, 42)
33 resource.setrlimit(resource.RLIMIT_FSIZE, (cur, max))
50 resource.setrlimit(resource.RLIMIT_FSIZE, (1024, max))
74 resource.setrlimit(resource.RLIMIT_FSIZE, (cur, max))
79 resource.setrlimit(resource.RLIMIT_FSIZE, (cur, max))
91 resource.setrlimit(resource.RLIMIT_FSIZE, (too_big, max))
95 resource.setrlimit(resource.RLIMIT_FSIZE, (max, too_big))
131 resource.setrlimit(resource.RLIMIT_CPU, BadSequence())
/external/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()
202 TEST(setrlimit(RLIMIT_NPROC, &rlim)); in test3()
248 TEST(setrlimit(RLIMIT_CORE, &rlim)); in test4()
/external/openssh/
Dsandbox-rlimit.c67 if (setrlimit(RLIMIT_FSIZE, &rl_zero) == -1) in ssh_sandbox_child()
72 if (setrlimit(RLIMIT_NOFILE, &rl_zero) == -1) in ssh_sandbox_child()
77 if (setrlimit(RLIMIT_NPROC, &rl_zero) == -1) in ssh_sandbox_child()
Dsandbox-darwin.c75 if (setrlimit(RLIMIT_FSIZE, &rl_zero) == -1) in ssh_sandbox_child()
78 if (setrlimit(RLIMIT_NOFILE, &rl_zero) == -1) in ssh_sandbox_child()
81 if (setrlimit(RLIMIT_NPROC, &rl_zero) == -1) in ssh_sandbox_child()
Dsandbox-capsicum.c75 if (setrlimit(RLIMIT_FSIZE, &rl_zero) == -1) in ssh_sandbox_child()
79 if (setrlimit(RLIMIT_NOFILE, &rl_zero) == -1) in ssh_sandbox_child()
83 if (setrlimit(RLIMIT_NPROC, &rl_zero) == -1) in ssh_sandbox_child()
Dsandbox-seccomp-filter.c387 if (setrlimit(RLIMIT_FSIZE, &rl_zero) == -1) in ssh_sandbox_child()
390 if (setrlimit(RLIMIT_NOFILE, &rl_zero) == -1) in ssh_sandbox_child()
393 if (setrlimit(RLIMIT_NPROC, &rl_zero) == -1) in ssh_sandbox_child()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dbpf_rlimit.h19 if (setrlimit(RLIMIT_MEMLOCK, &rlim_new) < 0) { in bpf_rlimit_ctor()
26 setrlimit(RLIMIT_MEMLOCK, &rlim_new); in bpf_rlimit_ctor()
/external/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()
276 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in cleanup_test()
/external/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()
/external/python/cpython3/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
/external/compiler-rt/test/asan/TestCases/Linux/
Drlimit_mmap_test.cc12 assert(0 == setrlimit(RLIMIT_AS, &mmap_resource_limit)); in main()
Dstack-overflow-recovery-mode.cc24 res = setrlimit(RLIMIT_STACK, &rlim); in LimitStackAndReexec()
/external/llvm-project/compiler-rt/test/asan/TestCases/Linux/
Drlimit_mmap_test.cpp12 assert(0 == setrlimit(RLIMIT_AS, &mmap_resource_limit)); in main()
Dstack-overflow-recovery-mode.cpp24 res = setrlimit(RLIMIT_STACK, &rlim); in LimitStackAndReexec()
/external/ltp/testcases/kernel/syscalls/ulimit/
DREADME2 longer provided by glibc. Use getrlimit(2), setrlimit(2)
/external/strace/
Dlargefile_wrappers.h55 # define set_rlimit setrlimit
/external/grpc-grpc/test/core/iomgr/
Dfd_conservation_posix_test.cc41 GPR_ASSERT(0 == setrlimit(RLIMIT_NOFILE, &rlim)); in main()
/external/crosvm/seccomp/aarch64/
Dnull_audio_device.policy9 setrlimit: 1
Dvios_audio_device.policy12 setrlimit: 1
Dcras_audio_device.policy9 setrlimit: 1
/external/crosvm/seccomp/arm/
Dnull_audio_device.policy11 setrlimit: 1
Dvios_audio_device.policy12 setrlimit: 1
/external/crosvm/sys_util/src/
Dpriority.rs14 let res = unsafe { libc::setrlimit(libc::RLIMIT_RTPRIO, &rt_limit_arg) }; in set_rt_prio_limit()

12345678910>>...14