Lines Matching refs:sb
90 file_fsmagic(struct magic_set *ms, const char *fn, zend_stat_t *sb) in file_fsmagic() argument
100 ret = php_sys_stat(fn, sb); in file_fsmagic()
116 if (sb->st_mode & S_ISUID) in file_fsmagic()
121 if (sb->st_mode & S_ISGID) in file_fsmagic()
126 if (sb->st_mode & S_ISVTX) in file_fsmagic()
132 switch (sb->st_mode & S_IFMT) { in file_fsmagic()
152 COMMA, major(sb->st_rdev), dv_unit(sb->st_rdev), in file_fsmagic()
153 dv_subunit(sb->st_rdev)) == -1) in file_fsmagic()
157 COMMA, (long)major(sb->st_rdev), in file_fsmagic()
158 (long)minor(sb->st_rdev)) == -1) in file_fsmagic()
227 if ((ms->flags & MAGIC_DEVICES) == 0 && sb->st_size == 0) { in file_fsmagic()
240 file_error(ms, 0, "invalid mode 0%o", sb->st_mode); in file_fsmagic()