Home
last modified time | relevance | path

Searched refs:st_mode (Results 1 – 25 of 127) sorted by relevance

123456

/glibc-2.36/io/
Dtst-lchmod.c120 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 …]
Dtst-ftw-lnk.c55 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()
Dtst-fchmodat.c127 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/
Dstat.h42 #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/
Dtest-container.c177 && 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 …]
Dsupport_copy_file_range.c43 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/
Dxstatconv.c41 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()
Dkernel_stat.h6 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/
Dtst-chmod.c102 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()
Dtst-glob_lstat_compat.c201 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/
Dfaccessat.c59 || (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()
Dxstatconv.c52 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/
Dxstatconv.c51 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()
Dkernel_stat.h15 unsigned int st_mode; member
38 unsigned long int st_mode; member
/glibc-2.36/sysdeps/unix/sysv/linux/x86/bits/
Dstruct_stat.h41 __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/
Dkstat_cp.h33 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/
Dxstatconv.c45 buf->st_mode = kbuf->st_mode; in __xstat_conv()
95 buf->st_mode = kbuf->st_mode; in __xstat32_conv()
Dkernel_stat.h9 unsigned int st_mode; member
31 unsigned int st_mode; member
/glibc-2.36/sysdeps/posix/
Deuidaccess.c167 || (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/
Dstruct_stat.h42 __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/
Dstruct_stat.h41 __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/
Dstruct_stat.h34 __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/
Dstruct_stat.h34 __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/
Dlocfile.c387 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/
Dlookup-retry.c153 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()

123456