/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 | 17 self.assertRaises(TypeError, resource.setrlimit) 18 self.assertRaises(TypeError, resource.setrlimit, 42, 42, 42) 32 resource.setrlimit(resource.RLIMIT_FSIZE, (cur, max)) 49 resource.setrlimit(resource.RLIMIT_FSIZE, (1024, max)) 73 resource.setrlimit(resource.RLIMIT_FSIZE, (cur, max)) 78 resource.setrlimit(resource.RLIMIT_FSIZE, (cur, max)) 90 resource.setrlimit(resource.RLIMIT_FSIZE, (too_big, max)) 94 resource.setrlimit(resource.RLIMIT_FSIZE, (max, too_big)) 128 resource.setrlimit(resource.RLIMIT_CPU, BadSequence())
|
/external/syzkaller/executor/ |
D | executor_bsd.h | 29 setrlimit(RLIMIT_AS, &rlim); in os_init() 32 setrlimit(RLIMIT_MEMLOCK, &rlim); in os_init() 34 setrlimit(RLIMIT_FSIZE, &rlim); in os_init() 36 setrlimit(RLIMIT_STACK, &rlim); in os_init() 38 setrlimit(RLIMIT_CORE, &rlim); in os_init() 40 setrlimit(RLIMIT_NOFILE, &rlim); in os_init()
|
/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()
|
D | setrlimit05.c | 38 TEST(setrlimit(RLIMIT_NOFILE, bad_addr)); in verify_setrlimit()
|
/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 | 315 if (setrlimit(RLIMIT_FSIZE, &rl_zero) == -1) in ssh_sandbox_child() 318 if (setrlimit(RLIMIT_NOFILE, &rl_zero) == -1) in ssh_sandbox_child() 321 if (setrlimit(RLIMIT_NPROC, &rl_zero) == -1) in ssh_sandbox_child()
|
/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/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/libunwind/tests/ |
D | test-mem.c | 98 setrlimit (RLIMIT_DATA, &rlim); in main() 99 setrlimit (RLIMIT_AS, &rlim); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_init/ |
D | 4-1.c | 70 rc = setrlimit(RLIMIT_DATA, &rl); in child() 71 rc |= setrlimit(RLIMIT_AS, &rl); in child()
|
/external/honggfuzz/ |
D | subproc.c | 197 if (setrlimit(RLIMIT_AS, &rl) == -1) { in subproc_PrepareExecv() 208 if (setrlimit(RLIMIT_RSS, &rl) == -1) { in subproc_PrepareExecv() 219 if (setrlimit(RLIMIT_DATA, &rl) == -1) { in subproc_PrepareExecv() 229 if (setrlimit(RLIMIT_CORE, &rl) == -1) { in subproc_PrepareExecv()
|
/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 Combines :func:`setrlimit` and :func:`getrlimit` in one function and 84 *limits* have the same meaning as in :func:`setrlimit`, except that 101 :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/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/python/cpython2/Doc/library/ |
D | resource.rst | 30 Resources usage can be limited using the :func:`setrlimit` function described 57 .. function:: setrlimit(resource, limits) 73 ``setrlimit`` may also raise :exc:`error` if the underlying system call 77 :func:`setrlimit` and :func:`getrlimit` functions described below. The values of
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlockall/speculative/ |
D | 15-1.c | 46 if ((ret = setrlimit(RLIMIT_MEMLOCK, &rlim)) != 0) in set_nonroot()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlockall/ |
D | 15-1.c | 46 if ((ret = setrlimit(RLIMIT_MEMLOCK, &rlim)) != 0) in set_nonroot()
|
/external/strace/tests-mx32/ |
D | pipe_maxfd.c | 54 if (!setrlimit(RLIMIT_NOFILE, &rlim_new)) in pipe_maxfd()
|