Home
last modified time | relevance | path

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

12345678910

/freebsd/crypto/krb5/src/util/support/
H A Dmkstemp.c55 #if !defined S_ISDIR
57 #define S_ISDIR(MODE) (((MODE) & S_IFMT) == S_IFDIR) macro
59 #define S_ISDIR(MODE) (((MODE) & _S_IFMT) == _S_IFDIR) macro
102 if (!S_ISDIR(sbuf.st_mode)) {
/freebsd/bin/ln/
H A Dln.c162 if (!S_ISDIR(sb.st_mode)) in main()
240 if (S_ISDIR(sb.st_mode)) { in linkit()
261 if (isdir || (lstat(target, &sb) == 0 && S_ISDIR(sb.st_mode)) || in linkit()
262 (!hflag && stat(target, &sb) == 0 && S_ISDIR(sb.st_mode))) { in linkit()
320 if (Fflag && S_ISDIR(sb.st_mode)) { in linkit()
341 if (Fflag && S_ISDIR(sb.st_mode)) { in linkit()
/freebsd/contrib/diff/lib/
H A Dfile-type.h37 # undef S_ISDIR
66 # ifndef S_ISDIR
68 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
70 # define S_ISDIR(m) 0 macro
H A Dfile-type.c44 if (S_ISDIR (st->st_mode)) in file_type()
/freebsd/usr.bin/diff/
H A Ddiffdir.c314 (S_ISDIR(stb1.st_mode) ? "directory" : in diffit()
317 (S_ISDIR(stb2.st_mode) ? "directory" : in diffit()
345 if (S_ISDIR(stb1.st_mode) && S_ISDIR(stb2.st_mode)) { in diffit()
353 if (!S_ISREG(stb1.st_mode) && !S_ISDIR(stb1.st_mode)) in selectfile()
355 else if (!S_ISREG(stb2.st_mode) && !S_ISDIR(stb2.st_mode)) in selectfile()
H A Ddiff.c459 if (gotstdin && (S_ISDIR(stb1.st_mode) || S_ISDIR(stb2.st_mode))) in main()
462 if (S_ISDIR(stb1.st_mode) && S_ISDIR(stb2.st_mode)) { in main()
467 if (S_ISDIR(stb1.st_mode)) { in main()
472 if (S_ISDIR(stb2.st_mode)) { in main()
/freebsd/contrib/ntp/libntp/lib/isc/win32/include/isc/
H A Dstat.h53 #ifndef S_ISDIR
54 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
/freebsd/lib/libsecureboot/
H A Dveta.c88 if (stat(fbuf, &st) < 0 || S_ISDIR(st.st_mode)) in trust_dir_add()
106 if (S_ISDIR(st.st_mode)) in ve_trust_add()
/freebsd/contrib/ntp/sntp/libopts/compat/
H A Dwindows-config.h110 #ifndef S_ISDIR
112 # define S_ISDIR(mode) (((mode) & S_IFDIR) == S_IFDIR) macro
/freebsd/contrib/tcsh/
H A Dglob.c74 #ifndef S_ISDIR
75 #define S_ISDIR(a) (((a) & S_IFMT) == S_IFDIR) macro
211 if (stat(str, &st) == -1 || !S_ISDIR(st.st_mode)) in Opendir()
225 if (*fn != 0 && strend(fn)[-1] == '/' && !S_ISDIR(sb->st_mode)) in Lstat()
241 if (*fn != 0 && strend(fn)[-1] == '/' && !S_ISDIR(sb->st_mode)) in Stat()
508 (S_ISDIR(sbuf.st_mode) in glob2()
512 S_ISDIR(sbuf.st_mode)) in glob2()
606 if (*pathbuf->s && (Lstat(pathbuf->s, &sbuf) || !S_ISDIR(sbuf.st_mode) in glob3()
H A Dtc.os.h229 # undef S_ISDIR
240 # if !defined(S_ISDIR) && defined(S_IFDIR)
241 # define S_ISDIR(a) (((a) & S_IFMT) == S_IFDIR) macro
/freebsd/contrib/libarchive/unzip/
H A Dbsdunzip.c345 if (S_ISDIR(sb.st_mode)) in make_dir()
383 if (S_ISDIR(sb.st_mode)) { in make_parent()
787 if (!S_ISDIR(filetype) && !S_ISREG(filetype) && !S_ISLNK(filetype)) { in extract()
795 if (S_ISDIR(filetype) && j_opt) { in extract()
821 if (S_ISDIR(filetype)) in extract()
844 if (!S_ISDIR(filetype) && !S_ISREG(filetype) && !S_ISLNK(filetype)) { in extract_stdout()
852 if (S_ISDIR(filetype)) { in extract_stdout()
924 if (S_ISDIR(archive_entry_filetype(e))) in test()
/freebsd/contrib/tcp_wrappers/
H A Dtcpdmatch.c41 #ifndef S_ISDIR
42 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
112 } else if (!S_ISDIR(st.st_mode)) {
H A Dtcpdchk.c45 #ifndef S_ISDIR
46 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
131 } else if (!S_ISDIR(st.st_mode)) { in main()
/freebsd/sys/contrib/openzfs/cmd/zfs/
H A Dzfs_project.c73 if (!S_ISREG(st->st_mode) && !S_ISDIR(st->st_mode)) { in zfs_project_sanity_check()
79 if (!S_ISDIR(st->st_mode)) { in zfs_project_sanity_check()
306 if (ret || !S_ISDIR(st.st_mode) || zpc->zpc_dironly || in zfs_project_handle()
/freebsd/stand/common/
H A Dls.c91 if (stat(path, &sb) == 0 && !S_ISDIR(sb.st_mode)) { in command_ls()
194 if (!S_ISDIR(sb.st_mode)) { in ls_getdir()
/freebsd/crypto/krb5/src/plugins/kdb/db2/libdb2/include/
H A Ddb-int.h268 #ifndef S_ISDIR /* POSIX 1003.1 file type tests. */
269 #define S_ISDIR(m) ((m & 0170000) == 0040000) /* directory */ macro
/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_write_disk_secure.c193 assert(S_ISDIR(st.st_mode)); in DEFINE_TEST()
221 assert(S_ISDIR(st.st_mode)); in DEFINE_TEST()
294 assert(S_ISDIR(st.st_mode)); in DEFINE_TEST()
/freebsd/lib/libc/stdio/
H A Dremove.c47 if (S_ISDIR(sb.st_mode)) in remove()
/freebsd/bin/rm/
H A Drm.c353 if (S_ISDIR(sb.st_mode) && !dflag) { in rm_file()
368 else if (S_ISDIR(sb.st_mode)) in rm_file()
460 if (S_ISDIR(st.st_mode)) { in check2()
/freebsd/usr.bin/patch/
H A Dmkpath.c69 } else if (!S_ISDIR(sb.st_mode)) { in mkpath()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/tmpfile/
H A Dtmpfile_test.c32 if (!S_ISDIR(buf.st_mode)) { in main()
/freebsd/bin/cp/
H A Dcp.c240 if (r == -1 || !S_ISDIR(to_stat.st_mode)) { in main()
260 if (S_ISDIR(tmp_stat.st_mode) && Rflag) in main()
581 if (S_ISDIR(curr_stat->st_mode)) in copy()
639 } else if (!S_ISDIR(to_stat.st_mode)) { in copy()
/freebsd/crypto/heimdal/lib/krb5/
H A Dkuserok.c66 if (S_ISDIR(st.st_mode)) { in check_one_file()
126 if (!S_ISDIR(st.st_mode)) in check_directory()
/freebsd/contrib/ntp/sntp/libevent/sample/
H A Dhttp-server.c26 #ifndef S_ISDIR
27 #define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR) macro
239 if (S_ISDIR(st.st_mode)) { in send_document_cb()

12345678910