/glibc-2.36/io/ |
D | tst-lchmod.c | 120 TEST_VERIFY ((st.st_mode & 0777) != 1); in test_1() 122 TEST_VERIFY ((st.st_mode & 0777) != 2); in test_1() 123 mode_t original_symlink_mode = st.st_mode; in test_1() 130 TEST_COMPARE (st.st_mode & 0777, 1); in test_1() 134 TEST_COMPARE (st.st_mode & 0777, 2); in test_1() 136 TEST_COMPARE (original_symlink_mode, st.st_mode); in test_1() 140 TEST_COMPARE (st.st_mode & 0777, 1); in test_1() 142 TEST_COMPARE (original_symlink_mode, st.st_mode); in test_1() 152 TEST_COMPARE (st.st_mode & 0777, 1); in test_1() 154 TEST_COMPARE (original_symlink_mode, st.st_mode); in test_1() [all …]
|
D | tst-ftw-lnk.c | 55 if (S_ISREG (sb->st_mode)) sb_type = "REG"; in debug_cb() 56 if (S_ISDIR (sb->st_mode)) sb_type = "DIR"; in debug_cb() 57 if (S_ISLNK (sb->st_mode)) sb_type = "LNK"; in debug_cb() 81 if (as.st_mode == sb->st_mode in check_same_stats() 102 if (S_ISLNK (sb->st_mode) && typeflags == FTW_SL) in callback_phys() 113 if (S_ISLNK (sb->st_mode) && typeflags == FTW_SL) in callback_phys() 124 if (S_ISREG (sb->st_mode) && typeflags == FTW_F) in callback_phys() 150 if (S_ISLNK (sb->st_mode) && typeflags == FTW_SLN) in callback_log() 162 if (S_ISREG (sb->st_mode) && typeflags == FTW_F) in callback_log() 173 if (S_ISREG (sb->st_mode) && typeflags == FTW_F) in callback_log()
|
D | tst-fchmodat.c | 127 if ((st1.st_mode & 0777) != 0644) in do_test() 129 printf ("openat created mode %04o, not 0644\n", (st1.st_mode & 0777)); in do_test() 146 if ((st2.st_mode & 0777) != 0400) in do_test()
|
/glibc-2.36/sysdeps/unix/sysv/linux/bits/ |
D | stat.h | 42 #define __S_TYPEISMQ(buf) ((buf)->st_mode - (buf)->st_mode) 43 #define __S_TYPEISSEM(buf) ((buf)->st_mode - (buf)->st_mode) 44 #define __S_TYPEISSHM(buf) ((buf)->st_mode - (buf)->st_mode)
|
/glibc-2.36/support/ |
D | test-container.c | 177 && S_ISDIR (st.st_mode)) in maybe_xmkdir() 462 if (chmod (dname, st.st_mode & 0777) < 0) in copy_one_file() 476 if ((a->st_mode & S_IFMT) != (b->st_mode & S_IFMT)) in need_sync() 479 if (S_ISLNK (a->st_mode)) in need_sync() 501 if ((a->st_mode & 0777) != (b->st_mode & 0777)) in need_sync() 508 && ((a->st_mode & 0777) == (b->st_mode & 0777)) in need_sync() 547 s.st_mode = ~0; in rsync_1() 548 d.st_mode = ~0; in rsync_1() 559 if (S_ISDIR (s.st_mode)) in rsync_1() 564 if (d.st_mode != ~0) in rsync_1() [all …]
|
D | support_copy_file_range.c | 43 if (S_ISDIR (instat.st_mode) || S_ISDIR (outstat.st_mode)) in support_copy_file_range() 48 if (!S_ISREG (instat.st_mode) || !S_ISREG (outstat.st_mode)) in support_copy_file_range()
|
/glibc-2.36/sysdeps/unix/sysv/linux/alpha/ |
D | xstatconv.c | 41 buf->st_mode = kbuf->st_mode; in __xstat_conv() 63 buf->st_mode = kbuf->st_mode; in __xstat_conv() 94 buf->st_mode = kbuf->st_mode; in __xstat_conv()
|
D | kernel_stat.h | 6 unsigned int st_mode; member 30 unsigned int st_mode; member 51 __mode_t st_mode; member 71 __mode_t st_mode; member
|
/glibc-2.36/posix/ |
D | tst-chmod.c | 102 if (!S_ISDIR (st1.st_mode)) in do_test() 127 if ((st2.st_mode & ALLPERMS) != 0) in do_test() 130 st2.st_mode & ALLPERMS); in do_test() 224 else if ((st1.st_mode & ALLPERMS) != 0) in do_test() 251 else if ((st2.st_mode & ALLPERMS) != 0600) in do_test() 273 else if ((st2.st_mode & ALLPERMS) != (0777 | S_ISUID | S_ISGID)) in do_test() 290 else if ((st2.st_mode & ALLPERMS) != (0777 | S_ISUID | S_ISGID | S_ISVTX)) in do_test()
|
D | tst-glob_lstat_compat.c | 201 st->st_mode = DTTOIF (idx + 1 < nfiles in my_stat() 205 st->st_mode = DTTOIF (filesystem[idx].type) | 0777; in my_stat() 221 st->st_mode = DTTOIF (idx + 1 < nfiles in my_lstat() 225 st->st_mode = DTTOIF (filesystem[idx].type) | 0777; in my_lstat()
|
/glibc-2.36/sysdeps/unix/sysv/linux/ |
D | faccessat.c | 59 || (stats.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))) in __faccessat() 63 ? (unsigned int) (stats.st_mode & (mode << 6)) >> 6 in __faccessat() 67 ? (unsigned int) (stats.st_mode & (mode << 3)) >> 3 in __faccessat() 68 : (stats.st_mode & mode)); in __faccessat()
|
D | xstatconv.c | 52 buf->st_mode = kbuf->st_mode; in __xstat_conv() 122 buf->st_mode = kbuf->st_mode; in __xstat64_conv() 191 buf->st_mode = kbuf->st_mode; in __xstat32_conv()
|
/glibc-2.36/sysdeps/unix/sysv/linux/mips/ |
D | xstatconv.c | 51 buf->st_mode = kbuf->st_mode; in __xstat_conv() 106 buf->st_mode = kbuf->st_mode; in __xstat64_conv() 160 buf->st_mode = kbuf->st_mode; in __xstat32_conv()
|
D | kernel_stat.h | 15 unsigned int st_mode; member 38 unsigned long int st_mode; member
|
/glibc-2.36/sysdeps/unix/sysv/linux/x86/bits/ |
D | struct_stat.h | 41 __mode_t st_mode; /* File mode. */ 45 __mode_t st_mode; /* File mode. */ 112 __mode_t st_mode; /* File mode. */ 116 __mode_t st_mode; /* File mode. */
|
/glibc-2.36/sysdeps/unix/sysv/linux/mips/mips64/ |
D | kstat_cp.h | 33 st->st_mode = kst->st_mode; in __cp_kstat_stat() 59 st->st_mode = kst->st_mode; in __cp_kstat_stat64_t64()
|
/glibc-2.36/sysdeps/unix/sysv/linux/sparc/sparc64/ |
D | xstatconv.c | 45 buf->st_mode = kbuf->st_mode; in __xstat_conv() 95 buf->st_mode = kbuf->st_mode; in __xstat32_conv()
|
D | kernel_stat.h | 9 unsigned int st_mode; member 31 unsigned int st_mode; member
|
/glibc-2.36/sysdeps/posix/ |
D | euidaccess.c | 167 || (stats.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))) in euidaccess() 171 granted = (unsigned int) (stats.st_mode & (mode << 6)) >> 6; in euidaccess() 173 granted = (unsigned int) (stats.st_mode & (mode << 3)) >> 3; in euidaccess() 175 granted = (stats.st_mode & mode); in euidaccess()
|
/glibc-2.36/sysdeps/unix/sysv/linux/mips/bits/ |
D | struct_stat.h | 42 __mode_t st_mode; /* File mode. */ 97 __mode_t st_mode; /* File mode. */ 144 __mode_t st_mode; 198 __mode_t st_mode;
|
/glibc-2.36/sysdeps/unix/sysv/linux/powerpc/bits/ |
D | struct_stat.h | 41 __mode_t st_mode; /* File mode. */ 93 __mode_t st_mode; /* File mode. */ 140 __mode_t st_mode; /* File mode. */ member 189 __mode_t st_mode; /* File mode. */ member
|
/glibc-2.36/sysdeps/unix/sysv/linux/s390/bits/ |
D | struct_stat.h | 34 __mode_t st_mode; /* File mode. */ member 78 __mode_t st_mode; /* File mode. */ 135 __mode_t st_mode; /* File mode. */ member 176 __mode_t st_mode; /* File mode. */
|
/glibc-2.36/sysdeps/unix/sysv/linux/microblaze/bits/ |
D | struct_stat.h | 34 __mode_t st_mode; /* File mode. */ 82 __mode_t st_mode; /* File mode. */ 127 __mode_t st_mode; /* File mode. */
|
/glibc-2.36/locale/programs/ |
D | locfile.c | 387 if (lstat64 (output_path, &output_stat) < 0 || !S_ISDIR (output_stat.st_mode)) in siblings_uncached() 417 && S_ISDIR (other_stat.st_mode) in siblings_uncached() 420 && other_stat.st_mode == output_stat.st_mode in siblings_uncached() 767 else if (!S_ISREG (st.st_mode)) in write_locale_data() 850 && S_ISREG (fname_stat.st_mode)) in write_locale_data() 876 && S_ISREG (other_fname_stat.st_mode) in write_locale_data() 884 && other_fname_stat.st_mode == fname_stat.st_mode in write_locale_data()
|
/glibc-2.36/hurd/ |
D | lookup-retry.c | 153 if (flags & O_DIRECTORY && !S_ISDIR (st.st_mode)) in __hurd_file_name_lookup_retry() 155 if (S_ISLNK (st.st_mode)) in __hurd_file_name_lookup_retry() 157 else if (st.st_mode & (S_IPTRANS|S_IATRANS)) in __hurd_file_name_lookup_retry() 161 else if (st.st_mode & S_IPTRANS) in __hurd_file_name_lookup_retry()
|