/illumos-gate/usr/src/lib/libproc/common/ |
H A D | pr_getrlimit.c | 42 int resource, struct rlimit *rlp) 51 return (getrlimit(resource, rlp)); 60 adp++; /* rlp argument */ 62 adp->arg_object = rlp; 65 adp->arg_size = sizeof (*rlp); 90 int resource, const struct rlimit *rlp) 99 return (setrlimit(resource, rlp)); 108 adp++; /* rlp argument */ 110 adp->arg_object = (void *)rlp; 113 adp->arg_size = sizeof (*rlp); 41 pr_getrlimit(struct ps_prochandle *Pr, int resource, struct rlimit *rlp) argument 89 pr_setrlimit(struct ps_prochandle *Pr, int resource, const struct rlimit *rlp) argument 137 pr_getrlimit64(struct ps_prochandle *Pr, int resource, struct rlimit64 *rlp) argument 185 pr_setrlimit64(struct ps_prochandle *Pr, int resource, const struct rlimit64 *rlp) argument [all...] |
/illumos-gate/usr/src/lib/libshell/common/bltins/ |
H A D | ulimit.c | 75 struct rlimit rlp; local 151 if(getrlimit(n,&rlp) <0) 154 rlp.rlim_max = i; 156 rlp.rlim_cur = i; 157 if(setrlimit(n,&rlp) <0) 170 if(getrlimit(n,&rlp) <0) 173 i = rlp.rlim_max; 175 i = rlp.rlim_cur;
|
/illumos-gate/usr/src/cmd/sendmail/db/db/ |
H A D | db_region.c | 37 RLAYOUT *rlp, rl; local 307 rlp = (RLAYOUT *)infop->addr; 321 if ((ret = __db_mutex_init(&rlp->lock, 322 MUTEX_LOCK_OFFSET(rlp, &rlp->lock))) != 0 || 323 (ret = __db_mutex_lock(&rlp->lock, infop->fd)) != 0) 327 rlp->refcnt = 1; 328 rlp->size = infop->size; 329 db_version(&rlp->majver, &rlp 502 RLAYOUT *rlp; local 588 RLAYOUT rl, *rlp; local 700 RLAYOUT *rlp; local [all...] |
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | rlimit.c | 289 getrlimit32(int resource, struct rlimit32 *rlp) argument 351 if (copyout(&rlim32, rlp, sizeof (rlim32))) 366 setrlimit32(int resource, struct rlimit32 *rlp) argument 378 if (copyin(rlp, &rlim32, sizeof (rlim32))) 442 getrlimit64(int resource, struct rlimit64 *rlp) argument 454 if (copyout(&rlim64, rlp, sizeof (rlim64))) 460 setrlimit64(int resource, struct rlimit64 *rlp) argument 469 if (copyin(rlp, &rlim64, sizeof (rlim64)))
|
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_getdevs.c | 247 md_replicalist_t *rlp, *rp; local 259 rlp = NULL; 260 if (metareplicalist(sp, MD_BASICNAME_OK, &rlp, ep) < 0) 262 for (rp = rlp; (rp != NULL); rp = rp->rl_next) { 267 metafreereplicalist(rlp);
|
H A D | meta_set_drv.c | 227 md_replicalist_t *rlp = NULL, *rl; local 522 if (metareplicalist(sp, MD_BASICNAME_OK, &rlp, ep) >= 0) { 531 for (rl = rlp; rl != NULL; rl = rl->rl_next) { 1207 md_replicalist_t *rlp = NULL, *rl; local 1529 if (metareplicalist(sp, MD_BASICNAME_OK, &rlp, ep) >= 0) { 1536 for (rl = rlp; rl != NULL; rl = rl->rl_next) {
|
H A D | meta_set_tkr.c | 42 md_replicalist_t *rlp, 60 for (rl = rlp; rl != NULL; rl = rl->rl_next) { 70 for (rl = rlp; rl != NULL; rl = rl->rl_next) { 507 md_replicalist_t *rlp = NULL; local 994 if (metareplicalist(sp, (MD_BASICNAME_OK | PRINT_FAST), &rlp, ep) < 0) 997 if (upd_dr_dbinfo(sp, sd, dd, rlp, (flags & TAKE_FORCE), ep) < 0) { 998 metafreereplicalist(rlp); 1002 metafreereplicalist(rlp); 38 upd_dr_dbinfo( mdsetname_t *sp, md_set_desc *sd, md_drive_desc *dd, md_replicalist_t *rlp, int forceflg, md_error_t *ep ) argument
|
H A D | meta_nameinfo.c | 899 md_replicalist_t *rlp = NULL; local 908 if (metareplicalist(sp, MD_BASICNAME_OK | PRINT_FAST, &rlp, ep) < 0) { 913 } else if (rlp == NULL) 917 for (rl = rlp; (rl != NULL); rl = rl->rl_next) { 930 metafreereplicalist(rlp);
|
H A D | meta_set_hst.c | 51 md_replicalist_t *rlp = NULL; local 55 if (metareplicalist(sp, MD_FULLNAME_ONLY, &rlp, ep) < 0) 58 for (rl = rlp; rl != NULL; rl = rl->rl_next) { 75 metafreereplicalist(rlp); 948 md_replicalist_t *rlp = NULL; local 952 if (metareplicalist(sp, MD_BASICNAME_OK, &rlp, ep) < 0) 955 for (rl = rlp; rl != NULL; rl = rl->rl_next) { 965 metafreereplicalist(rlp); 1543 md_replicalist_t *rlp = NULL; local 1559 if (metareplicalist(sp, (MD_BASICNAME_OK | PRINT_FAST), &rlp, 3747 md_replicalist_t *rlp = NULL; local [all...] |
H A D | meta_db_balance.c | 137 rep_has_err(md_replicalist_t *rlp, mdname_t *np) argument 141 for (rl = rlp; rl != NULL; rl = rl->rl_next) { 158 md_replicalist_t *rlp, 204 if (rep_has_err(rlp, np)) 301 return (add_drv_to_ctl_lst(clpp, rlp, dnp, dbcnt, dbsize, tcinfop, 606 md_replicalist_t *rlp = NULL; local 625 if (metareplicalist(sp, MD_BASICNAME_OK, &rlp, ep) < 0) { 641 if (add_drv_to_ctl_lst(clpp, rlp, d->dd_dnp, d->dd_dbcnt, 650 if (add_drv_to_ctl_lst(clpp, rlp, d->dd_dnp, 0, dbsize, NULL, 654 metafreereplicalist(rlp); 156 add_drv_to_ctl_lst( md_ctlr_ctl_t **clpp, md_replicalist_t *rlp, mddrivename_t *dnp, int dbcnt, daddr_t dbsize, mdcinfo_t *cinfop, int indiskset, int with_bus, int errored, md_error_t *ep ) argument [all...] |
H A D | meta_devadm.c | 417 md_replicalist_t *rlp = NULL; local 437 if (metareplicalist(sp, MD_BASICNAME_OK | PRINT_FAST, &rlp, ep) < 0) { 442 for (rl = rlp; (rl != NULL); rl = rl->rl_next) { 569 metafreereplicalist(rlp); 890 * replica_update_devid - cycle through the replica list, rlp, and 902 md_replicalist_t *rlp, 926 for (rl = rlp; (rl != NULL); rl = rl->rl_next) { 1003 md_replicalist_t *rlp = NULL; local 1047 if (metareplicalist(*spp, MD_BASICNAME_OK | PRINT_FAST, &rlp, 1052 if (replica_update_devid(rlp, dn 901 replica_update_devid( md_replicalist_t *rlp, mddrivename_t *dnp, set_t setno, char **cdevidpp, md_error_t *ep ) argument [all...] |
H A D | meta_db.c | 430 md_replicalist_t *rlp = NULL; local 444 if (metareplicalist(sp, MD_BASICNAME_OK, &rlp, ep) < 0) 490 for (rl = rlp; (rl != NULL); rl = rl->rl_next) { 577 if (rlp != NULL) 578 metafreereplicalist(rlp); 636 md_replicalist_t *rlp = NULL; local 644 if (metareplicalist(sp, MD_BASICNAME_OK, &rlp, ep) < 0) 646 for (rl = rlp; (rl != NULL); rl = rl->rl_next) { 657 metafreereplicalist(rlp); 2272 md_replicalist_t *rlp 2607 md_replicalist_t *rl, *rlp = NULL; local 2639 md_replicalist_t *rlp = NULL; local [all...] |
H A D | meta_set.c | 189 md_replicalist_t *rlp, 205 for (rl = rlp; rl != NULL; rl = rl->rl_next) { 213 for (rl = rlp; rl != NULL; rl = rl->rl_next) { 426 md_replicalist_t *rlp = NULL; local 450 if (metareplicalist(sp, (MD_BASICNAME_OK | PRINT_FAST), &rlp, 454 if ((dd = rl_to_dd(sp, rlp, &xep)) == NULL) 466 metafreereplicalist(rlp); 187 rl_to_dd( mdsetname_t *sp, md_replicalist_t *rlp, md_error_t *ep ) argument
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/ |
H A D | ilbd_main.c | 912 struct rlimit rlp; local 914 if (getrlimit(RLIMIT_NOFILE, &rlp) == -1) { 918 rlp.rlim_cur = rlp.rlim_max; 919 if (setrlimit(RLIMIT_NOFILE, &rlp) == -1) {
|
/illumos-gate/usr/src/cmd/lvm/util/ |
H A D | metadb.c | 557 md_replicalist_t *rlp = NULL; local 564 if (metareplicalist(sp, (MD_BASICNAME_OK | PRINT_FAST), &rlp, ep) < 0) 566 else if (rlp == NULL) 575 for (rl = rlp; rl != NULL; rl = rl->rl_next) { 597 metafreereplicalist(rlp);
|
H A D | metainit.c | 420 md_replicalist_t *rlp = NULL; local 505 if (metareplicalist(&sn, (MD_BASICNAME_OK | PRINT_FAST), &rlp, &error) 521 for (rl = rlp; rl != NULL; rl = rl->rl_next) { 544 metafreereplicalist(rlp); 551 for (rl = rlp; rl != NULL; rl = rl->rl_next) { 580 metafreereplicalist(rlp);
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.c | 1289 struct rlimit rlp; local 1300 if (getrlimit(RLIMIT_NOFILE, &rlp) == 0) 1301 NoFile = rlp.rlim_cur;
|
/illumos-gate/usr/src/cmd/lvm/metassist/layout/ |
H A D | layout_svm_util.c | 1063 md_replicalist_t *rlp = NULL; local 1075 *nreplicas = metareplicalist(sp, MD_BASICNAME_OK, &rlp, &mderror); 1080 } else if (rlp != NULL) { 1081 metafreereplicalist(rlp); 1082 rlp = NULL;
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_kproc.c | 259 kp_find_data(kp_data_t *kp, kp_file_t *kpf, const rd_loadobj_t *rlp) argument 272 kpf->kpf_data_base += rlp->rl_base; 288 kp_iter_mapping(const rd_loadobj_t *rlp, mdb_tgt_t *t) argument 297 sizeof (name), (mdb_tgt_addr_t)rlp->rl_nameaddr) <= 0) { 299 (void *)rlp->rl_nameaddr); 304 name, (void *)rlp->rl_base); 306 if ((kpm = kp_addr_to_kpmap(kp, rlp->rl_base)) == NULL) 323 if ((kpm = kp_find_data(kp, kpf, rlp)) != NULL) {
|
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | rdsv3_impl.c | 115 struct lifreq *lp, *rlp, lifr; local 221 rlp = (struct lifreq *)rbuf; 264 bcopy(lp, rlp, sizeof (struct lifreq)); 265 rlp->lifr_addr.ss_family = AF_INET_OFFLOAD; 266 rlp++; 320 struct ifreq *lp, *rlp, ifr; local 434 rlp = (struct ifreq *)rbuf; 478 bcopy(lp, rlp, sizeof (struct ifreq)); 479 rlp->ifr_addr.sa_family = AF_INET_OFFLOAD; 480 rlp [all...] |
/illumos-gate/usr/src/cmd/cron/ |
H A D | at.c | 584 struct rlimit rlp; local 706 if (getrlimit(RLIMIT_FSIZE, &rlp) == 0) { 707 if (rlp.rlim_cur == RLIM_INFINITY) 711 rlp.rlim_cur / 512);
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | rcm_script.c | 883 struct rlimit rlp; local 924 (getrlimit(RLIMIT_NOFILE, &rlp) == 0)) { 926 rlp.rlim_cur += 16; 927 if (rlp.rlim_max < rlp.rlim_cur) 928 rlp.rlim_max = rlp.rlim_cur; 929 (void) setrlimit(RLIMIT_NOFILE, &rlp);
|
/illumos-gate/usr/src/cmd/fm/fmdump/common/ |
H A D | fmdump.c | 1460 fmd_log_t *rlp; local 1462 if ((rlp = fmd_log_open(FMD_LOG_VERSION, llp->path, &err)) 1471 if (fmd_log_xiter(rlp, iflags, filtc, filtv, 1474 fmd_log_errmsg(rlp, fmd_log_errno(rlp))); 1479 fmd_log_close(rlp);
|
/illumos-gate/usr/src/cmd/svc/configd/ |
H A D | client.c | 99 log_enter(request_log_entry_t *rlp) argument 101 if (rlp->rl_start != 0 && request_log != NULL) { 109 (void) memcpy(logrlp, rlp, sizeof (*rlp)); 122 request_log_entry_t *rlp = get_log(); local 124 log_enter(rlp); 126 (void) memset(rlp, 0, sizeof (*rlp)); 127 rlp->rl_start = gethrtime(); 128 rlp 137 request_log_entry_t *rlp = get_log(); local 143 add_log_ptr(request_log_entry_t *rlp, enum rc_ptr_type type, uint32_t id, void *ptr) argument 450 request_log_entry_t *rlp; local 594 request_log_entry_t *rlp; local 2310 request_log_entry_t *rlp; local [all...] |
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | libscf.c | 1846 libscf_extract_runlevel(scf_property_t *prop, char *rlp) argument 1892 *rlp = buf[0];
|