• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/xnu-2782.1.97/bsd/vfs/

Lines Matching defs:entries

1277    attribute header, attribute entries, and attribute data.
1325 * size supported (including the attribute entries). All of
1326 * the attribute entries must reside within this limit. If
1354 u_int16_t numEntries; /* number of entries which follow */
1355 apple_double_entry_t entries[2]; /* 'finfo' & 'rsrc' always exist */
1372 /* Header + entries must fit into 64K. Data may extend beyond 64K. */
1377 u_int32_t total_size; /* file offset of end of attribute header + entries + data */
1493 * - number of entries
1513 if (rawsize < offsetof(apple_double_header_t, entries))
1529 /* Calculate where the entries[] array ends */
1530 header_end = offsetof(apple_double_header_t, entries) +
1533 /* Is the file big enough to contain the AppleDouble entries? */
1541 header->entries[i].type = SWAP32(header->entries[i].type);
1542 header->entries[i].offset = SWAP32(header->entries[i].offset);
1543 header->entries[i].length = SWAP32(header->entries[i].length);
1545 entry_end = header->entries[i].offset + header->entries[i].length;
1552 if (header->entries[i].offset < header_end ||
1553 entry_end < header->entries[i].offset ||
1569 if (entry_end > header->entries[j].offset &&
1570 header->entries[j].offset + header->entries[j].length > header->entries[i].offset) {
2052 /* Only write the entries, since the data was written separately. */
2171 * shifting the entries after the resource fork.
2691 * Read in and parse the AppleDouble header and entries, and the extended
2692 * attribute header and entries if any. Populates the fields of ainfop
2693 * based on the headers and entries found.
2697 * AppleDouble entries, the extended attribute header, and extended
2698 * attribute entries must lie within this part of the file; the rest of
2702 * entries).
2703 * - Find the Finder Info and Resource Fork entries, if any.
2707 * - Swap and sanity check the extended attribute header and entries (if any).
2770 /* Find the Finder Info and Resource Fork entries, if any */
2772 if (filehdr->entries[i].type == AD_FINDERINFO &&
2773 filehdr->entries[i].length >= FINDERINFOSIZE) {
2775 ainfop->finderinfo = &filehdr->entries[i];
2793 if (filehdr->entries[i].type == AD_RESOURCE) {
2799 if (filehdr->entries[i].length == 0 && !setting)
2808 if (filehdr->entries[i].length == sizeof(rsrcfork_header_t) && !setting) {
2817 uio_setoffset(rf_uio, filehdr->entries[i].offset + 16);
2826 ainfop->rsrcfork = &filehdr->entries[i];
2843 * - Swap and sanity check the extended attribute header and entries
2847 ainfop->finderinfo == &filehdr->entries[0] &&
2848 ainfop->rsrcfork == &filehdr->entries[1] &&
2861 delta = ATTR_BUF_SIZE - (filehdr->entries[0].offset + FINDERINFOSIZE);
2862 if (ainfop->rsrcfork && filehdr->entries[1].length) {
2865 filehdr->entries[1].offset,
2866 filehdr->entries[1].length,
2873 vnode_setsize(xvp, filehdr->entries[1].offset + delta, 0, context);
2879 rsrcforkhdr = (rsrcfork_header_t *)((char *)filehdr + filehdr->entries[1].offset + delta);
2884 filehdr->entries[1].length = sizeof(rsrcfork_header_t);
2887 filehdr->entries[0].length += delta;
2888 filehdr->entries[1].offset += delta;
2893 attrhdr->total_size = filehdr->entries[1].offset;
2915 * entries (if any). The Finder Info content must be big enough
2928 ainfop->finderinfo == &filehdr->entries[0] &&
2972 xah->appledouble.entries[0].type = SWAP32 (AD_FINDERINFO);
2973 xah->appledouble.entries[0].offset = SWAP32 (offsetof(apple_double_header_t, finfo));
2974 xah->appledouble.entries[0].length = SWAP32 (ATTR_BUF_SIZE - offsetof(apple_double_header_t, finfo) - rsrcforksize);
2975 xah->appledouble.entries[1].type = SWAP32 (AD_RESOURCE);
2976 xah->appledouble.entries[1].offset = SWAP32 (ATTR_BUF_SIZE - rsrcforksize);
2977 xah->appledouble.entries[1].length = SWAP32 (rsrcforksize);
3068 adh->entries[i].type = SWAP32 (adh->entries[i].type);
3069 adh->entries[i].offset = SWAP32 (adh->entries[i].offset);
3070 adh->entries[i].length = SWAP32 (adh->entries[i].length);
3180 * variable-sized attribute entries.
3182 * XXX Is there any guarantee that attribute entries are stored in