S_ISDIR
if (r == -1 || !S_ISDIR(to_stat.st_mode)) {
if (S_ISDIR(tmp_stat.st_mode) && Rflag)
if (S_ISDIR(curr_stat->st_mode))
} else if (!S_ISDIR(to_stat.st_mode)) {
if (!S_ISDIR(sb.st_mode))
if (S_ISDIR(sb.st_mode)) {
if (isdir || (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)) {
} else if (!S_ISDIR(sb.st_mode)) {
if (stat(argv[argc - 1], &sb) || !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) {
else if (S_ISDIR(sb.st_mode))
if (S_ISDIR(st.st_mode)) {
} else if (!S_ISDIR(statb.st_mode))
S_ISDIR(stbuf.st_mode))
if (S_ISDIR(s.st_mode) || geteuid() != 0)
return S_ISDIR(s.st_mode);
if (S_ISDIR(st.st_mode)) {
} else if (!S_ISDIR(st.st_mode))
if(S_ISDIR(st->st_mode)) {
if(S_ISDIR(fi[i].st.st_mode)) {
if (S_ISDIR(stb.st_mode) && iamrecursive) {
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(sb.st_mode)) {
if (!S_ISDIR(st.st_mode))
if (S_ISDIR(st.st_mode)) {
pathend[-1] != CHAR_SEP) && (S_ISDIR(sb.st_mode)
S_ISDIR(sb.st_mode)))) {
if (!S_ISDIR(st.st_mode)) {
#ifndef S_ISDIR /* POSIX 1003.1 file type tests. */
#ifndef S_ISDIR
isdir = S_ISDIR(st.st_mode);
if (!S_ISDIR(sbuf.st_mode)) {
#if !defined S_ISDIR
#ifndef S_ISDIR
if (S_ISDIR(st.st_mode)) {
pathend[-1] != SEP) && (S_ISDIR(sb.st_mode) ||
S_ISDIR(sb.st_mode)))) {
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))
#ifndef S_ISDIR
#if defined(S_ISDIR)
return S_ISDIR(st.st_mode);
#ifndef S_ISDIR
if (S_ISDIR(st.st_mode)) {
if (S_ISDIR(st.st_mode)) {
#ifndef S_ISDIR
if (S_ISDIR(st.st_mode))
#ifndef S_ISDIR
#ifndef S_ISDIR
if (!stat(buf, &st) && S_ISDIR(st.st_mode))
if (S_ISDIR(sbp->st_mode)) {
if (S_ISDIR(sbp->st_mode)) {
(follow < 0 && !S_ISDIR(sbp->st_mode))) {
if (S_ISDIR(sbp->st_mode)) {
(S_ISDIR(sb.st_mode) ||
S_ISDIR(sb.st_mode)))) {
(S_ISDIR(sb.st_mode) ||
S_ISDIR(sb.st_mode)))) {
if (S_ISDIR(sb.st_mode))
} else if (!S_ISDIR(sb.st_mode) && p != NULL) {
if (S_ISDIR(st.st_mode)) {
if (S_ISDIR(st.st_mode))
if (stat(fbuf, &st) < 0 || S_ISDIR(st.st_mode))
} else if (ret >= 0 && S_ISDIR(st.st_mode)) {
if (!S_ISDIR(sb.st_mode)) {
if (!S_ISDIR(sb.st_mode) && !S_ISREG(sb.st_mode)) {
else if (S_ISDIR(mode))
if ((stat(snapname, &sb) < 0) || !S_ISDIR(sb.st_mode)) {
if (S_ISDIR(sb.st_mode))
!S_ISDIR(dp->dp2.di_mode)) {
} else if (!S_ISDIR(snapdir.st_mode)) {
else if (S_ISDIR(mode))
if (!S_ISDIR(stbufp->st_mode))
if (!S_ISDIR(target_stat.st_mode) && !S_ISREG(target_stat.st_mode))
if (S_ISDIR(st.st_mode)) {
} else if (S_ISDIR(sb.st_mode)) {
if (!S_ISDIR(sb.st_mode)) {
if (stat(path, &sb) == 0 && !S_ISDIR(sb.st_mode)) {
if (!S_ISDIR(sb.st_mode))
if (S_ISDIR(hf->hf_fd)) {
if (! S_ISDIR(fp->f_di.di_mode)) {
if (!S_ISDIR(sb.st_mode))
if (!S_ISDIR(sb.st_mode)) {
if (!S_ISDIR(tf->tf_stat.st_mode) &&
if (S_ISDIR(tf->tf_stat.st_mode)) {
if (S_ISDIR(st.st_mode))
pathseg, &st) == 0 && 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)
if (S_ISDIR(mode))
assert(S_ISDIR(info.st_mode));
ATF_REQUIRE(S_ISDIR(kfile.kf_un.kf_file.kf_file_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)) {
(S_ISDIR(stb1.st_mode) ? "directory" :
(S_ISDIR(stb2.st_mode) ? "directory" :
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 (fstat(source, &st) == 0 && S_ISDIR(st.st_mode))
if (S_ISDIR(entry->fts_statp->st_mode)) {
if (S_ISDIR(entry->fts_statp->st_mode)) {
if ((fstat(fileno(f), &st) == -1) || (S_ISDIR(st.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)) {
} else if (!S_ISDIR(sb.st_mode))
if (!no_target && S_ISDIR(to_sb.st_mode)) {
} else if (!S_ISDIR(sb.st_mode) && !S_ISREG(sb.st_mode)) {
if (S_ISDIR(cf->cf_stat.st_mode)) {
if (!S_ISDIR(sb.st_mode)) {
} else if (S_ISDIR(file_dev->sb.st_mode)) {
} else if (!S_ISDIR(sb.st_mode)) {
if (!S_ISDIR(sb.st_mode))
} else if (!S_ISDIR(buf.st_mode))
if (S_ISDIR(st.st_mode))
return S_ISDIR(buf.st_mode);
if (!S_ISDIR(st.st_mode)) {
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(sb.st_mode))
if (S_ISDIR(cur->type) &&
S_ISDIR(stbuf.st_mode)) {
if (!dot && S_ISDIR(cur->type)) {
if (S_ISDIR(mode))
!S_ISDIR(stb.st_mode) &&
else if (!S_ISDIR(st.st_mode))
if (stat(fullpath, &st) == 0 && S_ISDIR(st.st_mode))
if (!S_ISDIR(sb.st_mode))
if (!S_ISDIR(sb.st_mode))
if (!S_ISDIR(sb.st_mode))
if (S_ISDIR(st.st_mode)) {
if (!S_ISDIR(st.st_mode))
if (!S_ISDIR(st.st_mode))
if (!S_ISDIR(st.st_mode))
} else if (!S_ISDIR(st.st_mode)) {
!S_ISDIR(st.st_mode) &&
if (S_ISDIR(st.st_mode))
else if (S_ISDIR(mode))
if (S_ISDIR(st.st_mode)) {
if (S_ISDIR(statbuf.st_mode)) {
!S_ISDIR(st.st_mode)) { /* is it a directory */
if (S_ISREG(sb.st_mode) || S_ISDIR(sb.st_mode)) {
if (stat(dompath, &statbuf) < 0 || !S_ISDIR(statbuf.st_mode))