Lines Matching refs:st_mode
480 int type = st->m_sb.st_mode & S_IFMT; in atf_fs_stat_init()
532 return st->m_sb.st_mode & ~S_IFMT; in atf_fs_stat_get_mode()
550 return st->m_sb.st_mode & S_IRUSR; in atf_fs_stat_is_owner_readable()
556 return st->m_sb.st_mode & S_IWUSR; in atf_fs_stat_is_owner_writable()
562 return st->m_sb.st_mode & S_IXUSR; in atf_fs_stat_is_owner_executable()
568 return st->m_sb.st_mode & S_IRGRP; in atf_fs_stat_is_group_readable()
574 return st->m_sb.st_mode & S_IWGRP; in atf_fs_stat_is_group_writable()
580 return st->m_sb.st_mode & S_IXGRP; in atf_fs_stat_is_group_executable()
586 return st->m_sb.st_mode & S_IROTH; in atf_fs_stat_is_other_readable()
592 return st->m_sb.st_mode & S_IWOTH; in atf_fs_stat_is_other_writable()
598 return st->m_sb.st_mode & S_IXOTH; in atf_fs_stat_is_other_executable()
645 if (!ok && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) { in atf_fs_eaccess()
652 ok = ((mode & atf_fs_access_r) && (st.st_mode & S_IRUSR)) || in atf_fs_eaccess()
653 ((mode & atf_fs_access_w) && (st.st_mode & S_IWUSR)) || in atf_fs_eaccess()
654 ((mode & atf_fs_access_x) && (st.st_mode & S_IXUSR)); in atf_fs_eaccess()
657 ok = ((mode & atf_fs_access_r) && (st.st_mode & S_IRGRP)) || in atf_fs_eaccess()
658 ((mode & atf_fs_access_w) && (st.st_mode & S_IWGRP)) || in atf_fs_eaccess()
659 ((mode & atf_fs_access_x) && (st.st_mode & S_IXGRP)); in atf_fs_eaccess()
663 ok = ((mode & atf_fs_access_r) && (st.st_mode & S_IROTH)) || in atf_fs_eaccess()
664 ((mode & atf_fs_access_w) && (st.st_mode & S_IWOTH)) || in atf_fs_eaccess()
665 ((mode & atf_fs_access_x) && (st.st_mode & S_IXOTH)); in atf_fs_eaccess()