Lines Matching defs:directory

83 /* Map file mode type to directory entry types */
134 static int buildthread(void *keyp, void *recp, int std_hfs, int directory);
600 /* It must be in the correct directory */
1002 * Now insert the file/directory record
1062 * Assumes that the target's directory exists.
1093 int directory = from_cdp->cd_flags & CD_ISDIR;
1120 * When moving a directory, make sure its a valid move.
1122 if (directory && (from_cdp->cd_parentcnid != to_cdp->cd_parentcnid)) {
1144 * making sure that source directory is not encountered.
1197 /* Check if the source is directory hard link. We do not change
1198 * directory flag because it is later used to initialize result descp
1201 (directory) &&
1222 if (std_hfs && !directory &&
1324 /* For directory hard links, always create a file thread
1325 * record. For everything else, use the directory flag.
1330 datasize = buildthread(&to_iterator->key, recp, std_hfs, directory);
1345 if (directory && from_cdp->cd_cnid == kHFSRootFolderID) {
1356 encoding, directory, out_cdp);
1395 * The root directory cannot be deleted
1396 * A directory must be empty
1641 /* Note: directory hardlink inodes don't require a text encoding hint. */
1682 /* A directory hardlink has a link count. */
1735 * Do not modify bsdInfo for directory hard link records.
1816 /* This function sets kHFSHasChildLinkBit in a directory hierarchy in the
1818 * either the root folder, or the private metadata directory for storing
1819 * directory hard links. This function updates the corresponding in-core
1820 * cnode, if any, and the directory record in the catalog btree.
1880 /* This function traverses the parent directory hierarchy from the given
1881 * directory to one level below root directory and checks if any of its
1883 * 1. A directory hard link.
1884 * 2. The 'pointed at' directory.
1907 /* Check if the 'pointed at' directory is an ancestor */
1922 /* Check if this ancestor is a directory hard link */
2077 /* directory inodes don't have a chain (its in an EA) */
2219 /* For directory hard links, create alias in resource fork */
2266 * as normal directories on Leopard or later. All directory hard link aliases
2270 * only for creating directory hard link aliases.
2304 /* Constants for directory hard link alias */
2306 /* Size of resource fork data array for directory hard link alias */
2318 /* Offset for folder ID of the parent directory of the directory inode */
2321 /* Offset for folder ID of the directory inode */
2325 /* Create and write an alias that points at the directory represented by given
2330 * of directory hard links only, and should not be generalized.
2388 /* Set id of the parent of the target directory */
2392 /* Set id of the target directory */
2485 * Callback to collect directory entries.
2486 * Called with readattr_state for each item in a directory.
2644 * Position the iterator at the directory's thread record.
2742 * Callback to pack directory entries.
2743 * Called with packdirentry_state for each item in a directory.
2809 /* We're done when parent directory changes */
2813 * the EOF for the directory. To help future callers, we mark
2909 /* A directory's link resolves to a directory. */
2911 /* A directory's link ref is always inode's file id. */
2963 * due to the way directory hardlinks are implemented, the actual link
3033 /* Store unmangled name for the directory hint else it will
3127 /* We're done when parent directory changes */
3192 * Pack a uio buffer with directory entries from the catalog
3261 * Position the iterator at the directory's thread record.
3275 * Position the iterator at the directory's thread record.
3348 * transfers the previous directory entry found to the user
3351 * dummy values to copy the last directory entry stored in
3371 * during the enumeration by the catalog callback. Mark the directory's hint
3444 * Callback to establish directory position.
3445 * Called with position_state for each item in a directory.
3458 /* Make sure parent directory didn't change */
3732 * can resolve directory hardlinks in place).
3848 * buildrecord - build a default catalog directory or file record
4214 buildthread(void *keyp, void *recp, int std_hfs, int directory)
4224 if (directory)
4236 if (directory)
4345 * Determine if a catalog node record is a directory.
4355 * cat_lookup_dirlink - lookup a catalog record for directory hard link
4357 * NOT resolve directory hard link to its directory inode and return
4375 /* No directory hard links on standard HFS */
4409 /* Lookup resource fork for directory hard link */
4412 /* Lookup data fork, if any, for directory hard link */
4437 * cnode_update_dirlink - update the catalog node for directory hard link