S_IFDIR
case S_IFDIR:
if ((mode & S_IFMT) == S_IFDIR) {
case S_IFDIR:
case S_IFDIR:
else if ((sb.st_mode & S_IFMT) != S_IFDIR) {
case S_IFDIR:
arcn->sb.st_mode |= S_IFDIR;
arcn->sb.st_mode |= S_IFDIR;
arcn->sb.st_mode |= S_IFDIR;
case S_IFDIR:
return (sbuf.st_mode & S_IFDIR);
if (omode & (S_IFDIR|S_IXUSR|S_IXGRP|S_IXOTH))
case S_IFDIR: /* directory */
if ((sb.st_mode & S_IFDIR) &&
case S_IFDIR:
case S_IFDIR:
case S_IFDIR:
case S_IFDIR:
if (fs == NULL && (st.st_mode & S_IFMT) == S_IFDIR)
sb->st_mode |= S_IFDIR;
sb->st_mode = f->de.attr & FA_DIR ? S_IFDIR | 0555 : S_IFREG | 0444;
return(S_IFDIR);
return(S_IFDIR);
hf->mode = 0755 | S_IFDIR;
0, S_IFREG, S_IFDIR, S_IFBLK, S_IFCHR, S_IFLNK, 0 };
0, S_IFREG, S_IFDIR, S_IFBLK, S_IFCHR, S_IFLNK,
case S_IFDIR: /* special directories support for HAMMER */
mode |= S_IFDIR;
inop->inode.iso_mode = S_IFDIR;
(S_IRWXU|S_IRWXG|S_IRWXO)) | S_IFDIR;
if (sb.st_mode & S_IFDIR)
mask = S_IFDIR;
return S_IFDIR;
fsp->mode |= denode.de_Attributes & ATTR_DIRECTORY ? S_IFDIR : S_IFREG;
case S_IFDIR: sdata = "/"; break;
case S_IFDIR: sdata = "Directory"; break;
case S_IFDIR:
if ((sb.st_mode & S_IFMT) != S_IFDIR)
(sb.st_mode & S_IFMT) != S_IFDIR ||
(sb.st_mode & S_IFMT) == S_IFDIR) {
if (target_sb->st_mode & S_IFDIR && rmdir(to_name) ==
if (target_sb->st_mode & S_IFDIR && rmdir(to_name) == -1) {
if (to_sb.st_mode & S_IFDIR && rmdir(to_name) == -1)
else if ((buf.st_mode & S_IFMT) != S_IFDIR) {
return (st.st_mode & S_IFDIR);
if (!(sb.st_mode & S_IFDIR))
if (!(sb.st_mode & S_IFDIR))
if ((statb.st_mode & S_IFMT) == S_IFDIR) {
to->node->inode->st.st_mode |= S_IFDIR;
tfsnode->type |= S_IFDIR;
temp->node->type |= S_IFDIR;
!(writenode->node->type & S_IFDIR)) {
if (node->type == S_IFDIR)
if (node->type == S_IFDIR)
case S_IFDIR: /* walk the tree */
node = create_node(".", S_IFDIR, NULL, &mtree_global);
node->type = S_IFDIR;
type = (node->symlink != NULL) ? S_IFLNK : S_IFDIR;
if (node->type != S_IFDIR) {
type = (def == false || IS_DOT(name)) ? S_IFDIR : 0;
if (node->type != S_IFDIR)
node = create_node(".", S_IFDIR, parent, parent);
if (dirnode->type != S_IFDIR)
if (curfsnode->type == S_IFDIR) {
if (curfsnode->type != S_IFDIR)
assert (cur->type == S_IFDIR);
return S_IFDIR;
case S_IFDIR: