Searched refs:st_mode (Results 51 - 75 of 586) sorted by relevance

1234567891011>>

/freebsd-current/contrib/tcp_wrappers/
H A Dinetcf.c175 } else if ((st.st_mode & 0100) == 0) {
206 if ((st.st_mode & 06000) != 0)
224 } else if ((st.st_mode & 0100) == 0) {
232 } else if ((st.st_mode & 0100) == 0) {
/freebsd-current/usr.sbin/trim/
H A Dtrim.c183 if (S_ISREG(sb.st_mode) || S_ISDIR(sb.st_mode)) {
188 if (!S_ISCHR(sb.st_mode) && !S_ISBLK(sb.st_mode))
/freebsd-current/lib/libc/gen/
H A Dctermid.c57 if (stat(_PATH_TTY, &sb) == 0 && S_ISCHR(sb.st_mode))
/freebsd-current/usr.bin/diff/
H A Ddiff.c439 stb2.st_mode = stb1.st_mode;
448 if (stb1.st_mode == 0)
449 stb1.st_mode = stb2.st_mode;
451 if (gotstdin && (S_ISDIR(stb1.st_mode) || S_ISDIR(stb2.st_mode)))
454 if (S_ISDIR(stb1.st_mode) && S_ISDIR(stb2.st_mode)) {
459 if (S_ISDIR(stb1.st_mode)) {
[all...]
/freebsd-current/crypto/openssh/
H A Dsshbuf-io.c46 if ((st.st_mode & (S_IFSOCK|S_IFCHR|S_IFIFO)) == 0 &&
65 if ((st.st_mode & (S_IFSOCK|S_IFCHR|S_IFIFO)) == 0 &&
/freebsd-current/contrib/wireguard-tools/
H A Dgenkey.c86 if (!fstat(STDOUT_FILENO, &stat) && S_ISREG(stat.st_mode) && stat.st_mode & S_IRWXO)
/freebsd-current/tools/regression/priv/
H A Dpriv_vfs_clearsugid.c79 if (!(sb.st_mode & S_ISUID))
83 if (sb.st_mode & S_ISUID)
/freebsd-current/tools/regression/tmpfs/
H A Dt_mount60 [ ${st_mode} = 040755 ] || die
/freebsd-current/usr.bin/which/
H A Dwhich.c110 S_ISREG(fin.st_mode) &&
112 (fin.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) != 0)) {
/freebsd-current/contrib/diff/src/
H A Dsystem.h279 (((S_ISBLK ((s)->st_mode) && S_ISBLK ((t)->st_mode)) \
280 || (S_ISCHR ((s)->st_mode) && S_ISCHR ((t)->st_mode))) \
321 ((s)->st_mode == (t)->st_mode \
/freebsd-current/crypto/heimdal/appl/ftp/ftpd/
H A Dls.c159 if(S_ISDIR(st->st_mode)) {
163 else if(S_ISCHR(st->st_mode))
165 else if(S_ISBLK(st->st_mode))
167 else if(S_ISREG(st->st_mode)) {
169 if(st->st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))
172 else if(S_ISFIFO(st->st_mode)) {
176 else if(S_ISLNK(st->st_mode)) {
180 else if(S_ISSOCK(st->st_mode)) {
185 else if(S_ISWHT(st->st_mode)) {
195 strcpy(file->mode + 1, x[(st->st_mode
[all...]
/freebsd-current/bin/cp/
H A Dcp.c212 if (r == -1 || !S_ISDIR(to_stat.st_mode)) {
232 if (S_ISDIR(tmp_stat.st_mode) && Rflag)
425 mode = curr->fts_statp->st_mode;
444 if (S_ISDIR(curr->fts_statp->st_mode))
452 switch (curr->fts_statp->st_mode & S_IFMT) {
488 mode = curr->fts_statp->st_mode | S_IRWXU;
511 } else if (!S_ISDIR(to_stat.st_mode)) {
/freebsd-current/contrib/libarchive/libarchive/test/
H A Dtest_write_disk.c57 st.st_mode &= ~S_ISGID;
58 assertEqualInt(st.st_mode & MODE_MASK,
157 failure("st.st_mode=%o archive_entry_mode(ae)=%o",
158 st.st_mode, archive_entry_mode(ae));
160 assertEqualInt(st.st_mode, (archive_entry_mode(ae) & ~UMASK));
183 failure("st.st_mode=%o archive_entry_mode(ae)=%o",
184 st.st_mode, archive_entry_mode(ae));
186 assertEqualInt(st.st_mode, (archive_entry_mode(ae) & ~UMASK));
231 failure("st.st_mode=%o archive_entry_mode(ae)=%o",
232 st.st_mode, archive_entry_mod
[all...]
/freebsd-current/stand/userboot/test/
H A Dtest.c195 if (!S_ISDIR(tf->tf_stat.st_mode) &&
196 !S_ISREG(tf->tf_stat.st_mode) &&
197 !S_ISLNK(tf->tf_stat.st_mode))
201 if (!S_ISLNK(tf->tf_stat.st_mode)) {
207 if (S_ISDIR(tf->tf_stat.st_mode)) {
218 } else if (S_ISREG(tf->tf_stat.st_mode)) {
227 } else if (S_ISLNK(tf->tf_stat.st_mode)) {
354 stp->st_mode = tf->tf_stat.st_mode;
/freebsd-current/sbin/mount/
H A Dgetmntopts.c128 if (!S_ISDIR(sb.st_mode)) {
142 if (!S_ISDIR(sb.st_mode) && !S_ISREG(sb.st_mode)) {
165 if (S_ISCHR(devstat.st_mode) || S_ISBLK(devstat.st_mode))
/freebsd-current/contrib/netbsd-tests/lib/libc/c063/
H A Dt_fchmodat.c72 ATF_REQUIRE(st.st_mode = 0600);
94 ATF_REQUIRE(st.st_mode = 0600);
183 ATF_REQUIRE(st.st_mode = 0600);
/freebsd-current/contrib/netbsd-tests/lib/libc/sys/
H A Dt_mknod.c159 if (S_ISCHR(st.st_mode) == 0)
169 if (S_ISBLK(st.st_mode) == 0)
182 if (S_ISREG(st.st_mode) == 0)
/freebsd-current/tests/sys/fifo/
H A Dfifo_create.c128 if (!(S_ISFIFO(fifosb.st_mode))) {
239 if (sb.st_mode != ptp->pt_mode) {
243 ptp->pt_reqmode, ptp->pt_mode, sb.st_mode);
/freebsd-current/tools/regression/aio/aiop/
H A Daiop.c179 if (S_ISREG(sb.st_mode)) {
181 } else if (S_ISBLK(sb.st_mode) || S_ISCHR(sb.st_mode)) {
/freebsd-current/lib/libufs/
H A Dtype.c115 if (ret >= 0 && S_ISREG(st.st_mode)) {
118 } else if (ret >= 0 && S_ISCHR(st.st_mode)) {
132 } else if (ret >= 0 && S_ISDIR(st.st_mode)) {
/freebsd-current/sys/contrib/openzfs/lib/libzutil/os/freebsd/
H A Dzutil_import_os.c141 if (S_ISREG(statbuf.st_mode)) {
146 } else if (S_ISCHR(statbuf.st_mode) || S_ISBLK(statbuf.st_mode)) {
/freebsd-current/contrib/unbound/compat/
H A Dgetentropy_solaris.c200 if (fstat(fd, &st) == -1 || !S_ISCHR(st.st_mode) ||
391 if (S_ISREG(st.st_mode) ||
392 S_ISFIFO(st.st_mode) ||
393 S_ISSOCK(st.st_mode)) {
399 if (S_ISCHR(st.st_mode)) {
402 } else if (S_ISSOCK(st.st_mode)) {
/freebsd-current/usr.bin/hexdump/
H A Ddisplay.c394 if (S_ISREG(sb.st_mode) && skip > sb.st_size && sb.st_size > 0) {
400 if (!statok || S_ISFIFO(sb.st_mode) || S_ISSOCK(sb.st_mode) || \
401 (S_ISREG(sb.st_mode) && sb.st_size == 0)) {
405 if (S_ISCHR(sb.st_mode) || S_ISBLK(sb.st_mode)) {
/freebsd-current/contrib/diff/lib/
H A Dfile-type.h152 # define S_TYPEISSEM(p) (S_ISNAM ((p)->st_mode) && (p)->st_rdev == S_INSEM)
160 # define S_TYPEISSHM(p) (S_ISNAM ((p)->st_mode) && (p)->st_rdev == S_INSHD)
/freebsd-current/contrib/bmake/
H A Drealpath.c175 if (S_ISLNK(sb.st_mode)) {
202 if (*q == '/' && !S_ISDIR(sb.st_mode)) {

Completed in 367 milliseconds

1234567891011>>