/external/python/cpython2/Lib/test/ |
D | test_resource.py | 14 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/ |
D | test_resource.py | 16 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/ |
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() 202 TEST(setrlimit(RLIMIT_NPROC, &rlim)); in test3() 248 TEST(setrlimit(RLIMIT_CORE, &rlim)); in test4()
|
/external/openssh/ |
D | sandbox-rlimit.c | 67 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()
|
D | sandbox-darwin.c | 75 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()
|
D | sandbox-capsicum.c | 75 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()
|
D | sandbox-seccomp-filter.c | 387 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/ |
D | bpf_rlimit.h | 19 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/ |
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() 276 if (setrlimit(RLIMIT_MEMLOCK, &rl) != 0) { in cleanup_test()
|
/external/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()
|
/external/python/cpython3/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
|
/external/compiler-rt/test/asan/TestCases/Linux/ |
D | rlimit_mmap_test.cc | 12 assert(0 == setrlimit(RLIMIT_AS, &mmap_resource_limit)); in main()
|
D | stack-overflow-recovery-mode.cc | 24 res = setrlimit(RLIMIT_STACK, &rlim); in LimitStackAndReexec()
|
/external/llvm-project/compiler-rt/test/asan/TestCases/Linux/ |
D | rlimit_mmap_test.cpp | 12 assert(0 == setrlimit(RLIMIT_AS, &mmap_resource_limit)); in main()
|
D | stack-overflow-recovery-mode.cpp | 24 res = setrlimit(RLIMIT_STACK, &rlim); in LimitStackAndReexec()
|
/external/ltp/testcases/kernel/syscalls/ulimit/ |
D | README | 2 longer provided by glibc. Use getrlimit(2), setrlimit(2)
|
/external/strace/ |
D | largefile_wrappers.h | 55 # define set_rlimit setrlimit
|
/external/grpc-grpc/test/core/iomgr/ |
D | fd_conservation_posix_test.cc | 41 GPR_ASSERT(0 == setrlimit(RLIMIT_NOFILE, &rlim)); in main()
|
/external/crosvm/seccomp/aarch64/ |
D | null_audio_device.policy | 9 setrlimit: 1
|
D | vios_audio_device.policy | 12 setrlimit: 1
|
D | cras_audio_device.policy | 9 setrlimit: 1
|
/external/crosvm/seccomp/arm/ |
D | null_audio_device.policy | 11 setrlimit: 1
|
D | vios_audio_device.policy | 12 setrlimit: 1
|
/external/crosvm/sys_util/src/ |
D | priority.rs | 14 let res = unsafe { libc::setrlimit(libc::RLIMIT_RTPRIO, &rt_limit_arg) }; in set_rt_prio_limit()
|