Home
last modified time | relevance | path

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

/xnu-12377.41.6/tests/vfs/
H A Dsymlink_trailing_slash.c94 T_ASSERT_TRUE(S_ISDIR(st.st_mode), "stat thinks a is directory");
97 T_ASSERT_TRUE(S_ISDIR(st.st_mode), "stat thinks b is directory");
100 T_ASSERT_TRUE(S_ISDIR(st.st_mode), "stat thinks b/ is directory");
103 T_ASSERT_TRUE(S_ISDIR(st.st_mode), "stat thinks a/. is directory");
106 T_ASSERT_TRUE(S_ISDIR(st.st_mode), "stat thinks a/ is directory");
111 T_ASSERT_TRUE(S_ISLNK(st.st_mode), "lstat thinks a is symlink");
114 T_ASSERT_TRUE(S_ISLNK(st.st_mode), "lstat thinks b is symlink");
117 T_ASSERT_TRUE(S_ISDIR(st.st_mode), "lstat thinks b/ is directory");
120 T_ASSERT_TRUE(S_ISDIR(st.st_mode), "lstat thinks a/. is directory");
124 T_ASSERT_TRUE(S_ISDIR(st.st_mode), "lstat thinks a/ is directory");
[all …]
/xnu-12377.41.6/bsd/sys/
H A Dstat.h121 mode_t st_mode; /* inode protection mode */ member
168 mode_t st_mode; /* [XSI] Mode of file (see below) */ \
197 mode_t st_mode; /* [XSI] Mode of file (see below) */ member
246 mode_t st_mode; /* [XSI] Mode of file (see below) */ member
279 mode_t st_mode; /* [XSI] Mode of file (see below) */ member
311 mode_t st_mode; /* [XSI] Mode of file (see below) */ member
343 mode_t st_mode; /* [XSI] Mode of file (see below) */ member
/xnu-12377.41.6/bsd/kern/
H A Dsys_socket.c373 sb64->st_mode = S_IFSOCK; in soo_stat()
376 sb64->st_mode |= S_IRUSR | S_IRGRP | S_IROTH; in soo_stat()
379 sb64->st_mode |= S_IWUSR | S_IWGRP | S_IWOTH; in soo_stat()
385 sb->st_mode = S_IFSOCK; in soo_stat()
388 sb->st_mode |= S_IRUSR | S_IRGRP | S_IROTH; in soo_stat()
391 sb->st_mode |= S_IWUSR | S_IWGRP | S_IWOTH; in soo_stat()
H A Dposix_shm.c700 sb64->st_mode = pinfo->pshm_mode; in pshm_stat()
707 sb->st_mode = pinfo->pshm_mode; in pshm_stat()
H A Dsys_pipe.c503 sb64->st_mode = S_IFIFO | S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP; in pipe_stat()
530 sb->st_mode = S_IFIFO | S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP; in pipe_stat()
H A Dkern_event.c5265 sb64->st_mode = S_IFIFO;
5280 sb->st_mode = S_IFIFO;
H A Dproc_info.c3812 vsbp->vst_mode = sbp->st_mode; in munge_vinfo_stat()
/xnu-12377.41.6/tests/
H A Ddev_zero.c43 T_ASSERT_TRUE(sb.st_mode & S_IWOTH, "/dev/zero world writable");
50 T_ASSERT_TRUE(sb.st_mode & S_IWOTH, "/dev/zero still world writable");
H A Dkqueue_fifo_18776047.c90 T_ASSERT_TRUE(S_ISFIFO(f_stat.st_mode), "ensure %s is a fifo", filepath); in create_fifo()
H A Dcorrect_kernel_booted.c32 if ((stbuf.st_mode & S_IFREG) == 0) { in get_macho_uuid()
H A Dvm_test_code_signing.c317 T_ASSERT_BITS_SET(sb.st_mode, S_IXUSR, "check %s EXEC permission", exec_path); in check_executable()
H A Dnet_bridge.c3158 return stat(path, &statb) == 0 && (statb.st_mode & S_IXUSR) != 0; in executable_is_present()
/xnu-12377.41.6/SETUP/installfile/
H A Dinstallfile.c97 if (!S_ISREG(sb.st_mode)) { in main()
/xnu-12377.41.6/SETUP/replacecontents/
H A Dreplacecontents.c90 if (!S_ISREG(sb.st_mode)) { in main()
/xnu-12377.41.6/SETUP/setsegname/
H A Dsetsegname.c73 if (0 == (stat_buf.st_mode & S_IFREG)) { in readFile()
/xnu-12377.41.6/bsd/miscfs/devfs/
H A Ddevfs_fdesc_support.c464 VATTR_RETURN(vap, va_mode, stb.st_mode); in fdesc_attr()
/xnu-12377.41.6/SETUP/kextsymboltool/
H A Dkextsymboltool.c134 if (0 == (stat_buf.st_mode & S_IFREG)) { in readFile()
/xnu-12377.41.6/bsd/vfs/
H A Dvfs_vnops.c1604 sb64->st_mode = mode; in vn_stat_noauth()
1622 sb->st_mode = mode; in vn_stat_noauth()
H A Dvfs_syscalls.c7511 if ((source.sb64.st_nlink == 0) && S_ISREG(source.sb64.st_mode)) { in fstatat_internal()
7531 if ((source.sb.st_nlink == 0) && S_ISREG(source.sb.st_mode)) { in fstatat_internal()
14496 usbp->st_mode = sbp->st_mode; in munge_user64_stat()
14533 usbp->st_mode = sbp->st_mode; in munge_user32_stat()
14573 usbp->st_mode = sbp->st_mode; in munge_user64_stat64()
14614 usbp->st_mode = sbp->st_mode; in munge_user32_stat64()