S_ISDIR
if (r == -1 || !S_ISDIR(to_stat.st_mode)) {
if (S_ISDIR(tmp_stat.st_mode) && Rflag)
if (S_ISDIR(curr->fts_statp->st_mode))
if (!S_ISDIR(curr->fts_statp->st_mode) &&
S_ISDIR(to_stat.st_mode)) {
} else if (!S_ISDIR(to_stat.st_mode)) {
if (S_ISDIR(dstat->st_mode)) {
if (S_ISLNK(stat1->st_mode) || S_ISDIR(stat1->st_mode)) {
if (st2Valid && !S_ISDIR(stat1->st_mode) && S_ISDIR(st2.st_mode)) {
if (S_ISDIR(stat1->st_mode)) {
if (!st2Valid || S_ISDIR(st2.st_mode) == 0) {
if (!S_ISDIR(sb.st_mode))
if (S_ISDIR(sb.st_mode)) {
(lstat(target, &sb) == 0 && S_ISDIR(sb.st_mode)) ||
(!hflag && stat(target, &sb) == 0 && S_ISDIR(sb.st_mode))) {
if (Fflag && S_ISDIR(sb.st_mode)) {
if (Fflag && S_ISDIR(sb.st_mode)) {
if (stat(path, &sb) == 0 && S_ISDIR(sb.st_mode))
if (stat(argv[argc - 1], &sb) || !S_ISDIR(sb.st_mode)) {
if (target_is_file && S_ISDIR(sb.st_mode)) {
if (S_ISDIR(sb.st_mode)) {
if (S_ISDIR(arsb.st_mode)) {
if (!S_ISDIR(sb.st_mode)) {
if (S_ISDIR(sb.st_mode)) {
if (S_ISDIR(sb.st_mode)) {
if (S_ISDIR(sb.st_mode)) {
} else if (!S_ISDIR(sb.st_mode)) {
if (S_ISDIR(sb.st_mode) && !dflag) {
if (S_ISDIR(sb.st_mode))
if (S_ISDIR(st.st_mode)) {
} else if (!S_ISDIR(statb.st_mode))
if (S_ISDIR(s.st_mode) || geteuid() != 0)
return S_ISDIR(s.st_mode);
return S_ISDIR(st.st_mode);
#ifndef S_ISDIR
if (S_ISDIR(st.st_mode)) {
src_is_dir = S_ISDIR(st.st_mode);
dst_is_dir = r == 0 && S_ISDIR(st.st_mode);
if (stat(targ, &stb) == 0 && S_ISDIR(stb.st_mode))
if (!S_ISDIR(stb.st_mode)) {
if (S_ISDIR(stb.st_mode))
if (!S_ISDIR(st.st_mode))
if (!S_ISDIR(dirattrib->perm)) {
if (S_ISDIR(a->perm)) {
if (!S_ISDIR(sb.st_mode)) {
if (!S_ISDIR(dirattrib.perm)) {
if (S_ISDIR(sb.st_mode)) {
if (!S_ISDIR(dirattrib->perm)) {
if (!S_ISDIR(newdir.perm)) {
if (S_ISDIR(a->perm)) {
return S_ISDIR(a.perm);
if (fudge_stat(s, &sb) == 0 && S_ISDIR(sb.st_mode)) {
S_ISDIR(g.gl_statv[0]->st_mode)) {
if (!S_ISDIR(aa.perm)) {
return S_ISDIR(sb.st_mode);
(S_ISDIR(sb.st_mode) == 0))
if (S_ISDIR(sbp->st_mode)) {
pathend[-1] != SEP) && (S_ISDIR(sb.st_mode)
S_ISDIR(sb.st_mode)))) {
if (!S_ISDIR(statb.st_mode)) {
if (!S_ISDIR(sbuf.st_mode)) {
if (S_ISDIR(sb.st_mode))
} else if (!S_ISDIR(sb.st_mode) && p != NULL) {
pathend[-1] != SEP) && (S_ISDIR(sb.st_mode) ||
S_ISDIR(sb.st_mode)))) {
if (S_ISDIR(sb.st_mode)) {
if (!S_ISDIR(sb.st_mode))
if (S_ISDIR(st.st_mode) || guest) {
code = lstat(filename, &st) == 0 && S_ISDIR(st.st_mode) ? 212 : 213;
if (S_ISDIR(st.st_mode)) {
} else if (!S_ISDIR(st.st_mode))
if (S_ISDIR(sb.st_mode))
else if (S_ISDIR(st.st_mode))
if (S_ISDIR(st.st_mode)) {
} else if (S_ISDIR(st.st_mode)) {
if (!S_ISDIR(st.st_mode)) {
!S_ISDIR(st.st_mode)) {
} else if (S_ISDIR(st.st_mode)) {
} else if (!S_ISDIR(st.st_mode)) {
if (RecurseOpt && S_ISDIR(st->st_mode)) {
if (RecurseOpt && S_ISDIR(st->st_mode)) {
if (!S_ISDIR(sb.st_mode))
if (lstat(dirp, &sb) < 0 || !S_ISDIR(sb.st_mode))
if (lstat(dirp, &sb) < 0 || !S_ISDIR(sb.st_mode))
(!S_ISDIR(stb.st_mode) &&
!S_ISDIR(mfs_mtstat.st_mode)
if (!S_ISDIR(sb.st_mode)) {
} else if (S_ISDIR(st.st_mode)) {
if (S_ISDIR(sb.st_mode)) {
if (stat(base, &st) == 0 && S_ISDIR(st.st_mode)) {
if (! S_ISDIR(fp->f_di.di_mode)) {
if (S_ISDIR(st.st_mode)) {
if (S_ISDIR(mode))
if (!S_ISDIR(st.st_mode)) {
&& (S_ISREG(mode) || S_ISDIR(mode)))
(ip->i_nlink < 2 || !S_ISDIR(ip->i_mode))) {
(S_ISDIR(ip->i_mode) || S_ISREG(ip->i_mode))) {
if (S_ISDIR(ip->i_mode) &&
if (!S_ISDIR(ip->i_mode) || ip->i_nlink > 2)
else if (S_ISDIR(mode))
return S_ISDIR(buf.st_mode);
if (S_ISDIR(st.st_mode)) {
if (gotstdin && (S_ISDIR(stb1.st_mode) || S_ISDIR(stb2.st_mode)))
if (S_ISDIR(stb1.st_mode) && S_ISDIR(stb2.st_mode)) {
if (S_ISDIR(stb1.st_mode)) {
if (S_ISDIR(stb2.st_mode)) {
if (S_ISDIR(stb1.st_mode) && S_ISDIR(stb2.st_mode)) {
if (!S_ISREG(stb1.st_mode) && !S_ISDIR(stb1.st_mode))
else if (!S_ISREG(stb2.st_mode) && !S_ISDIR(stb2.st_mode))
if (S_ISDIR(stb1.st_mode) != S_ISDIR(stb2.st_mode))
return (S_ISDIR(stb1.st_mode) ? D_MISMATCH1 : D_MISMATCH2);
if (lstat(s1, &st) < 0 || !S_ISDIR(st.st_mode)) {
if (S_ISDIR(st.st_mode)) {
if (S_ISDIR(entry->fts_statp->st_mode)) {
if (S_ISDIR(entry->fts_statp->st_mode)) {
if (S_ISDIR(sb.st_mode)) {
if (S_ISDIR(stb.st_mode) || !S_ISREG(stb.st_mode)) {
errno = S_ISDIR(stb.st_mode) ? EISDIR : EINVAL;
return (S_ISDIR(sbuf.st_mode));
} else if (!S_ISDIR(sb.st_mode)) {
if (stat(fullname, &filestat) == 0 && S_ISDIR(filestat.st_mode)) {
if (S_ISDIR(sb.st_mode))
if (S_ISDIR(sb.st_mode)) {
if (!S_ISDIR(filetype) && !S_ISREG(filetype) && !S_ISLNK(filetype)) {
if (S_ISDIR(filetype) && j_opt) {
if (S_ISDIR(filetype))
if (!S_ISDIR(filetype) && !S_ISREG(filetype) && !S_ISLNK(filetype)) {
if (S_ISDIR(filetype)) {
if (S_ISDIR(archive_entry_filetype(e)))
if (stat(path, &sb) == 0 && S_ISDIR(sb.st_mode))
} else if (!S_ISDIR(sb.st_mode))
if (!no_target && S_ISDIR(to_sb.st_mode)) {
if (!S_ISDIR(sb.st_mode))
return(S_ISDIR(m));
if ((S_ISDIR(root->type)) && (root->name[0] == '.')
if (!S_ISDIR(iterator->type) ||
if (S_ISDIR(iterator->type)) {
if (S_ISDIR(cn->node->type)) {
if (S_ISDIR(child->node->type)) {
if (S_ISDIR(child->node->type))
temp, sizeof(temp), !(S_ISDIR(newnode->node->type)));
if (S_ISDIR(newnode->node->type))
if (!(S_ISDIR(node->type)))
if (S_ISDIR(DIP(dp, mode))) {
assert (! S_ISDIR(cur->type));
if (S_ISDIR(node->type))
if (S_ISDIR(node->type))
assert(S_ISDIR(root->type));
if (!S_ISDIR(st.st_mode))
assert(!S_ISDIR(cur->type));
if (S_ISDIR(cur->type)) {
if (!S_ISDIR(sb.st_mode))
if (S_ISDIR(cur->type) &&
S_ISDIR(stbuf.st_mode)) {
if (S_ISDIR(cur->type)) {
if (S_ISDIR(mode))
if (!S_ISDIR(p->fts_statp->st_mode))
S_ISDIR(p->fts_statp->st_mode) ? "" : " ", vispath(p->fts_name));
(dflag && S_ISDIR(p->fts_statp->st_mode))) {
if (S_ISDIR((*a)->fts_statp->st_mode)) {
if (!S_ISDIR((*b)->fts_statp->st_mode))
} else if (S_ISDIR((*b)->fts_statp->st_mode))
if ((S_ISDIR(p->fts_statp->st_mode)
S_ISDIR(statbuf.st_mode))
else if (!S_ISDIR(st.st_mode))
if (S_ISDIR(st.st_mode)) {
if (S_ISDIR(st.st_mode)) { /* Recurse for this */
!S_ISDIR(st.st_mode) &&
} else if (!S_ISDIR(st.st_mode))
} else if (!S_ISDIR(st.st_mode))
if (stat(cnf->dotdir = arg->val, &st) == -1 || !S_ISDIR(st.st_mode))
} else if (!S_ISDIR(st.st_mode))
if (S_ISDIR(st.st_mode)) /* Directory - recurse */
if (S_ISDIR(statbuf.st_mode)) {
if (stat(dompath, &statbuf) < 0 || !S_ISDIR(statbuf.st_mode))