| /freebsd/crypto/krb5/src/lib/krb5/unicode/ucdata/ |
| H A D | ucgendat.c | 219 _ranges_t *rlp; in add_range() local 242 rlp = &proptbl[i]; in add_range() 247 if (rlp->used == rlp->size) { in add_range() 248 if (rlp->size == 0) in add_range() 249 rlp->ranges = (krb5_ui_4 *) in add_range() 252 rlp->ranges = (krb5_ui_4 *) in add_range() 253 realloc((char *) rlp->ranges, in add_range() 254 sizeof(krb5_ui_4) * (rlp->size + 8)); in add_range() 255 rlp->size += 8; in add_range() 262 if (rlp->used == 0) { in add_range() [all …]
|
| /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 | 82 struct rlimit rlp; in main() local 184 if (getrlimit(RLIMIT_NOFILE, &rlp) < 0) in main() 186 if ((fd2 = dup2(fd1, rlp.rlim_cur + 1)) >= 0) in main() 242 if (getrlimit(RLIMIT_NOFILE, &rlp) < 0) in main() 244 if ((fd2 = fcntl(fd1, F_DUP2FD, rlp.rlim_cur + 1)) >= 0) in main() 301 if (getrlimit(RLIMIT_NOFILE, &rlp) < 0) in main() 303 if ((fd2 = fcntl(fd1, F_DUP2FD_CLOEXEC, rlp.rlim_cur + 1)) >= 0) in main() 376 if (getrlimit(RLIMIT_NOFILE, &rlp) < 0) in main() 378 if ((fd2 = dup3(fd1, rlp.rlim_cur + 1, O_CLOEXEC)) >= 0) in main() 470 if (getrlimit(RLIMIT_NOFILE, &rlp) < 0) in main() [all …]
|
| /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 | 272 static void getrlimit_proc(pid_t pid, int resource, struct rlimit *rlp); 273 static void setrlimit_proc(pid_t pid, int resource, const struct rlimit *rlp); 755 getrlimit_proc(pid_t pid, int resource, struct rlimit *rlp) in getrlimit_proc() argument 766 len = sizeof(*rlp); in getrlimit_proc() 767 error = sysctl(name, 5, rlp, &len, NULL, 0); in getrlimit_proc() 770 if (len != sizeof(*rlp)) in getrlimit_proc() 775 setrlimit_proc(pid_t pid, int resource, const struct rlimit *rlp) in setrlimit_proc() argument 785 error = sysctl(name, 5, NULL, 0, rlp, sizeof(*rlp)); in setrlimit_proc()
|
| /freebsd/sys/kern/ |
| H A D | kern_resource.c | 558 struct orlimit *rlp; member 568 if ((error = copyin(uap->rlp, &olim, sizeof(struct orlimit)))) in osetrlimit() 579 struct orlimit *rlp; member 604 error = copyout(&olim, uap->rlp, sizeof(olim)); in ogetrlimit() 612 struct rlimit *rlp; member 621 if ((error = copyin(uap->rlp, &alim, sizeof(struct rlimit)))) in sys_setrlimit() 809 struct rlimit *rlp; member 822 error = copyout(&rlim, uap->rlp, sizeof(struct rlimit)); in sys_getrlimit() 1493 lim_rlimit(struct thread *td, int which, struct rlimit *rlp) in lim_rlimit() argument 1500 *rlp = td->td_limit->pl_rlimit[which]; in lim_rlimit() [all …]
|
| /freebsd/sys/sys/ |
| H A D | resourcevar.h | 182 void lim_rlimit(struct thread *td, int which, struct rlimit *rlp); 183 void lim_rlimit_proc(struct proc *p, int which, struct rlimit *rlp);
|
| H A D | sysproto.h | 534 char rlp_l_[PADL_(struct rlimit *)]; struct rlimit * rlp; char rlp_r_[PADR_(struct rlimit *)]; member 538 char rlp_l_[PADL_(struct rlimit *)]; struct rlimit * rlp; char rlp_r_[PADR_(struct rlimit *)]; member 2493 char rlp_l_[PADL_(struct orlimit *)]; struct orlimit * rlp; char rlp_r_[PADR_(struct orlimit *)]; member 2497 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 | 1662 struct nfsrollback *rlp, *nrlp; in nfsrv_freeallnfslocks() local 1705 LIST_FOREACH_SAFE(rlp, &lfp->lf_rollback, rlck_list, in nfsrv_freeallnfslocks() 1707 free(rlp, M_NFSDROLLBACK); in nfsrv_freeallnfslocks() 5913 struct nfsrollback *rlp; in nfsrv_dolocal() 5944 rlp = malloc(sizeof (struct nfsrollback), M_NFSDROLLBACK, in nfsrv_dolocal() 5946 rlp->rlck_first = first; in nfsrv_dolocal() 5947 rlp->rlck_end = end; in nfsrv_dolocal() 5948 rlp->rlck_type = oldltype; in nfsrv_dolocal() 5949 LIST_INSERT_HEAD(&lfp->lf_rollback, rlp, rlck_list); in nfsrv_dolocal() 5963 struct nfsrollback *rlp, *nrl in nfsrv_locallock_rollback() 5912 struct nfsrollback *rlp; nfsrv_dolocal() local 5962 struct nfsrollback *rlp, *nrlp; nfsrv_locallock_rollback() local 5980 struct nfsrollback *rlp, *nrlp; nfsrv_locallock_commit() local [all...] |
| /freebsd/sys/contrib/openzfs/module/zfs/ |
| H A D | dsl_bookmark.c | 1245 redaction_list_t **rlp) in dsl_redaction_list_hold_obj() argument 1280 *rlp = rl; in dsl_redaction_list_hold_obj()
|
| /freebsd/lib/libsys/ |
| H A D | _libsys.h | 593 int __sys_getrlimit(u_int which, struct rlimit * rlp); 594 int __sys_setrlimit(u_int which, struct rlimit * rlp);
|
| /freebsd/sys/contrib/openzfs/cmd/zdb/ |
| H A D | zdb.c | 3506 redaction_list_phys_t *rlp = rl->rl_phys; in dump_bookmark() local 3508 if (rlp->rlp_last_object != UINT64_MAX || in dump_bookmark() 3509 rlp->rlp_last_blkid != UINT64_MAX) { in dump_bookmark() 3511 (u_longlong_t)rlp->rlp_last_object, in dump_bookmark() 3512 (u_longlong_t)rlp->rlp_last_blkid); in dump_bookmark() 3517 for (unsigned int i = 0; i < rlp->rlp_num_snaps; i++) { in dump_bookmark() 3521 (u_longlong_t)rlp->rlp_snaps[i]); in dump_bookmark() 3524 (u_longlong_t)rlp->rlp_num_entries); in dump_bookmark() 3531 if (rlp->rlp_num_entries == 0) { in dump_bookmark() 3560 for (size_t i = 1; i < rlp in dump_bookmark() [all...] |
| /freebsd/sys/netinet/tcp_stacks/ |
| H A D | bbr.c | 5553 const struct tcp_hwrate_limit_table *rlp; in bbr_adjust_for_hw_pacing() local 5568 rlp = bbr->r_ctl.crte; in bbr_adjust_for_hw_pacing() 5582 hdwr_delay *= rlp->time_between; in bbr_adjust_for_hw_pacing() 5591 (delta < (max(rlp->time_between, in bbr_adjust_for_hw_pacing() 5606 seg_sz = max(((cur_delay + rlp->time_between)/rlp->time_between), in bbr_adjust_for_hw_pacing()
|