Searched refs:st_mode (Results 1 - 25 of 568) sorted by last modified time

1234567891011>>

/freebsd-11-stable/contrib/libarchive/test_utils/
H A Dtest_main.c1570 mode = (int)(st.st_mode & 0777);
1674 if (!S_ISDIR(st.st_mode)) {
1683 if (mode >= 0 && (mode_t)mode != (st.st_mode & 07777)) {
1686 logprintf(" Found: 0%3o\n", st.st_mode & 07777);
1707 if (r != 0 || !S_ISREG(st.st_mode)) {
1716 if (mode >= 0 && (mode_t)mode != (st.st_mode & 07777)) {
1719 logprintf(" Found: 0%3o\n", st.st_mode & 07777);
1875 if (!S_ISLNK(st.st_mode))
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_write_disk_posix.c2137 && !S_ISDIR(a->st.st_mode)) {
2153 if (!S_ISDIR(a->st.st_mode)) {
2158 S_ISREG(a->st.st_mode)) {
2198 if ((a->mode != a->st.st_mode)
2316 else if ((st.st_mode & AE_IFMT) == AE_IFREG) {
2506 !S_ISDIR(st.st_mode)) {
2513 fstat(fd, &st) != 0 || !S_ISDIR(st.st_mode))) {
2518 !S_ISDIR(st.st_mode)) {
2835 } else if (S_ISDIR(st.st_mode)) {
2859 } else if (S_ISLNK(st.st_mode)) {
[all...]
H A Darchive_read_support_format_mtree.c1285 if (((st->st_mode & S_IFMT) == S_IFREG &&
1288 ||((st->st_mode & S_IFMT) == S_IFLNK &&
1292 ||((st->st_mode & S_IFSOCK) == S_IFSOCK &&
1296 ||((st->st_mode & S_IFMT) == S_IFCHR &&
1300 ||((st->st_mode & S_IFMT) == S_IFBLK &&
1303 ||((st->st_mode & S_IFMT) == S_IFDIR &&
1306 ||((st->st_mode & S_IFMT) == S_IFIFO &&
1378 archive_entry_set_perm(entry, st->st_mode);
H A Darchive_read_disk_posix.c345 /* "is_physical_dir" is equivalent to S_ISDIR(tree_current_lstat()->st_mode) */
347 /* "is_dir" is equivalent to S_ISDIR(tree_current_stat()->st_mode) */
1002 if (S_ISREG(st->st_mode) || S_ISDIR(st->st_mode)) {
2572 if (S_ISDIR(st->st_mode))
2576 if (!S_ISLNK(st->st_mode))
2589 return (S_ISDIR(st->st_mode));
2610 if (!S_ISDIR(st->st_mode))
2626 return (S_ISDIR(st->st_mode));
H A Darchive_write_open_filename.c201 if (S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode) ||
202 S_ISFIFO(st.st_mode))
215 if (S_ISREG(st.st_mode))
H A Darchive_write_open_fd.c95 if (S_ISREG(st.st_mode))
106 if (S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode) ||
107 S_ISFIFO(st.st_mode) || (mine->fd == 1))
H A Darchive_util.c500 if (!S_ISDIR(st.st_mode)) {
H A Darchive_read_disk_entry_from_file.c229 (S_ISREG(st->st_mode) || S_ISDIR(st->st_mode))) {
255 if (S_ISLNK(st->st_mode)) {
/freebsd-11-stable/libexec/ftpd/
H A Dftpd.c1716 if (!S_ISREG(st.st_mode)) {
1724 if (S_ISDIR(st.st_mode) || guest) {
1757 restart_point == 0 && cmd == 0 && S_ISREG(st.st_mode));
2363 code = lstat(filename, &st) == 0 && S_ISDIR(st.st_mode) ? 212 : 213;
2620 if (S_ISDIR(st.st_mode)) {
3219 if (S_ISREG(st.st_mode)) {
3236 } else if (!S_ISDIR(st.st_mode))
3261 S_ISREG(st.st_mode))) {
/freebsd-11-stable/usr.bin/ar/
H A Dwrite.c162 if (!S_ISREG(sb.st_mode)) {
191 obj->md = sb.st_mode;
/freebsd-11-stable/contrib/sqlite3/
H A Dsqlite3.c[all...]
H A Dshell.c653 return rc || !S_ISREG(x.st_mode);
2143 ** value (file type + permissions, as returned in the stat.st_mode
2184 ** mode: Value of stat.st_mode for directory entry (an integer).
2446 if( !S_ISDIR(sStat.st_mode) ) rc = SQLITE_ERROR;
2485 || !S_ISDIR(sStat.st_mode)
2486 || ((sStat.st_mode&0777)!=(mode&0777) && 0!=chmod(zFile, mode&0777))
2623 ** Given a numberic st_mode from stat(), convert it into a human-readable
2787 mode_t m = pCur->sStat.st_mode;
2862 sqlite3_result_int64(ctx, pCur->sStat.st_mode);
2870 mode_t m = pCur->sStat.st_mode;
[all...]
H A Dltmain.sh5973 && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
5992 rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
6124 if (S_ISLNK (s.st_mode) != 0)
/freebsd-11-stable/contrib/unbound/
H A Dltmain.sh5973 && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
5992 rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
6124 if (S_ISLNK (s.st_mode) != 0)
/freebsd-11-stable/usr.sbin/newsyslog/
H A Dnewsyslog.c1032 if (!S_ISREG(st_fm.st_mode)) {
1492 !S_ISREG(sb.st_mode))
2600 else if (!S_ISDIR(st.st_mode))
/freebsd-11-stable/contrib/less/
H A Dfilename.c1013 isdir = (r >= 0 && S_ISDIR(statbuf.st_mode));
1062 } else if (!S_ISREG(statbuf.st_mode))
H A Dcmdbuf.c1657 if (r < 0 || !S_ISREG(statbuf.st_mode))
/freebsd-11-stable/usr.sbin/jail/
H A Djail.c642 if (!S_ISDIR(st.st_mode)) {
/freebsd-11-stable/usr.sbin/rtsold/
H A Drtsol.c924 switch (s.st_mode & S_IFMT) {
930 path, (s.st_mode & S_IFMT));
/freebsd-11-stable/lib/libkvm/
H A Dkvm.c413 if (S_ISREG(st.st_mode) && st.st_size <= 0) {
418 if (S_ISCHR(st.st_mode)) {
/freebsd-11-stable/contrib/ipfilter/tools/
H A Dipmon.c1772 l->regular = !S_ISCHR(sb.st_mode);
/freebsd-11-stable/sys/kern/
H A Dkern_event.c1940 st->st_mode = S_IFIFO;
/freebsd-11-stable/sbin/hastd/
H A Dhastd.c196 mode = sb.st_mode;
/freebsd-11-stable/contrib/libarchive/libarchive/test/
H A Dtest_write_disk_secure.c172 assert(S_ISLNK(st.st_mode));
194 assert(S_ISDIR(st.st_mode));
222 assert(S_ISDIR(st.st_mode));
252 failure("dir: st.st_mode=%o", st.st_mode);
253 assert((st.st_mode & 0777) == 0755);
256 failure("link_to_dir: st.st_mode=%o", st.st_mode);
257 assert(S_ISLNK(st.st_mode));
281 failure("link_to_dir: st.st_mode
[all...]
H A Dtest_entry.c754 st.st_mode = 077777;
815 assertEqualInt(pst->st_mode, 012345);
857 assertEqualInt(pst->st_mode, 012344);

Completed in 830 milliseconds

1234567891011>>