Lines Matching refs:ssb
491 void phar_dostat(phar_archive_data *phar, phar_entry_info *data, php_stream_statbuf *ssb, bool is_t… in phar_dostat() argument
493 memset(ssb, 0, sizeof(php_stream_statbuf)); in phar_dostat()
496 ssb->sb.st_size = data->uncompressed_filesize; in phar_dostat()
497 ssb->sb.st_mode = data->flags & PHAR_ENT_PERM_MASK; in phar_dostat()
498 ssb->sb.st_mode |= S_IFREG; /* regular file */ in phar_dostat()
500 ssb->sb.st_mtime = data->timestamp; in phar_dostat()
501 ssb->sb.st_atime = data->timestamp; in phar_dostat()
502 ssb->sb.st_ctime = data->timestamp; in phar_dostat()
504 ssb->sb.st_size = 0; in phar_dostat()
505 ssb->sb.st_mode = data->flags & PHAR_ENT_PERM_MASK; in phar_dostat()
506 ssb->sb.st_mode |= S_IFDIR; /* regular directory */ in phar_dostat()
508 ssb->sb.st_mtime = data->timestamp; in phar_dostat()
509 ssb->sb.st_atime = data->timestamp; in phar_dostat()
510 ssb->sb.st_ctime = data->timestamp; in phar_dostat()
512 ssb->sb.st_size = 0; in phar_dostat()
513 ssb->sb.st_mode = 0777; in phar_dostat()
514 ssb->sb.st_mode |= S_IFDIR; /* regular directory */ in phar_dostat()
515 ssb->sb.st_mtime = phar->max_timestamp; in phar_dostat()
516 ssb->sb.st_atime = phar->max_timestamp; in phar_dostat()
517 ssb->sb.st_ctime = phar->max_timestamp; in phar_dostat()
520 ssb->sb.st_mode = (ssb->sb.st_mode & 0555) | (ssb->sb.st_mode & ~0777); in phar_dostat()
523 ssb->sb.st_nlink = 1; in phar_dostat()
524 ssb->sb.st_rdev = -1; in phar_dostat()
526 ssb->sb.st_dev = 0xc; in phar_dostat()
529 ssb->sb.st_ino = data->inode; in phar_dostat()
532 ssb->sb.st_blksize = -1; in phar_dostat()
533 ssb->sb.st_blocks = -1; in phar_dostat()
541 static int phar_stream_stat(php_stream *stream, php_stream_statbuf *ssb) /* {{{ */ in phar_stream_stat() argument
546 if (!ssb) { in phar_stream_stat()
550 phar_dostat(data->phar, data->internal_file, ssb, 0); in phar_stream_stat()
559 php_stream_statbuf *ssb, php_stream_context *context) /* {{{ */ in phar_wrapper_stat() argument
598 phar_dostat(phar, NULL, ssb, 1); in phar_wrapper_stat()
609 phar_dostat(phar, entry, ssb, 0); in phar_wrapper_stat()
614 phar_dostat(phar, NULL, ssb, 1); in phar_wrapper_stat()
650 phar_dostat(phar, entry, ssb, 0); in phar_wrapper_stat()