/freebsd/tools/test/stress2/misc/ |
H A D | alternativeFlushPath.sh | 91 struct rlimit rlp; 93 if (getrlimit(RLIMIT_NOFILE, &rlp) == -1) 95 if (rlp.rlim_cur > MAXNOFILE) 96 rlp.rlim_cur = MAXNOFILE; 97 rlp.rlim_cur /= 10; 99 fd = malloc(rlp.rlim_cur * sizeof(int)); 101 for (i = 0, j = 0; i < rlp.rlim_cur && more == 1; i++, j++) {
|
H A D | swap4.sh | 77 struct rlimit rlp; 84 if (getrlimit(RLIMIT_DATA, &rlp) < 0) 86 rlp.rlim_cur -= 1024 * 1024; 88 if (size > (unsigned long)rlp.rlim_cur) 89 size = rlp.rlim_cur;
|
H A D | swap.sh | 77 struct rlimit rlp; 84 if (getrlimit(RLIMIT_DATA, &rlp) < 0) 86 rlp.rlim_cur -= 1024 * 1024; 88 if (size > (unsigned long)rlp.rlim_cur) 89 size = rlp.rlim_cur;
|
H A D | shm2.sh | 75 struct rlimit rlp; 82 if (getrlimit(RLIMIT_DATA, &rlp) < 0) 84 rlp.rlim_cur -= 1024 * 1024; 86 if (size > (unsigned long)rlp.rlim_cur) 87 size = rlp.rlim_cur;
|
H A D | swap2.sh | 95 struct rlimit rlp; 102 if (getrlimit(RLIMIT_DATA, &rlp) < 0) 104 rlp.rlim_cur -= 1024 * 1024; 106 if (size > (unsigned long)rlp.rlim_cur) 107 size = rlp.rlim_cur;
|
H A D | getrandom2.sh | 129 struct rlimit rlp; 141 if (getrlimit(RLIMIT_NPROC, &rlp) < 0) 143 parallel = rlp.rlim_cur / 100 * 80; 154 if (getrlimit(RLIMIT_DATA, &rlp) < 0) 156 mx = rlp.rlim_cur;
|
/freebsd/tests/sys/file/ |
H A D | dup_test.c | 80 struct rlimit rlp; in main() local 182 if (getrlimit(RLIMIT_NOFILE, &rlp) < 0) in main() 184 if ((fd2 = dup2(fd1, rlp.rlim_cur + 1)) >= 0) in main() 240 if (getrlimit(RLIMIT_NOFILE, &rlp) < 0) in main() 242 if ((fd2 = fcntl(fd1, F_DUP2FD, rlp.rlim_cur + 1)) >= 0) in main() 299 if (getrlimit(RLIMIT_NOFILE, &rlp) < 0) in main() 301 if ((fd2 = fcntl(fd1, F_DUP2FD_CLOEXEC, rlp.rlim_cur + 1)) >= 0) in main() 374 if (getrlimit(RLIMIT_NOFILE, &rlp) < 0) in main() 376 if ((fd2 = dup3(fd1, rlp.rlim_cur + 1, O_CLOEXEC)) >= 0) in main()
|
/freebsd/tools/test/stress2/testcases/swap/ |
H A D | swap.c | 51 struct rlimit rlp; in setup() local 104 if (getrlimit(RLIMIT_DATA, &rlp) < 0) in setup() 106 rlp.rlim_cur -= 1024 * 1024; in setup() 108 if (size > rlp.rlim_cur) in setup() 109 size = rlp.rlim_cur; in setup()
|
/freebsd/contrib/tcpdump/ |
H A D | print-ospf6.c | 459 const struct rlalink6 *rlp; in ospf6_print_lsa() local 506 rlp = lsap->lsa_un.un_rla.rla_link; in ospf6_print_lsa() 508 if (lsa_length < sizeof (*rlp)) in ospf6_print_lsa() 510 lsa_length -= sizeof (*rlp); in ospf6_print_lsa() 511 ND_TCHECK_SIZE(rlp); in ospf6_print_lsa() 512 switch (GET_U_1(rlp->link_type)) { in ospf6_print_lsa() 517 GET_IPADDR_STRING(rlp->link_nrtid), in ospf6_print_lsa() 518 GET_IPADDR_STRING(rlp->link_nifid), in ospf6_print_lsa() 519 GET_IPADDR_STRING(rlp->link_ifid)); in ospf6_print_lsa() 525 GET_IPADDR_STRING(rlp->link_nrtid), in ospf6_print_lsa() [all …]
|
H A D | print-ospf.c | 622 const struct rlalink *rlp; in ospf_print_lsa() local 652 rlp = lsap->lsa_un.un_rla.rla_link; in ospf_print_lsa() 654 ND_TCHECK_SIZE(rlp); in ospf_print_lsa() 655 switch (GET_U_1(rlp->un_tos.link.link_type)) { in ospf_print_lsa() 659 GET_IPADDR_STRING(rlp->link_id), in ospf_print_lsa() 660 GET_IPADDR_STRING(rlp->link_data)); in ospf_print_lsa() 665 GET_IPADDR_STRING(rlp->link_id), in ospf_print_lsa() 666 GET_IPADDR_STRING(rlp->link_data)); in ospf_print_lsa() 671 GET_IPADDR_STRING(rlp->link_id), in ospf_print_lsa() 672 GET_IPADDR_STRING(rlp->link_data)); in ospf_print_lsa() [all …]
|
/freebsd/tools/test/stress2/tools/ |
H A D | swap.c | 110 struct rlimit rlp; in setup() local 117 if (getrlimit(RLIMIT_DATA, &rlp) < 0) in setup() 119 rlp.rlim_cur -= 1024 * 1024; in setup() 121 if (size > (unsigned long)rlp.rlim_cur) in setup() 122 size = rlp.rlim_cur; in setup()
|
/freebsd/usr.bin/limits/ |
H A D | limits.c | 265 static void getrlimit_proc(pid_t pid, int resource, struct rlimit *rlp); 266 static void setrlimit_proc(pid_t pid, int resource, const struct rlimit *rlp); 749 getrlimit_proc(pid_t pid, int resource, struct rlimit *rlp) in getrlimit_proc() argument 760 len = sizeof(*rlp); in getrlimit_proc() 761 error = sysctl(name, 5, rlp, &len, NULL, 0); in getrlimit_proc() 764 if (len != sizeof(*rlp)) in getrlimit_proc() 769 setrlimit_proc(pid_t pid, int resource, const struct rlimit *rlp) in setrlimit_proc() argument 779 error = sysctl(name, 5, NULL, 0, rlp, sizeof(*rlp)); in setrlimit_proc()
|
/freebsd/sys/kern/ |
H A D | kern_resource.c | 541 struct orlimit *rlp; member 551 if ((error = copyin(uap->rlp, &olim, sizeof(struct orlimit)))) in osetrlimit() 562 struct orlimit *rlp; member 587 error = copyout(&olim, uap->rlp, sizeof(olim)); in ogetrlimit() 595 struct rlimit *rlp; member 604 if ((error = copyin(uap->rlp, &alim, sizeof(struct rlimit)))) in sys_setrlimit() 792 struct rlimit *rlp; member 805 error = copyout(&rlim, uap->rlp, sizeof(struct rlimit)); in sys_getrlimit() 1472 lim_rlimit(struct thread *td, int which, struct rlimit *rlp) in lim_rlimit() argument 1479 *rlp = td->td_limit->pl_rlimit[which]; in lim_rlimit() [all …]
|
H A D | systrace_args.c | 938 uarg[a++] = (intptr_t)p->rlp; /* struct rlimit * */ in systrace_args() 946 uarg[a++] = (intptr_t)p->rlp; /* struct rlimit * */ in systrace_args()
|
/freebsd/sys/sys/ |
H A D | resourcevar.h | 176 void lim_rlimit(struct thread *td, int which, struct rlimit *rlp); 177 void lim_rlimit_proc(struct proc *p, int which, struct rlimit *rlp);
|
H A D | sysproto.h | 542 char rlp_l_[PADL_(struct rlimit *)]; struct rlimit * rlp; char rlp_r_[PADR_(struct rlimit *)]; member 546 char rlp_l_[PADL_(struct rlimit *)]; struct rlimit * rlp; char rlp_r_[PADR_(struct rlimit *)]; member 2419 char rlp_l_[PADL_(struct orlimit *)]; struct orlimit * rlp; char rlp_r_[PADR_(struct orlimit *)]; member 2423 char rlp_l_[PADL_(struct orlimit *)]; struct orlimit * rlp; char rlp_r_[PADR_(struct orlimit *)]; member
|
/freebsd/contrib/llvm-project/compiler-rt/include/sanitizer/ |
H A D | netbsd_syscall_hooks.h | 757 #define __sanitizer_syscall_pre_compat_43_ogetrlimit(which, rlp) \ argument 759 (long long)(rlp)) 760 #define __sanitizer_syscall_post_compat_43_ogetrlimit(res, which, rlp) \ argument 762 (long long)(rlp)) 763 #define __sanitizer_syscall_pre_compat_43_osetrlimit(which, rlp) \ argument 765 (long long)(rlp)) 766 #define __sanitizer_syscall_post_compat_43_osetrlimit(res, which, rlp) \ argument 768 (long long)(rlp)) 1024 #define __sanitizer_syscall_pre_getrlimit(which, rlp) \ argument 1025 __sanitizer_syscall_pre_impl_getrlimit((long long)(which), (long long)(rlp)) [all …]
|
/freebsd/contrib/pf/ftp-proxy/ |
H A D | ftp-proxy.c | 599 struct rlimit rlp; in main() local 699 rlp.rlim_cur = rlp.rlim_max = (2 * max_sessions) + 10; in main() 700 if (setrlimit(RLIMIT_NOFILE, &rlp) == -1) in main()
|
/freebsd/share/doc/psd/05.sysman/ |
H A D | spell.ok | 263 rlp
|
/freebsd/tests/sys/audit/ |
H A D | process-control.c | 1044 struct rlimit rlp; in ATF_TC_BODY() local 1048 ATF_REQUIRE_EQ(0, getrlimit(RLIMIT_FSIZE, &rlp)); in ATF_TC_BODY() 1051 ATF_REQUIRE_EQ(0, setrlimit(RLIMIT_FSIZE, &rlp)); in ATF_TC_BODY()
|
/freebsd/sys/fs/nfsserver/ |
H A D | nfs_nfsdstate.c | 1671 struct nfsrollback *rlp, *nrlp; in nfsrv_freeallnfslocks() local 1714 LIST_FOREACH_SAFE(rlp, &lfp->lf_rollback, rlck_list, in nfsrv_freeallnfslocks() 1716 free(rlp, M_NFSDROLLBACK); in nfsrv_freeallnfslocks() 6103 struct nfsrollback *rlp; in nfsrv_dolocal() local 6134 rlp = malloc(sizeof (struct nfsrollback), M_NFSDROLLBACK, in nfsrv_dolocal() 6136 rlp->rlck_first = first; in nfsrv_dolocal() 6137 rlp->rlck_end = end; in nfsrv_dolocal() 6138 rlp->rlck_type = oldltype; in nfsrv_dolocal() 6139 LIST_INSERT_HEAD(&lfp->lf_rollback, rlp, rlck_list); in nfsrv_dolocal() 6153 struct nfsrollback *rlp, *nrlp; in nfsrv_locallock_rollback() local [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | dsl_bookmark.c | 1255 redaction_list_t **rlp) in dsl_redaction_list_hold_obj() argument 1290 *rlp = rl; in dsl_redaction_list_hold_obj()
|
/freebsd/lib/libsys/ |
H A D | _libsys.h | 582 int __sys_getrlimit(u_int which, struct rlimit * rlp); 583 int __sys_setrlimit(u_int which, struct rlimit * rlp);
|
/freebsd/sys/contrib/openzfs/cmd/zdb/ |
H A D | zdb.c | 2967 redaction_list_phys_t *rlp = rl->rl_phys; in dump_bookmark() local 2969 if (rlp->rlp_last_object != UINT64_MAX || in dump_bookmark() 2970 rlp->rlp_last_blkid != UINT64_MAX) { in dump_bookmark() 2972 (u_longlong_t)rlp->rlp_last_object, in dump_bookmark() 2973 (u_longlong_t)rlp->rlp_last_blkid); in dump_bookmark() 2978 for (unsigned int i = 0; i < rlp->rlp_num_snaps; i++) { in dump_bookmark() 2982 (u_longlong_t)rlp->rlp_snaps[i]); in dump_bookmark() 2985 (u_longlong_t)rlp->rlp_num_entries); in dump_bookmark() 2992 if (rlp->rlp_num_entries == 0) { in dump_bookmark() 3021 for (size_t i = 1; i < rlp->rlp_num_entries; i++) { in dump_bookmark()
|
/freebsd/sys/netinet/tcp_stacks/ |
H A D | bbr.c | 5560 const struct tcp_hwrate_limit_table *rlp; in bbr_adjust_for_hw_pacing() local 5575 rlp = bbr->r_ctl.crte; in bbr_adjust_for_hw_pacing() 5589 hdwr_delay *= rlp->time_between; in bbr_adjust_for_hw_pacing() 5598 (delta < (max(rlp->time_between, in bbr_adjust_for_hw_pacing() 5613 seg_sz = max(((cur_delay + rlp->time_between)/rlp->time_between), in bbr_adjust_for_hw_pacing()
|