Home
last modified time | relevance | path

Searched refs:rlimit (Results 1 – 25 of 130) sorted by relevance

123456

/external/strace/tests-m32/
Dsetrlimit.c40 kernel_ulong_t *const rlimit = tail_alloc(sizeof(*rlimit) * 2); in main() local
48 struct rlimit libc_rlim = {}; in main()
51 rlimit[0] = libc_rlim.rlim_cur; in main()
52 rlimit[1] = libc_rlim.rlim_max; in main()
54 rc = syscall(__NR_setrlimit, res, rlimit); in main()
58 sprint_rlim(rlimit[0]), sprint_rlim(rlimit[1]), in main()
Dprlimit64.c66 uint64_t *const rlimit = tail_alloc(sizeof(*rlimit) * 2); in main() local
71 long rc = syscall(__NR_prlimit64, pid, res, 0, rlimit); in main()
74 (unsigned) pid, xlat->str, rlimit, in main()
80 sprint_rlim(rlimit[0]), in main()
81 sprint_rlim(rlimit[1])); in main()
Dxgetrlimit.c66 kernel_ulong_t *const rlimit = tail_alloc(sizeof(*rlimit) * 2); in main() local
77 rc = syscall(NR_GETRLIMIT, res, rlimit); in main()
84 sprint_rlim(rlimit[0]), sprint_rlim(rlimit[1])); in main()
Dpipe_maxfd.c48 struct rlimit rlim; in pipe_maxfd()
52 struct rlimit rlim_new; in pipe_maxfd()
/external/strace/tests/
Dsetrlimit.c40 kernel_ulong_t *const rlimit = tail_alloc(sizeof(*rlimit) * 2); in main() local
48 struct rlimit libc_rlim = {}; in main()
51 rlimit[0] = libc_rlim.rlim_cur; in main()
52 rlimit[1] = libc_rlim.rlim_max; in main()
54 rc = syscall(__NR_setrlimit, res, rlimit); in main()
58 sprint_rlim(rlimit[0]), sprint_rlim(rlimit[1]), in main()
Dprlimit64.c66 uint64_t *const rlimit = tail_alloc(sizeof(*rlimit) * 2); in main() local
71 long rc = syscall(__NR_prlimit64, pid, res, 0, rlimit); in main()
74 (unsigned) pid, xlat->str, rlimit, in main()
80 sprint_rlim(rlimit[0]), in main()
81 sprint_rlim(rlimit[1])); in main()
Dxgetrlimit.c66 kernel_ulong_t *const rlimit = tail_alloc(sizeof(*rlimit) * 2); in main() local
77 rc = syscall(NR_GETRLIMIT, res, rlimit); in main()
84 sprint_rlim(rlimit[0]), sprint_rlim(rlimit[1])); in main()
Dpipe_maxfd.c48 struct rlimit rlim; in pipe_maxfd()
52 struct rlimit rlim_new; in pipe_maxfd()
/external/strace/tests-mx32/
Dsetrlimit.c40 kernel_ulong_t *const rlimit = tail_alloc(sizeof(*rlimit) * 2); in main() local
48 struct rlimit libc_rlim = {}; in main()
51 rlimit[0] = libc_rlim.rlim_cur; in main()
52 rlimit[1] = libc_rlim.rlim_max; in main()
54 rc = syscall(__NR_setrlimit, res, rlimit); in main()
58 sprint_rlim(rlimit[0]), sprint_rlim(rlimit[1]), in main()
Dprlimit64.c66 uint64_t *const rlimit = tail_alloc(sizeof(*rlimit) * 2); in main() local
71 long rc = syscall(__NR_prlimit64, pid, res, 0, rlimit); in main()
74 (unsigned) pid, xlat->str, rlimit, in main()
80 sprint_rlim(rlimit[0]), in main()
81 sprint_rlim(rlimit[1])); in main()
Dxgetrlimit.c66 kernel_ulong_t *const rlimit = tail_alloc(sizeof(*rlimit) * 2); in main() local
77 rc = syscall(NR_GETRLIMIT, res, rlimit); in main()
84 sprint_rlim(rlimit[0]), sprint_rlim(rlimit[1])); in main()
Dpipe_maxfd.c48 struct rlimit rlim; in pipe_maxfd()
52 struct rlimit rlim_new; in pipe_maxfd()
/external/valgrind/none/tests/darwin/
DMakefile.am11 rlimit.stderr.exp rlimit.vgtest
18 rlimit program
/external/ltp/testcases/kernel/syscalls/mlock/
Dmlock02.c56 static struct rlimit original;
99 struct rlimit rl; in test_enomem1()
130 struct rlimit rl; in test_enomem2()
160 struct rlimit rl; in test_eperm()
/external/toybox/toys/posix/
Dulimit.c53 int prlimit(pid_t pid, int resource, const struct rlimit *new_limit,
54 struct rlimit *old_limit);
61 struct rlimit rr; in ulimit_main()
/external/libchrome/sandbox/linux/services/
Dresource_limits.cc16 struct rlimit old_rlimit; in Lower()
20 const struct rlimit new_rlimit = {std::min(old_rlimit.rlim_cur, limit), in Lower()
/external/linux-kselftest/tools/testing/selftests/mqueue/
Dmq_open_tests.c51 struct rlimit saved_limits, cur_limits;
62 static inline void getr(int type, struct rlimit *rlim);
63 static inline void setr(int type, struct rlimit *rlim);
138 static inline void getr(int type, struct rlimit *rlim) in getr()
144 static inline void setr(int type, struct rlimit *rlim) in setr()
/external/ltp/testcases/kernel/syscalls/getrlimit/
Dgetrlimit02.c83 static struct rlimit rlim;
87 struct rlimit *rlim; /* rlimit structure */
/external/tcpdump/lbl/
Dos-sunos4.h97 struct rlimit;
99 int getrlimit(int, struct rlimit *);
148 int setrlimit(int, struct rlimit *);
/external/libpcap/lbl/
Dos-sunos4.h97 struct rlimit;
99 int getrlimit(int, struct rlimit *);
148 int setrlimit(int, struct rlimit *);
/external/curl/tests/libtest/
Dlib518.c54 static struct rlimit num_open;
102 static int rlimit(int keep_open) in rlimit() function
107 struct rlimit rl; in rlimit()
471 if(rlimit(FALSE)) { in test()
478 if(rlimit(TRUE)) { in test()
Dlib537.c55 static struct rlimit num_open;
103 static int rlimit(int keep_open) function
109 struct rlimit rl;
473 if(rlimit(FALSE)) {
480 if(rlimit(TRUE)) {
/external/libchrome/base/process/
Dprocess_metrics_posix.cc44 struct rlimit nofile; in GetMaxFds()
61 struct rlimit limits; in SetFdLimit()
/external/ltp/testcases/kernel/syscalls/setrlimit/
Dsetrlimit02.c54 struct rlimit rlim;
61 struct rlimit *rlim;
/external/valgrind/none/tests/
Drlimit_nofile.c11 struct rlimit oldrlim; in main()
12 struct rlimit newrlim; in main()

123456