Home
last modified time | relevance | path

Searched refs:st_mode (Results 51 – 75 of 1193) sorted by relevance

12345678910>>...48

/netbsd/external/bsd/libarchive/dist/libarchive/test/
H A Dtest_write_disk.c58 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 Dstat.h48 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 Dsnapshot.c78 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 Dwalk.c138 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 Daoutm68k_stat.h45 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 Daoutm68k_stat.c240 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 Dftree.c467 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 Dmake_dirs.c83 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 Dfstatat.c88 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 Dfstatat.c88 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 Dt_mknod.sh43 [ ${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 Ddev_mkdb.c237 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 Darchive_write_open_filename.c200 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 Dfs.c284 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 Dcmds.c137 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 Dgetentropy_osx.c172 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 Dgetentropy_solaris.c200 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 Dinetcf.c208 } 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 Dunix.c413 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 Dunix.c413 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 Dtty.c120 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 Dfile.c168 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 Dstat.c681 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 Dmbox_open.c142 && (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 Dstat3.c18 || !S_ISDIR (buf.st_mode)) in main()
21 || !S_ISREG (buf.st_mode)) in main()

12345678910>>...48