/netbsd/external/bsd/libarchive/dist/libarchive/test/ |
H A D | test_write_disk.c | 58 st.st_mode &= ~S_ISGID; in create() 59 assertEqualInt(st.st_mode & MODE_MASK, in create() 159 st.st_mode, archive_entry_mode(ae)); in create_reg_file3() 161 assertEqualInt(st.st_mode, (archive_entry_mode(ae) & ~UMASK)); in create_reg_file3() 185 st.st_mode, archive_entry_mode(ae)); in create_reg_file4() 187 assertEqualInt(st.st_mode, (archive_entry_mode(ae) & ~UMASK)); in create_reg_file4() 233 st.st_mode, archive_entry_mode(ae)); in create_reg_file_win()
|
/netbsd/sys/compat/sys/ |
H A D | stat.h | 48 uint16_t st_mode; /* inode protection mode */ member 67 uint16_t st_mode; /* inode protection mode */ member 101 mode_t st_mode; /* inode protection mode */ member 142 mode_t st_mode; /* inode protection mode */ member
|
/netbsd/sbin/dump/ |
H A D | snapshot.c | 78 if (S_ISCHR(sb.st_mode)) { in snap_open() 94 } else if (S_ISDIR(sb.st_mode)) in snap_open() 110 if (S_ISDIR(sb.st_mode)) { in snap_open() 116 } else if (S_ISCHR(sb.st_mode)) { in snap_open()
|
/netbsd/usr.sbin/makefs/ |
H A D | walk.c | 138 if (S_ISSOCK(stbuf.st_mode & S_IFMT)) { in walk_dir() 158 S_ISDIR(stbuf.st_mode)) { in walk_dir() 169 inode_type(stbuf.st_mode), path, in walk_dir() 174 inode_type(stbuf.st_mode), in walk_dir() 257 cur->type = stbuf->st_mode & S_IFMT; in create_fsnode() 463 stbuf.st_mode = nodetoino(curnode->type); in apply_specdir() 527 dirnode->inode->st.st_mode & ALLPERMS, specnode->st_mode); in apply_specentry() 528 dirnode->inode->st.st_mode &= ~ALLPERMS; in apply_specentry() 529 dirnode->inode->st.st_mode |= (specnode->st_mode & ALLPERMS); in apply_specentry()
|
/netbsd/sys/compat/aoutm68k/ |
H A D | aoutm68k_stat.h | 45 u_int16_t st_mode; /* inode protection mode */ member 65 u_int16_t st_mode; /* inode protection mode */ member 86 mode_t st_mode; /* inode protection mode */ member
|
H A D | aoutm68k_stat.c | 240 ast->st_mode = st->st_mode; in aoutm68k_stat43_convert() 270 ast->st_mode = st->st_mode; in aoutm68k_stat12_convert() 299 ast->st_mode = st->st_mode; in aoutm68k_stat13_convert()
|
/netbsd/bin/pax/ |
H A D | ftree.c | 467 statbuf.st_mode = nodetoino(ftnode->type); in next_file() 483 != (statbuf.st_mode & S_IFMT)) { in next_file() 488 inotype(statbuf.st_mode)); in next_file() 498 statbuf.st_mode &= ~ALLPERMS; in next_file() 499 statbuf.st_mode |= (ftnode->st_mode & ALLPERMS); in next_file() 659 switch(S_IFMT & arcn->sb.st_mode) { in next_file()
|
/netbsd/external/ibm-public/postfix/dist/src/util/ |
H A D | make_dirs.c | 83 if (!S_ISDIR(st.st_mode)) { in make_dirs() 88 saved_mode = st.st_mode; in make_dirs() 120 if (!S_ISDIR(st.st_mode)) { in make_dirs()
|
/netbsd/external/gpl3/gdb/dist/gnulib/import/ |
H A D | fstatat.c | 88 if (file[len - 1] != '/' || S_ISDIR (st->st_mode)) in rpl_fstatat() 90 if (!S_ISLNK (st->st_mode)) in rpl_fstatat() 98 if (result == 0 && !S_ISDIR (st->st_mode) && file[len - 1] == '/') in rpl_fstatat()
|
/netbsd/external/gpl3/gdb.old/dist/gnulib/import/ |
H A D | fstatat.c | 88 if (file[len - 1] != '/' || S_ISDIR (st->st_mode)) in rpl_fstatat() 90 if (!S_ISLNK (st->st_mode)) in rpl_fstatat() 98 if (result == 0 && !S_ISDIR (st->st_mode) && file[len - 1] == '/') in rpl_fstatat()
|
/netbsd/tests/fs/tmpfs/ |
H A D | t_mknod.sh | 43 [ ${st_mode} = 060644 ] || atf_fail "Invalid mode" 77 [ ${st_mode} = 020644 ] || atf_fail "Invalid mode" 111 [ ${st_mode} = 010644 ] || atf_fail "Invalid mode"
|
/netbsd/usr.sbin/dev_mkdb/ |
H A D | dev_mkdb.c | 237 if (!S_ISCHR(st->st_mode) && !S_ISBLK(st->st_mode)) in main() 243 compat_add_entry(st->st_rdev, st->st_mode & S_IFMT, in main() 246 cdb_add_entry(st->st_rdev, st->st_mode & S_IFMT, in main()
|
/netbsd/external/bsd/libarchive/dist/libarchive/ |
H A D | archive_write_open_filename.c | 200 if (S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode) || in file_open() 201 S_ISFIFO(st.st_mode)) in file_open() 214 if (S_ISREG(st.st_mode)) in file_open()
|
/netbsd/external/bsd/kyua-testers/dist/ |
H A D | fs.c | 284 if (S_ISDIR(current_sb.st_mode)) { in recursive_unmount() 285 assert(!S_ISLNK(current_sb.st_mode)); in recursive_unmount() 325 if (S_ISLNK(current_sb.st_mode)) in recursive_cleanup() 335 if (S_ISDIR(current_sb.st_mode)) { in recursive_cleanup() 336 assert(!S_ISLNK(current_sb.st_mode)); in recursive_cleanup()
|
/netbsd/usr.sbin/lpr/lpc/ |
H A D | cmds.c | 137 if (chmod(line, (stbuf.st_mode & 0777) | 0100) < 0) in abortpr() 409 if (chmod(line, stbuf.st_mode & 0767) < 0) in enablepr() 465 if (chmod(line, (stbuf.st_mode & 0777) | 010) < 0) in disablepr() 540 if (chmod(line, (stbuf.st_mode & 0777) | 0110) < 0) in putmsg() 681 if (chmod(line, stbuf.st_mode & (ena == 2 ? 0666 : 0677)) < 0) in startpr() 739 (stbuf.st_mode & 010) ? "disabled" : "enabled"); in prstat() 741 (stbuf.st_mode & 0100) ? "disabled" : "enabled"); in prstat() 834 if (chmod(line, (stbuf.st_mode & 0777) | 0100) < 0) in stoppr() 911 (void)chmod(LO, (stbuf.st_mode & 0777) | 01); in topq()
|
/netbsd/external/bsd/unbound/dist/compat/ |
H A D | getentropy_osx.c | 172 if (fstat(fd, &st) == -1 || !S_ISCHR(st.st_mode)) { in getentropy_urandom() 367 if (S_ISREG(st.st_mode) || in getentropy_fallback() 368 S_ISFIFO(st.st_mode) || in getentropy_fallback() 369 S_ISSOCK(st.st_mode)) { in getentropy_fallback() 377 if (S_ISCHR(st.st_mode)) { in getentropy_fallback() 380 } else if (S_ISSOCK(st.st_mode)) { in getentropy_fallback()
|
H A D | getentropy_solaris.c | 200 if (fstat(fd, &st) == -1 || !S_ISCHR(st.st_mode) || in getentropy_urandom() 391 if (S_ISREG(st.st_mode) || in getentropy_fallback() 392 S_ISFIFO(st.st_mode) || in getentropy_fallback() 393 S_ISSOCK(st.st_mode)) { in getentropy_fallback() 399 if (S_ISCHR(st.st_mode)) { in getentropy_fallback() 402 } else if (S_ISSOCK(st.st_mode)) { in getentropy_fallback()
|
/netbsd/usr.sbin/tcpdchk/ |
H A D | inetcf.c | 208 } else if ((st.st_mode & 0100) == 0) { in inet_chk() 239 if ((st.st_mode & 06000) != 0) in inet_chk() 257 } else if ((st.st_mode & 0100) == 0) { in inet_chk() 265 } else if ((st.st_mode & 0100) == 0) { in inet_chk()
|
/netbsd/external/gpl3/gcc.old/dist/libgfortran/io/ |
H A D | unix.c | 413 if (S_ISREG (statbuf.st_mode)) in raw_size() 1140 if (S_ISREG (statbuf.st_mode) in fd_to_stream() 1958 if (S_ISREG (statbuf.st_mode) || in inquire_sequential() 1959 S_ISCHR (statbuf.st_mode) || S_ISFIFO (statbuf.st_mode)) in inquire_sequential() 1962 if (S_ISDIR (statbuf.st_mode) || S_ISBLK (statbuf.st_mode)) in inquire_sequential() 1987 if (S_ISREG (statbuf.st_mode) || S_ISBLK (statbuf.st_mode)) in inquire_direct() 1990 if (S_ISDIR (statbuf.st_mode) || in inquire_direct() 1991 S_ISCHR (statbuf.st_mode) || S_ISFIFO (statbuf.st_mode)) in inquire_direct() 2016 if (S_ISREG (statbuf.st_mode) || in inquire_formatted() 2018 S_ISCHR (statbuf.st_mode) || S_ISFIFO (statbuf.st_mode)) in inquire_formatted() [all …]
|
/netbsd/external/gpl3/gcc/dist/libgfortran/io/ |
H A D | unix.c | 413 if (S_ISREG (statbuf.st_mode)) in raw_size() 1140 if (S_ISREG (statbuf.st_mode) in fd_to_stream() 1958 if (S_ISREG (statbuf.st_mode) || in inquire_sequential() 1959 S_ISCHR (statbuf.st_mode) || S_ISFIFO (statbuf.st_mode)) in inquire_sequential() 1962 if (S_ISDIR (statbuf.st_mode) || S_ISBLK (statbuf.st_mode)) in inquire_sequential() 1987 if (S_ISREG (statbuf.st_mode) || S_ISBLK (statbuf.st_mode)) in inquire_direct() 1990 if (S_ISDIR (statbuf.st_mode) || in inquire_direct() 1991 S_ISCHR (statbuf.st_mode) || S_ISFIFO (statbuf.st_mode)) in inquire_direct() 2016 if (S_ISREG (statbuf.st_mode) || in inquire_formatted() 2018 S_ISCHR (statbuf.st_mode) || S_ISFIFO (statbuf.st_mode)) in inquire_formatted() [all …]
|
/netbsd/external/mit/libuv/dist/src/unix/ |
H A D | tty.c | 120 if (!S_ISCHR(sb.st_mode)) in uv__tty_is_slave() 382 if (S_ISREG(s.st_mode)) in uv_guess_handle() 385 if (S_ISCHR(s.st_mode)) in uv_guess_handle() 388 if (S_ISFIFO(s.st_mode)) in uv_guess_handle() 391 if (!S_ISSOCK(s.st_mode)) in uv_guess_handle()
|
/netbsd/external/ibm-public/postfix/dist/src/local/ |
H A D | file.c | 168 if (S_ISREG(st.st_mode) && st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) { in deliver_file() 173 S_ISREG(st.st_mode) ? copy_flags : in deliver_file()
|
/netbsd/usr.bin/stat/ |
H A D | stat.c | 681 S_ISCHR(st->st_mode) ? S_IFCHR : in format1() 682 S_ISBLK(st->st_mode) ? S_IFBLK : in format1() 717 small = (sizeof(st->st_mode) == 4); in format1() 718 data = st->st_mode; in format1() 719 strmode(st->st_mode, smode); in format1() 912 if (S_ISLNK(st->st_mode)) { in format1() 939 switch (st->st_mode & S_IFMT) { in format1() 943 if (st->st_mode & in format1() 961 switch (st->st_mode & S_IFMT) { in format1() 1028 if (S_ISCHR(st->st_mode) || S_ISBLK(st->st_mode)) { in format1()
|
/netbsd/external/ibm-public/postfix/dist/src/global/ |
H A D | mbox_open.c | 142 && (stat(path, st) < 0 || S_ISREG(st->st_mode))) { in mbox_open() 183 if (S_ISREG(st->st_mode)) { in mbox_open() 207 if (S_ISREG(st->st_mode) in mbox_open()
|
/netbsd/external/gpl3/gdb/dist/sim/testsuite/sim/cris/c/ |
H A D | stat3.c | 18 || !S_ISDIR (buf.st_mode)) in main() 21 || !S_ISREG (buf.st_mode)) in main()
|