Home
last modified time | relevance | path

Searched refs:S_ISDIR (Results 1 – 25 of 146) sorted by relevance

123456

/illumos-gate/usr/src/cmd/sendmail/db/os/
H A Dos_stat.c43 #if !defined(S_ISDIR) || defined(STAT_MACROS_BROKEN)
45 #define S_ISDIR(m) (_S_IFDIR & (m)) macro
47 #define S_ISDIR(m) (((m) & 0170000) == 0040000) macro
51 *isdirp = S_ISDIR(sb.st_mode);
/illumos-gate/usr/src/cmd/chmod/
H A Dcommon.c241 if (lcheck == 1 && !S_ISDIR(new_mode)) { in newmode_common()
254 !S_ISDIR(new_mode)) { in newmode_common()
271 !S_ISDIR(new_mode)) { in newmode_common()
285 !S_ISDIR(new_mode)) { in newmode_common()
324 !S_ISDIR(new_mode)) { in newmode_common()
376 !S_ISDIR(new_mode)) { in newmode_common()
420 !S_ISDIR(new_mode)) { in newmode_common()
444 !S_ISDIR(new_mode)) { in newmode_common()
/illumos-gate/usr/src/cmd/tcpd/
H A Dtcpdmatch.c41 #ifndef S_ISDIR
42 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
105 } else if (!S_ISDIR(st.st_mode)) {
H A Dtcpdchk.c43 #ifndef S_ISDIR
44 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
131 } else if (!S_ISDIR(st.st_mode)) {
/illumos-gate/usr/src/cmd/acpi/acpidump/
H A Dosunixdir.c289 if ((S_ISDIR (temp_stat.st_mode) in AcpiOsGetNextFilename()
292 ((!S_ISDIR (temp_stat.st_mode) in AcpiOsGetNextFilename()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/
H A Dmode.c76 #ifdef S_ISDIR in main()
77 if (!S_ISDIR(X_IFDIR)) idtype = 0; in main()
/illumos-gate/usr/src/cmd/zfs/
H A Dzfs_project.c76 if (!S_ISREG(st->st_mode) && !S_ISDIR(st->st_mode)) { in zfs_project_sanity_check()
82 if (!S_ISDIR(st->st_mode)) { in zfs_project_sanity_check()
288 if (ret || !S_ISDIR(st.st_mode) || zpc->zpc_dironly || in zfs_project_handle()
/illumos-gate/usr/src/tools/cscope-fast/
H A Ddir.c87 S_ISDIR(statstruct.st_mode)) { in sourcedir()
121 S_ISDIR(statstruct.st_mode)) { in includedir()
254 S_ISDIR(statstruct.st_mode)) { in makefilelist()
/illumos-gate/usr/src/boot/common/
H A Dls.c93 if (stat(path, &sb) == 0 && !S_ISDIR(sb.st_mode)) { in command_ls()
197 if (!S_ISDIR(sb.st_mode)) { in ls_getdir()
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/include/
H A Ddb-int.h290 #ifndef S_ISDIR /* POSIX 1003.1 file type tests. */
291 #define S_ISDIR(m) ((m & 0170000) == 0040000) /* directory */ macro
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_traverse.c210 if (!S_ISDIR(st->st_mode)) in fs_getstat()
264 if (S_ISDIR(st.st_mode)) in fs_getdents()
375 if (!S_ISDIR(pst.st_mode)) { in traverse_post()
474 if (S_ISDIR(est.st_mode)) { in traverse_post()
717 if (!S_ISDIR(dent->fd_attr.st_mode)) { in traverse_level_nondir()
794 if (!S_ISDIR(pst.st_mode)) { in traverse_level()
938 if (!S_ISDIR(est.st_mode)) in traverse_level()
/illumos-gate/usr/src/tools/protocmp/
H A Ddepend.c199 if (!S_ISDIR(sbuf.st_mode)) { in find_dependencies()
207 if (!S_ISDIR(sbuf.st_mode)) { in find_dependencies()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dmknod.c44 if (S_ISDIR(mode))
H A Drmdir.c45 if (!S_ISDIR(st.st_mode))
/illumos-gate/usr/src/cmd/fs.d/dev/
H A Dmount.c325 if (! S_ISDIR(st.st_mode)) { in main()
336 if (! S_ISDIR(st.st_mode)) { in main()
/illumos-gate/usr/src/cmd/mkdir/
H A Dmkdir.c164 if (S_ISDIR(buf.st_mode)) { in main()
179 if (! S_ISDIR(buf.st_mode)) { in main()
/illumos-gate/usr/src/cmd/oamuser/lib/
H A Dfile.c41 if( S_ISDIR( statbuf.st_mode )) {
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dcp.c373 if (!S_ISDIR(st.st_mode)) in visit()
416 …else if (state->update && !S_ISDIR(st.st_mode) && (unsigned long)ent->fts_statp->st_mtime < (unsig… in visit()
443 if (S_ISDIR(st.st_mode)) in visit()
567 if (errno != EXDEV && (rm || S_ISDIR(ent->fts_statp->st_mode))) in visit()
591 else if (state->op == CP || S_ISREG(ent->fts_statp->st_mode) || S_ISDIR(ent->fts_statp->st_mode)) in visit()
965 if (!(state->directory = !stat(file, &st) && S_ISDIR(st.st_mode)) && argc > 1) in b_cp()
/illumos-gate/usr/src/lib/lib9p/common/backend/
H A Dfs.c521 if (!S_ISDIR(st->st_mode)) in fs_pdir()
580 if (!S_ISDIR(st->st_mode)) in fs_nde()
664 if (S_ISDIR(buf->st_mode)) in dostat()
766 if (S_ISDIR(buf->st_mode)) in generate_qid()
979 else if (!S_ISDIR(st.st_mode)) in fs_attach()
1334 if (S_ISDIR(first.st_mode)) { in fs_iopen()
1843 if (error == EEXIST && S_ISDIR(cst.st_mode)) in fs_remove()
1938 if (!S_ISDIR(st.st_mode)) { in fs_walk()
2896 if (S_ISDIR(fst.st_mode)) in fs_link()
2975 if (!S_ISDIR(odst.st_mode)) in fs_renameat()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dmodex.c59 else if (S_ISDIR(i)) x |= X_IFDIR; in modex()
/illumos-gate/usr/src/cmd/oamuser/user/
H A Dhomedir.c90 if ((stat(pdir, &stbuf) != 0) || !S_ISDIR(stbuf.st_mode)) { in create_home()
225 if ((stat(dir, &stbuf) != 0) || !S_ISDIR(stbuf.st_mode)) in rm_homedir()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/dir/
H A Dopendir.c57 !S_ISDIR(st.st_mode) && (errno = ENOTDIR) ||
/illumos-gate/usr/src/lib/libresolv2/common/bsd/
H A Dmktemp.c111 if (!S_ISDIR(sbuf.st_mode)) { in gettemp()
/illumos-gate/usr/src/cmd/ldap/common/
H A Dfileurl.c291 } else if (S_ISDIR(fstats.st_mode)) { in ldaptool_berval_from_ldif_value()
308 !S_ISDIR(fstats.st_mode)) { /* get value from file */ in ldaptool_berval_from_ldif_value()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dsafechown.c37 if (!S_ISDIR(fdbuf.st_mode) && fdbuf.st_nlink != 1) { in safechown()

123456