| /xnu-12377.41.6/tests/vfs/ |
| H A D | symlink_trailing_slash.c | 94 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 D | stat.h | 121 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 D | sys_socket.c | 373 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 D | posix_shm.c | 700 sb64->st_mode = pinfo->pshm_mode; in pshm_stat() 707 sb->st_mode = pinfo->pshm_mode; in pshm_stat()
|
| H A D | sys_pipe.c | 503 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 D | kern_event.c | 5265 sb64->st_mode = S_IFIFO; 5280 sb->st_mode = S_IFIFO;
|
| H A D | proc_info.c | 3812 vsbp->vst_mode = sbp->st_mode; in munge_vinfo_stat()
|
| /xnu-12377.41.6/tests/ |
| H A D | dev_zero.c | 43 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 D | kqueue_fifo_18776047.c | 90 T_ASSERT_TRUE(S_ISFIFO(f_stat.st_mode), "ensure %s is a fifo", filepath); in create_fifo()
|
| H A D | correct_kernel_booted.c | 32 if ((stbuf.st_mode & S_IFREG) == 0) { in get_macho_uuid()
|
| H A D | vm_test_code_signing.c | 317 T_ASSERT_BITS_SET(sb.st_mode, S_IXUSR, "check %s EXEC permission", exec_path); in check_executable()
|
| H A D | net_bridge.c | 3158 return stat(path, &statb) == 0 && (statb.st_mode & S_IXUSR) != 0; in executable_is_present()
|
| /xnu-12377.41.6/SETUP/installfile/ |
| H A D | installfile.c | 97 if (!S_ISREG(sb.st_mode)) { in main()
|
| /xnu-12377.41.6/SETUP/replacecontents/ |
| H A D | replacecontents.c | 90 if (!S_ISREG(sb.st_mode)) { in main()
|
| /xnu-12377.41.6/SETUP/setsegname/ |
| H A D | setsegname.c | 73 if (0 == (stat_buf.st_mode & S_IFREG)) { in readFile()
|
| /xnu-12377.41.6/bsd/miscfs/devfs/ |
| H A D | devfs_fdesc_support.c | 464 VATTR_RETURN(vap, va_mode, stb.st_mode); in fdesc_attr()
|
| /xnu-12377.41.6/SETUP/kextsymboltool/ |
| H A D | kextsymboltool.c | 134 if (0 == (stat_buf.st_mode & S_IFREG)) { in readFile()
|
| /xnu-12377.41.6/bsd/vfs/ |
| H A D | vfs_vnops.c | 1604 sb64->st_mode = mode; in vn_stat_noauth() 1622 sb->st_mode = mode; in vn_stat_noauth()
|
| H A D | vfs_syscalls.c | 7511 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()
|