Lines Matching refs:entry
1074 Info AppleDouble entry includes the length of the extended
1144 u_int32_t type; /* entry type: see list, 0 invalid */
1145 u_int32_t offset; /* entry data offset from the beginning of the file. */
1146 u_int32_t length; /* entry data length in bytes. */
1296 * - that each entry fits within the file size
1301 * may be embedded in the Finder Info entry.
1340 /* Swap and sanity check each AppleDouble entry */
1342 /* Swap the per-entry fields to native order */
1350 * Does the entry's content start within the header itself,
1351 * did the addition overflow, or does the entry's content
1361 * Does the current entry's content overlap with a previous
1362 * entry's content?
1393 attr_entry_t *entry;
1470 entry = ainfo.attr_entry;
1474 for (i = 0; i < header->num_attrs && ATTR_VALID(entry, ainfo); i++) {
1475 if (strncmp((const char *)entry->name, name, namelen) == 0) {
1476 datalen = (size_t)entry->length;
1486 if (entry->offset + datalen < ATTR_MAX_HDR_SIZE) {
1487 attrdata = ((u_int8_t *)header + entry->offset);
1490 uio_setoffset(uio, entry->offset);
1496 entry = ATTR_NEXT(entry);
1514 attr_entry_t *entry;
1672 entry = ainfo.attr_entry;
1683 for (i = 0; i < header->num_attrs && ATTR_VALID(entry, ainfo); i++) {
1684 if (strncmp((const char *)entry->name, name, namelen) == 0) {
1688 entry = ATTR_NEXT(entry);
1696 if (datalen == entry->length) {
1698 uio_setoffset(uio, entry->offset);
1705 attrdata = (u_int8_t *)header + entry->offset;
1718 * Brute force approach - just remove old entry and set new entry.
1781 /* Make space for a new entry. */
1794 /* Fix up entry data offsets. */
1795 lastentry = entry;
1796 for (entry = ainfo.attr_entry; entry != lastentry && ATTR_VALID(entry, ainfo); entry = ATTR_NEXT(entry)) {
1797 entry->offset += entrylen;
1827 /* Create the attribute entry. */
1842 /* The entry and data are both in the header; write them together. */
1880 attr_entry_t *entry;
1954 * entry then the space needs to be reclaimed by
1975 entry = ainfo.attr_entry;
1980 for (i = 0; i < header->num_attrs && ATTR_VALID(entry, ainfo); i++) {
1981 if (strncmp((const char *)entry->name, name, namelen) == 0) {
1987 entry = ATTR_NEXT(entry);
1997 datalen = entry->length;
1998 dataoff = entry->offset;
2005 /* Remove the attribute entry. */
2007 bcopy((u_int8_t *)entry + entrylen, (u_int8_t *)entry,
2008 ((size_t)header + header->data_start) - ((size_t)entry + entrylen));
2042 /* Adjust the header values and entry offsets. */
2047 oldslot = entry;
2048 entry = ainfo.attr_entry;
2049 for (i = 0; i < header->num_attrs && ATTR_VALID(entry, ainfo); i++) {
2050 entry->offset -= entrylen;
2051 if (entry >= oldslot)
2052 entry->offset -= datalen;
2053 entry = ATTR_NEXT(entry);
2099 attr_entry_t *entry;
2156 for (i = 0, entry = ainfo.attr_entry; i < count && ATTR_VALID(entry, ainfo); i++) {
2157 if (xattr_protected((const char *)entry->name) ||
2158 xattr_validatename((const char *)entry->name) != 0) {
2159 entry = ATTR_NEXT(entry);
2163 *size += entry->namelen;
2164 entry = ATTR_NEXT(entry);
2167 if (uio_resid(uio) < entry->namelen) {
2171 error = uiomove((caddr_t) entry->name, entry->namelen, uio);
2177 entry = ATTR_NEXT(entry);
2467 * - If we're going to be writing, try to make sure the Finder Info entry has
2537 /* We found the Finder Info entry. */
2559 * we need to remember the resource fork entry so it can be
2591 printf("get_xattrinfo: resource fork not last entry\n");
2603 * entry has room to store the extended attribute header, plus some
2617 * Info entry has room to store the extended attribute header,
2685 * Finder Info content according to the AppleDouble entry.
2921 /* Swap the attribute entry fields */