• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/vfs/

Lines Matching refs:entries

1075    attribute header, attribute entries, and attribute data.
1123 * size supported (including the attribute entries). All of
1124 * the attribute entries must reside within this limit. If
1154 u_int16_t numEntries; /* number of entries which follow */
1155 apple_double_entry_t entries[2]; /* 'finfo' & 'rsrc' always exist */
1172 /* Header + entries must fit into 64K. Data may extend beyond 64K. */
1177 u_int32_t total_size; /* file offset of end of attribute header + entries + data */
1295 * - number of entries
1315 if (rawsize < offsetof(apple_double_header_t, entries))
1331 /* Calculate where the entries[] array ends */
1332 header_end = offsetof(apple_double_header_t, entries) +
1335 /* Is the file big enough to contain the AppleDouble entries? */
1343 header->entries[i].type = SWAP32(header->entries[i].type);
1344 header->entries[i].offset = SWAP32(header->entries[i].offset);
1345 header->entries[i].length = SWAP32(header->entries[i].length);
1347 entry_end = header->entries[i].offset + header->entries[i].length;
1354 if (header->entries[i].offset < header_end ||
1355 entry_end < header->entries[i].offset ||
1371 if (entry_end > header->entries[j].offset &&
1372 header->entries[j].offset + header->entries[j].length > header->entries[i].offset) {
1839 /* Only write the entries, since the data was written separately. */
1955 * shifting the entries after the resource fork.
2454 * Read in and parse the AppleDouble header and entries, and the extended
2455 * attribute header and entries if any. Populates the fields of ainfop
2456 * based on the headers and entries found.
2460 * AppleDouble entries, the extended attribute header, and extended
2461 * attribute entries must lie within this part of the file; the rest of
2465 * entries).
2466 * - Find the Finder Info and Resource Fork entries, if any.
2470 * - Swap and sanity check the extended attribute header and entries (if any).
2533 /* Find the Finder Info and Resource Fork entries, if any */
2535 if (filehdr->entries[i].type == AD_FINDERINFO &&
2536 filehdr->entries[i].length >= FINDERINFOSIZE) {
2538 ainfop->finderinfo = &filehdr->entries[i];
2556 if (filehdr->entries[i].type == AD_RESOURCE) {
2562 if (filehdr->entries[i].length == 0 && !setting)
2571 if (filehdr->entries[i].length == sizeof(rsrcfork_header_t) && !setting) {
2580 uio_setoffset(rf_uio, filehdr->entries[i].offset + 16);
2589 ainfop->rsrcfork = &filehdr->entries[i];
2606 * - Swap and sanity check the extended attribute header and entries
2610 ainfop->finderinfo == &filehdr->entries[0] &&
2611 ainfop->rsrcfork == &filehdr->entries[1] &&
2624 delta = ATTR_BUF_SIZE - (filehdr->entries[0].offset + FINDERINFOSIZE);
2625 if (ainfop->rsrcfork && filehdr->entries[1].length) {
2628 filehdr->entries[1].offset,
2629 filehdr->entries[1].length,
2636 vnode_setsize(xvp, filehdr->entries[1].offset + delta, 0, context);
2642 rsrcforkhdr = (rsrcfork_header_t *)((char *)filehdr + filehdr->entries[1].offset + delta);
2647 filehdr->entries[1].length = sizeof(rsrcfork_header_t);
2650 filehdr->entries[0].length += delta;
2651 filehdr->entries[1].offset += delta;
2656 attrhdr->total_size = filehdr->entries[1].offset;
2678 * entries (if any). The Finder Info content must be big enough
2691 ainfop->finderinfo == &filehdr->entries[0] &&
2735 xah->appledouble.entries[0].type = SWAP32 (AD_FINDERINFO);
2736 xah->appledouble.entries[0].offset = SWAP32 (offsetof(apple_double_header_t, finfo));
2737 xah->appledouble.entries[0].length = SWAP32 (ATTR_BUF_SIZE - offsetof(apple_double_header_t, finfo) - rsrcforksize);
2738 xah->appledouble.entries[1].type = SWAP32 (AD_RESOURCE);
2739 xah->appledouble.entries[1].offset = SWAP32 (ATTR_BUF_SIZE - rsrcforksize);
2740 xah->appledouble.entries[1].length = SWAP32 (rsrcforksize);
2826 adh->entries[i].type = SWAP32 (adh->entries[i].type);
2827 adh->entries[i].offset = SWAP32 (adh->entries[i].offset);
2828 adh->entries[i].length = SWAP32 (adh->entries[i].length);
2938 * variable-sized attribute entries.
2940 * XXX Is there any guarantee that attribute entries are stored in