/osnet-11/usr/src/lib/libntfs/common/libntfs/ |
H A D | debug.c | 39 * @rl: 45 void ntfs_debug_runlist_dump(const runlist_element *rl) argument 53 if (!rl) { 59 LCN lcn = (rl + i)->lcn; 66 ntfs_log_debug("%-16llx %s %-16llx%s\n", rl[i].vcn, lcn_str[idx], rl[i].length, rl[i].length ? "" : " (runlist end)"); 68 ntfs_log_debug("%-16llx %-16llx %-16llx%s\n", rl[i].vcn, rl[i].lcn, rl[ [all...] |
H A D | runlist.c | 89 * @rl: original runlist 90 * @old_size: number of runlist elements in the original runlist @rl 103 static runlist_element *ntfs_rl_realloc(runlist_element *rl, argument 109 return rl; 110 return realloc(rl, new_size); 501 int di, si; /* Current index into @[ds]rl. */ 504 int dend, send; /* Last index into @[ds]rl. */ 505 int dfinal, sfinal; /* The last index into @[ds]rl with 739 runlist_element *rl; /* The output runlist. */ local 770 rl 976 ntfs_rl_vcn_to_lcn(const runlist_element *rl, const VCN vcn) argument 1035 ntfs_rl_pread(const ntfs_volume *vol, const runlist_element *rl, const s64 pos, s64 count, void *b) argument 1119 ntfs_rl_pwrite(const ntfs_volume *vol, const runlist_element *rl, const s64 pos, s64 count, void *b) argument 1220 ntfs_rl_fill_zero(const ntfs_volume *vol, const runlist *rl, s64 pos, const s64 count) argument 1304 ntfs_get_size_for_mapping_pairs(const ntfs_volume *vol, const runlist_element *rl, const VCN start_vcn) argument 1473 ntfs_mapping_pairs_build(const ntfs_volume *vol, u8 *dst, const int dst_len, const runlist_element *rl, const VCN start_vcn, VCN *const stop_vcn) argument 1625 runlist *rl; local 1681 ntfs_rl_sparse(runlist *rl) argument 1713 ntfs_rl_get_compressed_size(ntfs_volume *vol, runlist *rl) argument 1757 test_rl_dump_runlist(const runlist_element *rl) argument [all...] |
H A D | lcnalloc.c | 109 runlist *rl = NULL, *trl; local 126 rl = ntfs_malloc(0x1000); 127 if (!rl) 129 rl[0].vcn = start_vcn; 130 rl[0].lcn = LCN_RL_NOT_MAPPED; 131 rl[0].length = 0; 132 return rl; 274 if (!rl) 278 trl = (runlist*)realloc(rl, rlsize); 285 rl 718 ntfs_cluster_free_from_rl(ntfs_volume *vol, runlist *rl) argument 756 runlist *rl; local [all...] |
H A D | compress.c | 266 runlist_element *rl, VCN cb_start_vcn, int cb_clusters) 274 cb_clusters -= rl->length - (cb_start_vcn - rl->vcn); 277 rl++; 279 if (rl->lcn < LCN_HOLE || !rl->length) { 280 cb_start_vcn = rl->vcn; 281 rl = ntfs_attr_find_vcn(na, rl->vcn); 282 if (!rl || r 265 ntfs_is_cb_compressed(ntfs_attr *na, runlist_element *rl, VCN cb_start_vcn, int cb_clusters) argument 330 runlist_element *rl; local [all...] |
H A D | mft.c | 560 runlist_element *rl, *rl2 = NULL; /* silence compiler warning */ local 579 rl = ntfs_attr_find_vcn(mftbmp_na, (mftbmp_na->allocated_size - 1) >> 581 if (!rl || !rl->length || rl->lcn < 0) { 584 if (rl) 588 lcn = rl->lcn + rl->length; 614 rl->length++; 615 rl[ 894 runlist_element *rl, *rl2; local [all...] |
H A D | attrib.c | 97 runlist *rl; local 144 rl = ntfs_mapping_pairs_decompress(vol, a, NULL); 145 if (!rl) { 161 for (i = 0, total = 0; rl[i].length; i++) { 162 if (total + (rl[i].length << vol->cluster_size_bits) >= 171 * rl[i].length << vol->cluster_size_bits, do the 179 intbuf = ntfs_malloc(rl[i].length << 183 free(rl); 198 r = ntfs_pread(vol->u.dev, rl[i].lcn << 199 vol->cluster_size_bits, rl[ 516 runlist_element *rl; local 545 runlist *rl; local 635 runlist_element *rl; local 791 runlist_element *rl; local 870 runlist_element *rl; local 1043 runlist_element *rl; local 3620 runlist *rl; local 4890 runlist *rl, *rln; local [all...] |
/osnet-11/usr/src/lib/libc/port/stdio/ |
H A D | flockf.c | 57 rmutex_t *rl = IOB_LCK(iop); local 59 if (rl != NULL) 60 cancel_safe_mutex_lock(rl); 61 return (rl); 67 rmutex_t *rl = IOB_LCK(iop); local 69 if (rl != NULL) 70 return (mutex_trylock(rl)); 77 rmutex_t *rl = IOB_LCK(iop); local 79 if (rl != NULL) 80 (void) mutex_lock(rl); 86 rmutex_t *rl = IOB_LCK(iop); local [all...] |
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/ |
H A D | rec_utils.c | 68 RLEAF *rl; local 97 rl = GETRLEAF(e->page, e->index); 98 if (rl->flags & P_BIGDATA) { 99 if (__ovfl_get(t, rl->bytes, 105 if (rl->dsize + 1 > t->bt_rdata.size) { 107 malloc(rl->dsize + 1) : 108 realloc(t->bt_rdata.data, rl->dsize + 1)); 112 t->bt_rdata.size = rl->dsize + 1; 114 memmove(t->bt_rdata.data, rl->bytes, rl [all...] |
H A D | rec_delete.c | 159 RLEAF *rl; local 175 to = rl = GETRLEAF(h, idx); 176 if (rl->flags & P_BIGDATA && __ovfl_delete(t, rl->bytes) == RET_ERROR) 178 nbytes = NRLEAF(rl);
|
/osnet-11/usr/src/lib/libilb/common/ |
H A D | ilb_rules.c | 100 ilb_rule_info_t *rl; local 107 rl = (ilb_rule_info_t *)&ic->ic_data; 114 (void) strlcpy(rl->rl_name, rd->r_name, sizeof (rl->rl_name)); 115 (void) strlcpy(rl->rl_sgname, rd->r_sgname, sizeof (rl->rl_sgname)); 116 (void) strlcpy(rl->rl_hcname, rd->r_hcname, sizeof (rl->rl_hcname)); 117 rl->rl_flags = rd->r_flags; 118 rl 232 ilb_rule_info_t *rl = NULL; local [all...] |
/osnet-11/usr/src/lib/libntfs/common/include/ntfs/ |
H A D | runlist.h | 52 extern LCN ntfs_rl_vcn_to_lcn(const runlist_element *rl, const VCN vcn); 54 extern s64 ntfs_rl_pread(const ntfs_volume *vol, const runlist_element *rl, 56 extern s64 ntfs_rl_pwrite(const ntfs_volume *vol, const runlist_element *rl, 59 extern int ntfs_rl_fill_zero(const ntfs_volume *vol, const runlist *rl, 71 const runlist_element *rl, const VCN start_vcn); 77 const int dst_len, const runlist_element *rl, 82 extern int ntfs_rl_sparse(runlist *rl); 83 extern s64 ntfs_rl_get_compressed_size(ntfs_volume *vol, runlist *rl);
|
H A D | debug.h | 34 static __inline__ void ntfs_debug_runlist_dump(const struct _runlist_element *rl __attribute__((unused))) {} 37 extern void ntfs_debug_runlist_dump(const struct _runlist_element *rl);
|
H A D | lcnalloc.h | 44 extern int ntfs_cluster_free_from_rl(ntfs_volume *vol, runlist *rl);
|
/osnet-11/usr/src/cmd/ntfsprogs/ |
H A D | ntfsresize.c | 602 static void rl_set(runlist *rl, VCN vcn, LCN lcn, s64 len) argument 604 rl->vcn = vcn; 605 rl->lcn = lcn; 606 rl->length = len; 609 static int rl_items(runlist *rl) argument 613 while (rl[i++].length) 626 static void dump_runlist(runlist *rl) argument 628 while (rl->length) 629 dump_run(rl++); 648 static void collect_resize_constraints(ntfs_resize_t *resize, runlist *rl) argument 723 collect_relocation_info(ntfs_resize_t *resize, runlist *rl) argument 778 runlist *rl; local 1049 runlist *rl; local 1114 rl_fixup(runlist **rl) argument 1143 replace_attribute_runlist(ntfs_volume *vol, ntfs_attr_search_ctx *ctx, runlist *rl) argument 1229 set_bitmap_clusters(struct bitmap *bm, runlist *rl, u8 bit) argument 1235 release_bitmap_clusters(struct bitmap *bm, runlist *rl) argument 1312 runlist *rl = NULL; local 1464 rl_split_run(runlist **rl, int run, s64 pos) argument 1498 rl_insert_at_run(runlist **rl, int run, runlist *ins) argument 1528 relocate_run(ntfs_resize_t *resize, runlist **rl, int run) argument 1575 runlist *rl; local 1793 rl_expand(runlist **rl, const VCN last_vcn) argument 1826 rl_truncate(runlist **rl, const VCN last_vcn) argument 1897 realloc_bitmap_data_attr(ntfs_resize_t *resize, runlist **rl, s64 nr_bm_clusters) argument 1938 runlist *rl; local 2018 runlist *rl; local [all...] |
H A D | ntfsundelete.c | 1158 runlist_element *rl = NULL; local 1204 rl = data->runlist; 1205 if (!rl) { 1211 if (rl[0].length <= 0) { 1217 if (rl[0].lcn == LCN_RL_NOT_MAPPED) { /* extended mft record */ 1219 "clusters\n", (long long)rl[0].length); 1220 clusters_inuse += rl[0].length; 1221 rl++; 1224 for (i = 0; rl[i].length > 0; i++) { 1225 if (rl[ 1659 runlist_element *rl; local [all...] |
H A D | ntfsclone.c | 491 static s64 is_critical_metadata(ntfs_walk_clusters_ctx *image, runlist *rl) argument 502 return rl->length; 507 s64 s = (s64)16384 - rl->vcn * vol->cluster_size; 510 if (rl->length < s) 511 s = rl->length; 519 return rl->length; 655 static void dump_clusters(ntfs_walk_clusters_ctx *image, runlist *rl) argument 662 if (!(len = is_critical_metadata(image, rl))) 665 lseek_to_cluster(rl->lcn); 669 copy_cluster(opt.rescue, rl 986 clone_logfile_parts(ntfs_walk_clusters_ctx *image, runlist *rl) argument 1010 runlist *rl; local 1744 runlist *rl, *rl_bad; local [all...] |
H A D | ntfscluster.c | 287 runlist_element *rl; local 308 rl = ntfs_mapping_pairs_decompress(vol, rec, NULL); 310 for (z = 0; rl[z].length > 0; z++) 312 if (rl[z].lcn >= 0) { 314 mc += rl[z].length; 316 uc += rl[z].length; 321 free(rl);
|
/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | closefrom.c | 56 struct rlimit rl; local 89 if (getrlimit(RLIMIT_NOFILE, &rl) == 0) 90 max_fds = (rl.rlim_max == RLIM_INFINITY)? 91 INT_MAX : rl.rlim_max;
|
/osnet-11/usr/src/cmd/sendmail/libsm/ |
H A D | ldap.c | 654 SM_LDAP_RECURSE_ENTRY *rl; local 716 rl = sm_ldap_add_recurse(&recurse, dn, 720 if (rl == NULL) 727 else if (rl->lr_done) 1067 rl->lr_done = true; 1068 if (rl->lr_ludp != NULL) 1070 ldap_free_urldesc(rl->lr_ludp); 1071 rl->lr_ludp = NULL; 1073 if (rl->lr_attrs != NULL) 1075 free(rl [all...] |
H A D | rpool.c | 387 SM_RLIST_T *rl, *rnext; local 400 rl = rpool->sm_rlists; 401 if (rl != NULL) 406 for (r = rl->sm_rvec; r < rmax; ++r) 411 rnext = rl->sm_rnext; 412 sm_free(rl); 415 rl = rnext; 416 rmax = &rl->sm_rvec[SM_RLIST_MAX]; 478 SM_RLIST_T *rl; local 485 rl [all...] |
/osnet-11/usr/src/lib/libcurses/screen/ |
H A D | mvcur.c | 93 rl, /* cost relative */ local 115 rl = hd = hu = LARGECOST; 132 rl = _mvleft(curx, newx, FALSE); 134 rl = _mvright(curx, newx, FALSE); 135 if (rl < cm) { 137 rl = _mvleft(curx, newx, TRUE); 139 rl = _mvright(curx, newx, TRUE); 146 if (rl >= LARGECOST && cury >= 0 && cury < curscr->_maxy && 148 rl = _mvrel(cury, curx, newy, newx, FALSE); 159 if (cm >= LARGECOST && rl > [all...] |
/osnet-11/usr/src/lib/libnisdb/ |
H A D | ldap_ruleval.h | 67 __nis_mapping_item_t *buildLvalue(__nis_mapping_rlhs_t *rl, 69 __nis_value_t *buildRvalue(__nis_mapping_rlhs_t *rl,
|
/osnet-11/usr/src/cmd/sendmail/db/db/ |
H A D | db_region.c | 37 RLAYOUT *rlp, rl; local 242 __os_read(infop->fd, &rl, sizeof(rl), &nr)) != 0) 244 if (rl.valid != DB_REGIONMAGIC) 248 size = rl.size; 249 infop->segid = rl.segid; 250 if (F_ISSET(&rl, REGION_ANONYMOUS)) 588 RLAYOUT rl, *rlp; local 649 if ((ret = __os_read(fd, &rl, sizeof(rl), [all...] |
/osnet-11/usr/src/lib/libdevid/ |
H A D | deviceid.c | 235 devid_nmlist_t *rl; local 329 for (nl = nlh, rl = *retlist; nl; nl = nl->nl_next, rl++) { 330 rl->devname = nl->nl_devname; 331 rl->dev = nl->nl_dev; 333 rl->devname = NULL; 334 rl->dev = NODEV;
|
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/ |
H A D | bt_debug.c | 205 RLEAF *rl; local 278 rl = GETRLEAF(h, cur); 279 if (rl->flags & P_BIGDATA) 282 *(db_pgno_t *)rl->bytes, 283 *(u_int32_t *)(rl->bytes + sizeof(db_pgno_t))); 284 else if (rl->dsize) 286 "%.*s", (int)rl->dsize, rl->bytes);
|