Home
last modified time | relevance | path

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

12345678910>>...13

/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.py17 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/
Dexecutor_bsd.h29 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/
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()
Dsetrlimit05.c38 TEST(setrlimit(RLIMIT_NOFILE, bad_addr)); in verify_setrlimit()
/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.c315 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/
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/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/libunwind/tests/
Dtest-mem.c98 setrlimit (RLIMIT_DATA, &rlim); in main()
99 setrlimit (RLIMIT_AS, &rlim); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_init/
D4-1.c70 rc = setrlimit(RLIMIT_DATA, &rl); in child()
71 rc |= setrlimit(RLIMIT_AS, &rl); in child()
/external/honggfuzz/
Dsubproc.c197 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/
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 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/
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/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/python/cpython2/Doc/library/
Dresource.rst30 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/
D15-1.c46 if ((ret = setrlimit(RLIMIT_MEMLOCK, &rlim)) != 0) in set_nonroot()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlockall/
D15-1.c46 if ((ret = setrlimit(RLIMIT_MEMLOCK, &rlim)) != 0) in set_nonroot()
/external/strace/tests-mx32/
Dpipe_maxfd.c54 if (!setrlimit(RLIMIT_NOFILE, &rlim_new)) in pipe_maxfd()

12345678910>>...13