/third_party/musl/porting/liteos_m/kernel/include/sys/ |
H A D | resource.h | 22 struct rlimit { struct 49 int getrlimit (int, struct rlimit *); 50 int setrlimit (int, const struct rlimit *); 57 int prlimit(pid_t, int, const struct rlimit *, struct rlimit *); 104 #define rlimit64 rlimit
|
/third_party/musl/porting/uniproton/kernel/include/sys/ |
H A D | resource.h | 22 struct rlimit { struct 49 int getrlimit (int, struct rlimit *); 50 int setrlimit (int, const struct rlimit *); 57 int prlimit(pid_t, int, const struct rlimit *, struct rlimit *); 104 #define rlimit64 rlimit
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
H A D | resource.h | 22 struct rlimit { struct 49 int getrlimit (int, struct rlimit *); 50 int setrlimit (int, const struct rlimit *); 57 int prlimit(pid_t, int, const struct rlimit *, struct rlimit *); 104 #define rlimit64 rlimit
|
/third_party/musl/porting/liteos_a/kernel/include/sys/ |
H A D | resource.h | 22 struct rlimit { struct 49 int getrlimit (int, struct rlimit *); 50 int setrlimit (int, const struct rlimit *); 57 int prlimit(pid_t, int, const struct rlimit *, struct rlimit *); 104 #define rlimit64 rlimit
|
/third_party/musl/include/sys/ |
H A D | resource.h | 22 struct rlimit { struct 49 int getrlimit (int, struct rlimit *); 50 int setrlimit (int, const struct rlimit *); 57 int prlimit(pid_t, int, const struct rlimit *, struct rlimit *); 104 #define rlimit64 rlimit
|
/third_party/musl/src/misc/ |
H A D | setrlimit.c | 10 static int __setrlimit(int resource, const struct rlimit *rlim) in __setrlimit() 13 struct rlimit tmp; in __setrlimit() 29 const struct rlimit *rlim; 50 int setrlimit(int resource, const struct rlimit *rlim) in setrlimit() 55 struct rlimit tmp; in setrlimit()
|
/third_party/musl/porting/liteos_a/user/src/misc/ |
H A D | setrlimit.c | 9 static int __setrlimit(int resource, const struct rlimit *rlim) in __setrlimit() 12 struct rlimit tmp; in __setrlimit() 26 const struct rlimit *rlim; 38 int setrlimit(int resource, const struct rlimit *rlim) in setrlimit()
|
/third_party/musl/src/linux/ |
H A D | prlimit.c | 7 int prlimit(pid_t pid, int resource, const struct rlimit *new_limit, struct rlimit *old_limit) in prlimit() 9 struct rlimit tmp; in prlimit()
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
H A D | getrlimit.c | 29 struct rlimit rl; in getrlimit_0100() 35 struct rlimit retrl; in getrlimit_0100() 49 struct rlimit limit; in getrlimit_0200()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | prlimit.c | 28 struct rlimit new_limit = {.rlim_cur = lim, .rlim_max = lim}; in prlimit_0100() 30 struct rlimit old_limit = {.rlim_cur = 0, .rlim_max = 0}; in prlimit_0100() 48 struct rlimit new_limit = {.rlim_cur = lim, .rlim_max = lim}; in prlimit_0200()
|
/third_party/rust/crates/nix/src/sys/ |
H A D | resource.rs | 14 use libc::{__rlimit_resource_t, rlimit}; 25 use libc::rlimit; 202 let mut old_rlim = mem::MaybeUninit::<rlimit>::uninit(); in getrlimit() 213 let rlimit { rlim_cur, rlim_max } = unsafe { old_rlim.assume_init() }; in getrlimit() 253 let new_rlim = rlimit { in setrlimit() 259 let res = unsafe { libc::setrlimit(resource as __rlimit_resource_t, &new_rlim as *const rlimit) }; in setrlimit() 261 let res = unsafe { libc::setrlimit(resource as c_int, &new_rlim as *const rlimit) }; in setrlimit()
|
/third_party/ltp/testcases/kernel/syscalls/sched_setscheduler/ |
H A D | sched_setscheduler03.c | 60 static void l_rlimit_show(const int type, struct rlimit *limit) in l_rlimit_show() 64 "rlimit rlim_cur=%lu", (unsigned long)(limit->rlim_cur)); in l_rlimit_show() 66 "rlimit rlim_max=%lu", (unsigned long)(limit->rlim_max)); in l_rlimit_show() 69 static void l_rlimit_setup(const int type, struct rlimit *limit) in l_rlimit_setup() 71 struct rlimit tmp_rlimit; in l_rlimit_setup() 108 struct rlimit limit; in setup() 119 * nice rlimit ranges from 1 to 40, mapping to real nice in setup()
|
/third_party/musl/libc-test/src/api/ |
H A D | sys_resource.c | 19 struct rlimit x; in f() 36 {int(*p)(int,struct rlimit*) = getrlimit;} in f() 39 {int(*p)(int,const struct rlimit*) = setrlimit;} in f()
|
/third_party/ltp/testcases/cve/ |
H A D | stack_clash.c | 219 struct rlimit rlimit; in do_child() local 221 rlimit.rlim_cur = rlimit.rlim_max = RLIM_INFINITY; in do_child() 222 SAFE_SETRLIMIT(RLIMIT_STACK, &rlimit); in do_child()
|
/third_party/ltp/testcases/kernel/syscalls/mlock/ |
H A D | mlock02.c | 33 static struct rlimit original; 49 struct rlimit rl; in test_enomem2() 66 struct rlimit rl; in test_eperm()
|
/third_party/toybox/toys/posix/ |
H A D | ulimit.c | 54 int prlimit(pid_t pid, int resource, const struct rlimit *new_limit, 55 struct rlimit *old_limit); 62 struct rlimit rr; in ulimit_main()
|
/third_party/ltp/testcases/kernel/syscalls/getrlimit/ |
H A D | getrlimit02.c | 23 static struct rlimit rlim; 28 struct rlimit *rlim;
|
/third_party/rust/crates/rustix/src/process/ |
H A D | mod.rs | 19 mod rlimit; modules 67 pub use rlimit::prlimit; 69 pub use rlimit::{getrlimit, setrlimit, Resource, Rlimit};
|
/third_party/curl/tests/libtest/ |
H A D | lib537.c | 54 static struct rlimit num_open; 123 static int rlimit(int keep_open) function 128 struct rlimit rl; 215 * be always free()ed before exiting the rlimit() function so 459 if(rlimit(FALSE)) { 460 fprintf(stdout, "rlimit problem: %s\n", msgbuff); 466 if(rlimit(TRUE)) {
|
H A D | lib518.c | 54 static struct rlimit num_open; 123 static int rlimit(int keep_open) in rlimit() function 127 struct rlimit rl; in rlimit() 242 * be always free()ed before exiting the rlimit() function so in rlimit() 455 if(rlimit(FALSE)) { in test() 456 fprintf(stdout, "rlimit problem: %s\n", msgbuff); in test() 462 if(rlimit(TRUE)) { in test()
|
/third_party/python/Modules/ |
H A D | resource.c | 141 py2rlimit(PyObject *limits, struct rlimit *rl_out) in py2rlimit() 184 rlimit2py(struct rlimit rl) in rlimit2py() 206 struct rlimit rl; in resource_getrlimit_impl() 234 struct rlimit rl; in resource_setrlimit_impl() 283 struct rlimit old_limit, new_limit; in resource_prlimit_impl()
|
/third_party/nghttp2/src/ |
H A D | shrpx_connection.cc | 71 rlimit(loop, &rev, read_limit.rate, read_limit.burst, this), 146 rlimit.stopw(); in disconnect() 361 rlimit.stopw(); in tls_handshake() 542 rlimit.startw(); in tls_handshake() 806 rlimit.startw(); in write_tls_pending_handshake() 1013 len = std::min(len, rlimit.avail()); in read_tls() 1065 rlimit.drain(nread); in read_tls() 1101 rlimit.drain(rv); in read_tls() 1162 len = std::min(len, rlimit.avail()); in read_clear() 1181 rlimit in read_clear() [all...] |
/third_party/ltp/testcases/kernel/syscalls/setrlimit/ |
H A D | setrlimit02.c | 15 static struct rlimit rlim; 19 struct rlimit *rlim;
|
H A D | setrlimit03.c | 27 static struct rlimit rlim1, rlim2; 31 struct rlimit *rlimt;
|
/third_party/rust/crates/rustix/tests/process/ |
H A D | rlimit.rs | 36 Ok(rlimit) => rlimit, in test_setrlimit()
|