Searched refs:S_ISDIR (Results 1 - 25 of 58) sorted by relevance

123

/ast/src/lib/libast/comp/
H A Dmknod.c44 if (S_ISDIR(mode))
H A Drmdir.c45 if (!S_ISDIR(st.st_mode))
/ast/src/lib/libast/string/
H A Dmodex.c59 else if (S_ISDIR(i)) x |= X_IFDIR;
H A Dfmtls.c101 if (S_ISDIR(st->st_mode))
H A Dstrperm.c113 if (!S_ISDIR(perm) && !(perm & (S_IXUSR|S_IXGRP|S_IXOTH)))
/ast/src/lib/libast/dir/
H A Dopendir.c57 !S_ISDIR(st.st_mode) && (errno = ENOTDIR) ||
H A Dgetdents.c62 if (!S_ISDIR(st.st_mode))
/ast/src/cmd/at/
H A Dat.h54 #define AT_DIR_OK(d) (S_ISDIR((d)->st_mode)&&(((d)->st_mode)&S_IPERM)==AT_DIR_MODE)
62 #define AT_DIR_OK(d) (S_ISDIR((d)->st_mode))
76 #define AT_DIR_OK(d) (S_ISDIR((d)->st_mode)&&(((d)->st_mode)&S_IPERM)==AT_DIR_MODE)
/ast/src/lib/libast/features/
H A Dmode.c76 #ifdef S_ISDIR
77 if (!S_ISDIR(X_IFDIR)) idtype = 0;
80 printf("#define S_ISDIR(m) (S_ITYPE(m)==S_IFDIR)\n");
82 printf("#define S_ISDIR(m) 0\n");
/ast/src/cmd/3d/
H A Dfstat3d.c73 if (S_ISDIR(st->st_mode))
116 if (S_ISDIR(st->st_mode))
H A Dlstat3d.c83 if (S_ISDIR(st->st_mode))
116 if (S_ISDIR(st->st_mode))
H A Dstat3d.c99 if (S_ISDIR(st->st_mode))
132 if (S_ISDIR(st->st_mode))
H A Dchdir3d.c37 if (!S_ISDIR(state.path.st.st_mode))
/ast/src/cmd/cs/vcs_src/
H A Dvcs_replica.c80 if (stat(dirbuf, &st) || !S_ISDIR(st.st_mode))
145 if (stat(dirbuf, &st) || !S_ISDIR(st.st_mode))
H A Difs_func.c206 return( stat( pPath, &St ) == 0 && S_ISDIR( St.st_mode ) );
/ast/src/lib/libcs/
H A Dcsinfo.c43 else if (!strchr(file, '/') || stat(file, &st) || S_ISDIR(st.st_mode) || !(sp = tokline(file, SF_READ, line)))
H A Dcspath.c73 if (!subp && S_ISDIR(tst.st_mode) && !streq(path, "/dev/fd"))
/ast/src/lib/libast/path/
H A Dpathexists.c125 if (!S_ISDIR(st.st_mode))
H A Dpathfind.c34 #define directory(p,s) (stat((p),(s))>=0&&S_ISDIR((s)->st_mode))
/ast/src/cmd/ie/
H A Dio.h45 #ifndef S_ISDIR
46 # define S_ISDIR(m) (((m)&S_IFMT)==S_IFDIR) macro
47 #endif /* S_ISDIR */
/ast/src/cmd/pack/
H A Dpack.c146 else if(S_ISDIR(statb.st_mode))
H A Dunpack.c159 else if(S_ISDIR(statb.st_mode))
/ast/src/lib/libtksh/tcl/
H A DtclUnixFile.c691 if ((stat(dirName, &statBuf) != 0) || !S_ISDIR(statBuf.st_mode)) {
778 && S_ISDIR(statBuf.st_mode)) {
/ast/src/lib/libcmd/
H A Dcp.c373 if (!S_ISDIR(st.st_mode))
416 else if (state->update && !S_ISDIR(st.st_mode) && (unsigned long)ent->fts_statp->st_mtime < (unsigned long)st.st_mtime)
443 if (S_ISDIR(st.st_mode))
567 if (errno != EXDEV && (rm || S_ISDIR(ent->fts_statp->st_mode)))
591 else if (state->op == CP || S_ISREG(ent->fts_statp->st_mode) || S_ISDIR(ent->fts_statp->st_mode))
965 if (!(state->directory = !stat(file, &st) && S_ISDIR(st.st_mode)) && argc > 1)
/ast/src/lib/libast/sfio/
H A Dsfsetbuf.c244 if(S_ISDIR(st.st_mode) || (Sfoff_t)st.st_size < (Sfoff_t)SF_GRAIN)
246 if(S_ISREG(st.st_mode) || S_ISDIR(st.st_mode))

Completed in 29 milliseconds

123