Lines Matching refs:scn
291 cdf_zero_stream(cdf_stream_t *scn) in cdf_zero_stream() argument
293 scn->sst_len = 0; in cdf_zero_stream()
294 scn->sst_dirlen = 0; in cdf_zero_stream()
295 scn->sst_ss = 0; in cdf_zero_stream()
296 efree(scn->sst_tab); in cdf_zero_stream()
297 scn->sst_tab = NULL; in cdf_zero_stream()
562 const cdf_sat_t *sat, cdf_secid_t sid, size_t len, cdf_stream_t *scn) in cdf_read_long_sector_chain() argument
566 scn->sst_tab = NULL; in cdf_read_long_sector_chain()
567 scn->sst_len = cdf_count_chain(sat, sid, ss); in cdf_read_long_sector_chain()
568 scn->sst_dirlen = MAX(h->h_min_size_standard_stream, len); in cdf_read_long_sector_chain()
569 scn->sst_ss = ss; in cdf_read_long_sector_chain()
572 return cdf_zero_stream(scn); in cdf_read_long_sector_chain()
574 if (scn->sst_len == CAST(size_t, -1)) in cdf_read_long_sector_chain()
577 scn->sst_tab = CDF_CALLOC(scn->sst_len, ss); in cdf_read_long_sector_chain()
578 if (scn->sst_tab == NULL) in cdf_read_long_sector_chain()
579 return cdf_zero_stream(scn); in cdf_read_long_sector_chain()
586 if (i >= scn->sst_len) { in cdf_read_long_sector_chain()
589 scn->sst_len)); in cdf_read_long_sector_chain()
592 if ((nr = cdf_read_sector(info, scn->sst_tab, i * ss, ss, h, in cdf_read_long_sector_chain()
594 if (i == scn->sst_len - 1 && nr > 0) { in cdf_read_long_sector_chain()
606 return cdf_zero_stream(scn); in cdf_read_long_sector_chain()
612 cdf_secid_t sid, size_t len, cdf_stream_t *scn) in cdf_read_short_sector_chain() argument
615 scn->sst_tab = NULL; in cdf_read_short_sector_chain()
616 scn->sst_len = cdf_count_chain(ssat, sid, CDF_SEC_SIZE(h)); in cdf_read_short_sector_chain()
617 scn->sst_dirlen = len; in cdf_read_short_sector_chain()
618 scn->sst_ss = ss; in cdf_read_short_sector_chain()
620 if (scn->sst_len == CAST(size_t, -1)) in cdf_read_short_sector_chain()
623 scn->sst_tab = CDF_CALLOC(scn->sst_len, ss); in cdf_read_short_sector_chain()
624 if (scn->sst_tab == NULL) in cdf_read_short_sector_chain()
625 return cdf_zero_stream(scn); in cdf_read_short_sector_chain()
632 if (i >= scn->sst_len) { in cdf_read_short_sector_chain()
635 i, scn->sst_len)); in cdf_read_short_sector_chain()
638 if (cdf_read_short_sector(sst, scn->sst_tab, i * ss, ss, h, in cdf_read_short_sector_chain()
648 return cdf_zero_stream(scn); in cdf_read_short_sector_chain()
654 cdf_secid_t sid, size_t len, cdf_stream_t *scn) in cdf_read_sector_chain() argument
659 scn); in cdf_read_sector_chain()
661 return cdf_read_long_sector_chain(info, h, sat, sid, len, scn); in cdf_read_sector_chain()
764 const cdf_sat_t *sat, const cdf_dir_t *dir, cdf_stream_t *scn, in cdf_read_short_stream() argument
790 d->d_stream_first_sector, d->d_size, scn); in cdf_read_short_stream()
792 scn->sst_tab = NULL; in cdf_read_short_stream()
793 (void)cdf_zero_stream(scn); in cdf_read_short_stream()
809 const cdf_dir_t *dir, cdf_stream_t *scn) in cdf_read_doc_summary_info() argument
812 "\05DocumentSummaryInformation", scn); in cdf_read_doc_summary_info()
818 const cdf_dir_t *dir, cdf_stream_t *scn) in cdf_read_summary_info() argument
821 "\05SummaryInformation", scn); in cdf_read_summary_info()
827 const cdf_dir_t *dir, const char *name, cdf_stream_t *scn) in cdf_read_user_stream() argument
833 memset(scn, 0, sizeof(*scn)); in cdf_read_user_stream()
839 d->d_stream_first_sector, d->d_size, scn); in cdf_read_user_stream()
1393 cdf_stream_t scn; in cdf_dump_dir() local
1430 d->d_stream_first_sector, d->d_size, &scn) == -1) { in cdf_dump_dir()
1435 cdf_dump_stream(&scn); in cdf_dump_dir()
1436 efree(scn.sst_tab); in cdf_dump_dir()
1567 cdf_stream_t sst, scn; in main() local
1620 &scn) == -1) in main()
1624 cdf_dump_summary_info(&h, &scn); in main()
1627 &dir, "Catalog", &scn) == -1) in main()
1631 cdf_dump_catalog(&h, &scn); in main()