Lines Matching refs:st_mode
374 RETURN_LONG((zend_long)stat_sb->st_mode); in phar_fancy_stat()
390 if (S_ISLNK(stat_sb->st_mode)) { in phar_fancy_stat()
393 switch(stat_sb->st_mode & S_IFMT) { in phar_fancy_stat()
397 php_error_docref(NULL, E_NOTICE, "Unknown file type (%u)", stat_sb->st_mode & S_IFMT); in phar_fancy_stat()
400 RETURN_BOOL((stat_sb->st_mode & wmask) != 0); in phar_fancy_stat()
402 RETURN_BOOL((stat_sb->st_mode&rmask)!=0); in phar_fancy_stat()
404 RETURN_BOOL((stat_sb->st_mode&xmask)!=0 && !S_ISDIR(stat_sb->st_mode)); in phar_fancy_stat()
406 RETURN_BOOL(S_ISREG(stat_sb->st_mode)); in phar_fancy_stat()
408 RETURN_BOOL(S_ISDIR(stat_sb->st_mode)); in phar_fancy_stat()
410 RETURN_BOOL(S_ISLNK(stat_sb->st_mode)); in phar_fancy_stat()
420 ZVAL_LONG(&stat_mode, stat_sb->st_mode); in phar_fancy_stat()
543 sb.st_mode = 0777; in phar_file_stat()
544 sb.st_mode |= S_IFDIR; /* regular directory */ in phar_file_stat()
583 sb.st_mode = 0777; in phar_file_stat()
584 sb.st_mode |= S_IFDIR; /* regular directory */ in phar_file_stat()
604 sb.st_mode = data->flags & PHAR_ENT_PERM_MASK; in phar_file_stat()
606 sb.st_mode |= S_IFREG|S_IFLNK; /* regular file */ in phar_file_stat()
608 sb.st_mode |= S_IFREG; /* regular file */ in phar_file_stat()
616 sb.st_mode = data->flags & PHAR_ENT_PERM_MASK; in phar_file_stat()
617 sb.st_mode |= S_IFDIR; /* regular directory */ in phar_file_stat()
619 sb.st_mode |= S_IFLNK; in phar_file_stat()
629 sb.st_mode = (sb.st_mode & 0555) | (sb.st_mode & ~0777); in phar_file_stat()