sb 525 ext/fileinfo/fileinfo.c if (ssb.sb.st_mode & S_IFDIR) { sb 544 ext/fileinfo/fileinfo.c if (ssb.sb.st_mode & S_IFDIR) { sb 799 ext/fileinfo/libmagic/apprentice.c size_t sb = apprentice_magic_strength(mb->mp); sb 800 ext/fileinfo/libmagic/apprentice.c if (sa == sb) sb 802 ext/fileinfo/libmagic/apprentice.c else if (sa > sb) sb 2626 ext/fileinfo/libmagic/apprentice.c if (st.sb.st_mode & S_IFDIR) { sb 2647 ext/fileinfo/libmagic/apprentice.c if (st.sb.st_size < 8) { sb 2652 ext/fileinfo/libmagic/apprentice.c map->len = (size_t)st.sb.st_size; sb 2657 ext/fileinfo/libmagic/apprentice.c if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) { sb 2697 ext/fileinfo/libmagic/apprentice.c nentries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); sb 2698 ext/fileinfo/libmagic/apprentice.c entries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); sb 2699 ext/fileinfo/libmagic/apprentice.c if ((off_t)(entries * sizeof(struct magic)) != st.sb.st_size) { sb 2701 ext/fileinfo/libmagic/apprentice.c dbname, (unsigned long long)st.sb.st_size, sb 93 ext/fileinfo/libmagic/fsmagic.c file_fsmagic(struct magic_set *ms, const char *fn, struct stat *sb, php_stream *stream) sb 117 ext/fileinfo/libmagic/fsmagic.c memcpy(sb, &ssb.sb, sizeof(struct stat)); sb 119 ext/fileinfo/libmagic/fsmagic.c if (php_sys_stat(fn, sb) != 0) { sb 131 ext/fileinfo/libmagic/fsmagic.c if (sb->st_mode & S_ISUID) sb 136 ext/fileinfo/libmagic/fsmagic.c if (sb->st_mode & S_ISGID) sb 141 ext/fileinfo/libmagic/fsmagic.c if (sb->st_mode & S_ISVTX) sb 147 ext/fileinfo/libmagic/fsmagic.c switch (sb->st_mode & S_IFMT) { sb 167 ext/fileinfo/libmagic/fsmagic.c COMMA, major(sb->st_rdev), dv_unit(sb->st_rdev), sb 168 ext/fileinfo/libmagic/fsmagic.c dv_subunit(sb->st_rdev)) == -1) sb 172 ext/fileinfo/libmagic/fsmagic.c COMMA, (long)major(sb->st_rdev), sb 173 ext/fileinfo/libmagic/fsmagic.c (long)minor(sb->st_rdev)) == -1) sb 239 ext/fileinfo/libmagic/fsmagic.c if ((ms->flags & MAGIC_DEVICES) == 0 && sb->st_size == 0) { sb 251 ext/fileinfo/libmagic/fsmagic.c file_error(ms, 0, "invalid mode 0%o", sb->st_mode); sb 289 ext/fileinfo/libmagic/magic.c const struct stat *sb) sb 302 ext/fileinfo/libmagic/magic.c utsbuf[0].tv_sec = sb->st_atime; sb 303 ext/fileinfo/libmagic/magic.c utsbuf[1].tv_sec = sb->st_mtime; sb 310 ext/fileinfo/libmagic/magic.c utbuf.actime = sb->st_atime; sb 311 ext/fileinfo/libmagic/magic.c utbuf.modtime = sb->st_mtime; sb 353 ext/fileinfo/libmagic/magic.c struct stat sb; sb 372 ext/fileinfo/libmagic/magic.c switch (file_fsmagic(ms, inname, &sb, stream)) { sb 390 ext/fileinfo/libmagic/magic.c if (unreadable_info(ms, sb.st_mode, inname) == -1) sb 419 ext/fileinfo/libmagic/magic.c close_and_restore(ms, inname, 0, &sb); sb 682 ext/opcache/ZendAccelerator.c *statbuf = stream_statbuf.sb; sb 798 ext/opcache/ZendAccelerator.c php_stream_statbuf sb; sb 810 ext/opcache/ZendAccelerator.c ret = stream->ops->stat(stream, &sb TSRMLS_CC); sb 819 ext/opcache/ZendAccelerator.c statbuf = sb.sb; sb 2226 ext/openssl/openssl.c struct stat sb; sb 2233 ext/openssl/openssl.c if (VCWD_STAT(Z_STRVAL_PP(item), &sb) == -1) { sb 2238 ext/openssl/openssl.c if ((sb.st_mode & S_IFREG) == S_IFREG) { sb 394 ext/pdo_odbc/odbc_stmt.c php_stream_statbuf sb; sb 402 ext/pdo_odbc/odbc_stmt.c if (0 == php_stream_stat(stm, &sb)) { sb 425 ext/pdo_odbc/odbc_stmt.c P->len = SQL_LEN_DATA_AT_EXEC(sb.sb.st_size); sb 620 ext/phar/func_interceptors.c struct stat sb = {0}; sb 672 ext/phar/func_interceptors.c sb.st_size = 0; sb 673 ext/phar/func_interceptors.c sb.st_mode = 0777; sb 674 ext/phar/func_interceptors.c sb.st_mode |= S_IFDIR; /* regular directory */ sb 676 ext/phar/func_interceptors.c sb.st_mtime.tv_sec = phar->max_timestamp; sb 677 ext/phar/func_interceptors.c sb.st_atime.tv_sec = phar->max_timestamp; sb 678 ext/phar/func_interceptors.c sb.st_ctime.tv_sec = phar->max_timestamp; sb 680 ext/phar/func_interceptors.c sb.st_mtime = phar->max_timestamp; sb 681 ext/phar/func_interceptors.c sb.st_atime = phar->max_timestamp; sb 682 ext/phar/func_interceptors.c sb.st_ctime = phar->max_timestamp; sb 718 ext/phar/func_interceptors.c sb.st_size = 0; sb 719 ext/phar/func_interceptors.c sb.st_mode = 0777; sb 720 ext/phar/func_interceptors.c sb.st_mode |= S_IFDIR; /* regular directory */ sb 722 ext/phar/func_interceptors.c sb.st_mtime.tv_sec = phar->max_timestamp; sb 723 ext/phar/func_interceptors.c sb.st_atime.tv_sec = phar->max_timestamp; sb 724 ext/phar/func_interceptors.c sb.st_ctime.tv_sec = phar->max_timestamp; sb 726 ext/phar/func_interceptors.c sb.st_mtime = phar->max_timestamp; sb 727 ext/phar/func_interceptors.c sb.st_atime = phar->max_timestamp; sb 728 ext/phar/func_interceptors.c sb.st_ctime = phar->max_timestamp; sb 745 ext/phar/func_interceptors.c sb.st_size = data->uncompressed_filesize; sb 746 ext/phar/func_interceptors.c sb.st_mode = data->flags & PHAR_ENT_PERM_MASK; sb 748 ext/phar/func_interceptors.c sb.st_mode |= S_IFREG|S_IFLNK; /* regular file */ sb 750 ext/phar/func_interceptors.c sb.st_mode |= S_IFREG; /* regular file */ sb 754 ext/phar/func_interceptors.c sb.st_mtime.tv_sec = data->timestamp; sb 755 ext/phar/func_interceptors.c sb.st_atime.tv_sec = data->timestamp; sb 756 ext/phar/func_interceptors.c sb.st_ctime.tv_sec = data->timestamp; sb 758 ext/phar/func_interceptors.c sb.st_mtime = data->timestamp; sb 759 ext/phar/func_interceptors.c sb.st_atime = data->timestamp; sb 760 ext/phar/func_interceptors.c sb.st_ctime = data->timestamp; sb 763 ext/phar/func_interceptors.c sb.st_size = 0; sb 764 ext/phar/func_interceptors.c sb.st_mode = data->flags & PHAR_ENT_PERM_MASK; sb 765 ext/phar/func_interceptors.c sb.st_mode |= S_IFDIR; /* regular directory */ sb 767 ext/phar/func_interceptors.c sb.st_mode |= S_IFLNK; sb 771 ext/phar/func_interceptors.c sb.st_mtime.tv_sec = data->timestamp; sb 772 ext/phar/func_interceptors.c sb.st_atime.tv_sec = data->timestamp; sb 773 ext/phar/func_interceptors.c sb.st_ctime.tv_sec = data->timestamp; sb 775 ext/phar/func_interceptors.c sb.st_mtime = data->timestamp; sb 776 ext/phar/func_interceptors.c sb.st_atime = data->timestamp; sb 777 ext/phar/func_interceptors.c sb.st_ctime = data->timestamp; sb 783 ext/phar/func_interceptors.c sb.st_mode = (sb.st_mode & 0555) | (sb.st_mode & ~0777); sb 786 ext/phar/func_interceptors.c sb.st_nlink = 1; sb 787 ext/phar/func_interceptors.c sb.st_rdev = -1; sb 789 ext/phar/func_interceptors.c sb.st_dev = 0xc; sb 792 ext/phar/func_interceptors.c sb.st_ino = data->inode; sb 795 ext/phar/func_interceptors.c sb.st_blksize = -1; sb 796 ext/phar/func_interceptors.c sb.st_blocks = -1; sb 798 ext/phar/func_interceptors.c phar_fancy_stat(&sb, type, return_value TSRMLS_CC); sb 1762 ext/phar/phar.c if (ssb.sb.st_mode & S_IFDIR) { sb 1817 ext/phar/phar.c if (ssb.sb.st_mode & S_IFDIR) { sb 1829 ext/phar/phar.c if (ssb.sb.st_mode & S_IFDIR) { sb 2612 ext/phar/phar_object.c RETURN_BOOL((ssb.sb.st_mode & (S_IWOTH | S_IWGRP | S_IWUSR)) != 0); sb 4354 ext/phar/phar_object.c } else if (!(ssb.sb.st_mode & S_IFDIR)) { sb 486 ext/phar/stream.c ssb->sb.st_size = data->uncompressed_filesize; sb 487 ext/phar/stream.c ssb->sb.st_mode = data->flags & PHAR_ENT_PERM_MASK; sb 488 ext/phar/stream.c ssb->sb.st_mode |= S_IFREG; /* regular file */ sb 491 ext/phar/stream.c ssb->sb.st_mtime.tv_sec = data->timestamp; sb 492 ext/phar/stream.c ssb->sb.st_atime.tv_sec = data->timestamp; sb 493 ext/phar/stream.c ssb->sb.st_ctime.tv_sec = data->timestamp; sb 495 ext/phar/stream.c ssb->sb.st_mtime = data->timestamp; sb 496 ext/phar/stream.c ssb->sb.st_atime = data->timestamp; sb 497 ext/phar/stream.c ssb->sb.st_ctime = data->timestamp; sb 500 ext/phar/stream.c ssb->sb.st_size = 0; sb 501 ext/phar/stream.c ssb->sb.st_mode = data->flags & PHAR_ENT_PERM_MASK; sb 502 ext/phar/stream.c ssb->sb.st_mode |= S_IFDIR; /* regular directory */ sb 505 ext/phar/stream.c ssb->sb.st_mtime.tv_sec = data->timestamp; sb 506 ext/phar/stream.c ssb->sb.st_atime.tv_sec = data->timestamp; sb 507 ext/phar/stream.c ssb->sb.st_ctime.tv_sec = data->timestamp; sb 509 ext/phar/stream.c ssb->sb.st_mtime = data->timestamp; sb 510 ext/phar/stream.c ssb->sb.st_atime = data->timestamp; sb 511 ext/phar/stream.c ssb->sb.st_ctime = data->timestamp; sb 514 ext/phar/stream.c ssb->sb.st_size = 0; sb 515 ext/phar/stream.c ssb->sb.st_mode = 0777; sb 516 ext/phar/stream.c ssb->sb.st_mode |= S_IFDIR; /* regular directory */ sb 518 ext/phar/stream.c ssb->sb.st_mtime.tv_sec = phar->max_timestamp; sb 519 ext/phar/stream.c ssb->sb.st_atime.tv_sec = phar->max_timestamp; sb 520 ext/phar/stream.c ssb->sb.st_ctime.tv_sec = phar->max_timestamp; sb 522 ext/phar/stream.c ssb->sb.st_mtime = phar->max_timestamp; sb 523 ext/phar/stream.c ssb->sb.st_atime = phar->max_timestamp; sb 524 ext/phar/stream.c ssb->sb.st_ctime = phar->max_timestamp; sb 528 ext/phar/stream.c ssb->sb.st_mode = (ssb->sb.st_mode & 0555) | (ssb->sb.st_mode & ~0777); sb 531 ext/phar/stream.c ssb->sb.st_nlink = 1; sb 532 ext/phar/stream.c ssb->sb.st_rdev = -1; sb 534 ext/phar/stream.c ssb->sb.st_dev = 0xc; sb 537 ext/phar/stream.c ssb->sb.st_ino = data->inode; sb 540 ext/phar/stream.c ssb->sb.st_blksize = -1; sb 541 ext/phar/stream.c ssb->sb.st_blocks = -1; sb 228 ext/phar/util.c if (ssb.sb.st_mode & S_IFDIR) { sb 238 ext/phar/util.c entry.uncompressed_filesize = entry.compressed_filesize = ssb.sb.st_size; sb 241 ext/phar/util.c entry.flags = ssb.sb.st_mode; sb 1345 ext/phar/util.c if (ssb.sb.st_mode & S_IFDIR && !dir) { sb 1353 ext/phar/util.c if ((ssb.sb.st_mode & S_IFDIR) == 0 && dir) { sb 1178 ext/session/session.c struct stat sb; sb 1183 ext/session/session.c if (VCWD_STAT(path, &sb) == -1) { sb 1189 ext/session/session.c strcpy_gmt(buf + sizeof(LAST_MODIFIED) - 1, &sb.st_mtime); sb 1216 ext/sqlite3/sqlite3.c ssb->sb.st_size = sqlite3_stream->size; sb 1552 ext/standard/file.c MAKE_LONG_ZVAL_INCREF(stat_dev, stat_ssb.sb.st_dev); sb 1553 ext/standard/file.c MAKE_LONG_ZVAL_INCREF(stat_ino, stat_ssb.sb.st_ino); sb 1554 ext/standard/file.c MAKE_LONG_ZVAL_INCREF(stat_mode, stat_ssb.sb.st_mode); sb 1555 ext/standard/file.c MAKE_LONG_ZVAL_INCREF(stat_nlink, stat_ssb.sb.st_nlink); sb 1556 ext/standard/file.c MAKE_LONG_ZVAL_INCREF(stat_uid, stat_ssb.sb.st_uid); sb 1557 ext/standard/file.c MAKE_LONG_ZVAL_INCREF(stat_gid, stat_ssb.sb.st_gid); sb 1559 ext/standard/file.c MAKE_LONG_ZVAL_INCREF(stat_rdev, stat_ssb.sb.st_rdev); sb 1563 ext/standard/file.c MAKE_LONG_ZVAL_INCREF(stat_size, stat_ssb.sb.st_size); sb 1564 ext/standard/file.c MAKE_LONG_ZVAL_INCREF(stat_atime, stat_ssb.sb.st_atime); sb 1565 ext/standard/file.c MAKE_LONG_ZVAL_INCREF(stat_mtime, stat_ssb.sb.st_mtime); sb 1566 ext/standard/file.c MAKE_LONG_ZVAL_INCREF(stat_ctime, stat_ssb.sb.st_ctime); sb 1568 ext/standard/file.c MAKE_LONG_ZVAL_INCREF(stat_blksize, stat_ssb.sb.st_blksize); sb 1573 ext/standard/file.c MAKE_LONG_ZVAL_INCREF(stat_blocks, stat_ssb.sb.st_blocks); sb 1670 ext/standard/file.c if (S_ISDIR(src_s.sb.st_mode)) { sb 1685 ext/standard/file.c if (S_ISDIR(dest_s.sb.st_mode)) { sb 1689 ext/standard/file.c if (!src_s.sb.st_ino || !dest_s.sb.st_ino) { sb 1692 ext/standard/file.c if (src_s.sb.st_ino == dest_s.sb.st_ino && src_s.sb.st_dev == dest_s.sb.st_dev) { sb 914 ext/standard/filestat.c stat_sb = &ssb.sb; sb 919 ext/standard/filestat.c if(ssb.sb.st_uid==getuid()) { sb 923 ext/standard/filestat.c } else if(ssb.sb.st_gid==getgid()) { sb 936 ext/standard/filestat.c if(ssb.sb.st_gid==gids[i]) { sb 965 ext/standard/filestat.c RETURN_LONG((long)ssb.sb.st_mode); sb 967 ext/standard/filestat.c RETURN_LONG((long)ssb.sb.st_ino); sb 969 ext/standard/filestat.c RETURN_LONG((long)ssb.sb.st_size); sb 971 ext/standard/filestat.c RETURN_LONG((long)ssb.sb.st_uid); sb 973 ext/standard/filestat.c RETURN_LONG((long)ssb.sb.st_gid); sb 975 ext/standard/filestat.c RETURN_LONG((long)ssb.sb.st_atime); sb 977 ext/standard/filestat.c RETURN_LONG((long)ssb.sb.st_mtime); sb 979 ext/standard/filestat.c RETURN_LONG((long)ssb.sb.st_ctime); sb 981 ext/standard/filestat.c if (S_ISLNK(ssb.sb.st_mode)) { sb 984 ext/standard/filestat.c switch(ssb.sb.st_mode & S_IFMT) { sb 994 ext/standard/filestat.c php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Unknown file type (%d)", ssb.sb.st_mode&S_IFMT); sb 997 ext/standard/filestat.c RETURN_BOOL((ssb.sb.st_mode & wmask) != 0); sb 999 ext/standard/filestat.c RETURN_BOOL((ssb.sb.st_mode&rmask)!=0); sb 1001 ext/standard/filestat.c RETURN_BOOL((ssb.sb.st_mode&xmask)!=0 && !S_ISDIR(ssb.sb.st_mode)); sb 1003 ext/standard/filestat.c RETURN_BOOL(S_ISREG(ssb.sb.st_mode)); sb 1005 ext/standard/filestat.c RETURN_BOOL(S_ISDIR(ssb.sb.st_mode)); sb 1007 ext/standard/filestat.c RETURN_BOOL(S_ISLNK(ssb.sb.st_mode)); sb 800 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_mode = 0644; /* FTP won't give us a valid mode, so aproximate one based on being readable */ sb 804 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_mode |= S_IFREG; sb 806 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_mode |= S_IFDIR; sb 823 ext/standard/ftp_fopen_wrapper.c if (ssb->sb.st_mode & S_IFDIR) { sb 824 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_size = 0; sb 829 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_size = atoi(tmp_line + 4); sb 869 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_mtime = mktime(&tm); sb 873 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_mtime = -1; sb 876 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_ino = 0; /* Unknown values */ sb 877 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_dev = 0; sb 878 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_uid = 0; sb 879 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_gid = 0; sb 880 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_atime = -1; sb 881 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_ctime = -1; sb 883 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_nlink = 1; sb 884 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_rdev = -1; sb 886 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_blksize = 4096; /* Guess since FTP won't expose this information */ sb 888 ext/standard/ftp_fopen_wrapper.c ssb->sb.st_blocks = (int)((4095 + ssb->sb.st_size) / ssb->sb.st_blksize); /* emulate ceil */ sb 196 ext/standard/iptc.c struct stat sb; sb 218 ext/standard/iptc.c fstat(fileno(fp), &sb); sb 220 ext/standard/iptc.c poi = spoolbuf = safe_emalloc(1, (size_t)iptcdata_len + sizeof(psheader) + 1024 + 1, sb.st_size); sb 221 ext/standard/iptc.c memset(poi, 0, iptcdata_len + sizeof(psheader) + sb.st_size + 1024 + 1); sb 90 ext/standard/link.c struct stat sb; sb 105 ext/standard/link.c ret = VCWD_LSTAT(link, &sb); sb 113 ext/standard/link.c RETURN_LONG((long) sb.st_dev); sb 91 ext/standard/link_win32.c struct stat sb; sb 98 ext/standard/link_win32.c ret = VCWD_STAT(link, &sb); sb 104 ext/standard/link_win32.c RETURN_LONG((long) sb.st_dev); sb 79 ext/zip/php_zip.c #define PHP_ZIP_STAT_INDEX(za, index, flags, sb) \ sb 80 ext/zip/php_zip.c if (zip_stat_index(za, index, flags, &sb) != 0) { \ sb 86 ext/zip/php_zip.c #define PHP_ZIP_STAT_PATH(za, path, path_len, flags, sb) \ sb 91 ext/zip/php_zip.c if (zip_stat(za, path, flags, &sb) != 0) { \ sb 167 ext/zip/php_zip.c struct zip_stat sb; sb 196 ext/zip/php_zip.c if (path_cleaned_len >= MAXPATHLEN || zip_stat(za, file, 0, &sb) != 0) { sb 437 ext/zip/php_zip.c #define RETURN_SB(sb) \ sb 440 ext/zip/php_zip.c add_ascii_assoc_string(return_value, "name", (char *)(sb)->name, 1); \ sb 441 ext/zip/php_zip.c add_ascii_assoc_long(return_value, "index", (long) (sb)->index); \ sb 442 ext/zip/php_zip.c add_ascii_assoc_long(return_value, "crc", (long) (sb)->crc); \ sb 443 ext/zip/php_zip.c add_ascii_assoc_long(return_value, "size", (long) (sb)->size); \ sb 444 ext/zip/php_zip.c add_ascii_assoc_long(return_value, "mtime", (long) (sb)->mtime); \ sb 445 ext/zip/php_zip.c add_ascii_assoc_long(return_value, "comp_size", (long) (sb)->comp_size); \ sb 446 ext/zip/php_zip.c add_ascii_assoc_long(return_value, "comp_method", (long) (sb)->comp_method); \ sb 1318 ext/zip/php_zip.c ret = zip_stat_index(rsrc_int->za, rsrc_int->index_current, 0, &zr_rsrc->sb); sb 1437 ext/zip/php_zip.c RETURN_STRING((char *)zr_rsrc->sb.name, 1); sb 1440 ext/zip/php_zip.c RETURN_LONG((long) (zr_rsrc->sb.comp_size)); sb 1443 ext/zip/php_zip.c RETURN_LONG((long) (zr_rsrc->sb.size)); sb 1446 ext/zip/php_zip.c switch (zr_rsrc->sb.comp_method) { sb 1477 ext/zip/php_zip.c RETURN_LONG((long) (zr_rsrc->sb.comp_method)); sb 1677 ext/zip/php_zip.c struct zip_stat sb; sb 1704 ext/zip/php_zip.c idx = zip_stat(intern, s, 0, &sb); sb 1954 ext/zip/php_zip.c struct zip_stat sb; sb 1967 ext/zip/php_zip.c PHP_ZIP_STAT_PATH(intern, name, name_len, flags, sb); sb 1969 ext/zip/php_zip.c RETURN_SB(&sb); sb 1981 ext/zip/php_zip.c struct zip_stat sb; sb 1994 ext/zip/php_zip.c if (zip_stat_index(intern, index, flags, &sb) != 0) { sb 1997 ext/zip/php_zip.c RETURN_SB(&sb); sb 2162 ext/zip/php_zip.c struct zip_stat sb; sb 2175 ext/zip/php_zip.c PHP_ZIP_STAT_INDEX(intern, index, 0, sb); sb 2228 ext/zip/php_zip.c struct zip_stat sb; sb 2241 ext/zip/php_zip.c PHP_ZIP_STAT_INDEX(intern, index, 0, sb); sb 2303 ext/zip/php_zip.c struct zip_stat sb; sb 2316 ext/zip/php_zip.c PHP_ZIP_STAT_INDEX(intern, index, 0, sb); sb 2376 ext/zip/php_zip.c struct zip_stat sb; sb 2389 ext/zip/php_zip.c PHP_ZIP_STAT_INDEX(intern, index, 0, sb); sb 2433 ext/zip/php_zip.c struct zip_stat sb; sb 2448 ext/zip/php_zip.c PHP_ZIP_STAT_PATH(intern, name, name_len, 0, sb); sb 2449 ext/zip/php_zip.c if (zip_delete(intern, sb.index)) { sb 2498 ext/zip/php_zip.c struct zip_stat sb; sb 2517 ext/zip/php_zip.c PHP_ZIP_STAT_PATH(intern, name, name_len, 0, sb); sb 2519 ext/zip/php_zip.c if (zip_rename(intern, sb.index, (const char *)new_name)) { sb 2562 ext/zip/php_zip.c struct zip_stat sb; sb 2580 ext/zip/php_zip.c PHP_ZIP_STAT_PATH(intern, name, name_len, 0, sb); sb 2582 ext/zip/php_zip.c if (zip_unchange(intern, sb.index) != 0) { sb 2729 ext/zip/php_zip.c struct zip_stat sb; sb 2751 ext/zip/php_zip.c PHP_ZIP_STAT_PATH(intern, filename, filename_len, flags, sb); sb 2756 ext/zip/php_zip.c PHP_ZIP_STAT_INDEX(intern, index, 0, sb); sb 2759 ext/zip/php_zip.c if (sb.size < 1) { sb 2764 ext/zip/php_zip.c len = sb.size; sb 2811 ext/zip/php_zip.c struct zip_stat sb; sb 2828 ext/zip/php_zip.c if (zip_stat(intern, filename, 0, &sb) != 0) { sb 73 ext/zip/php_zip.h struct zip_stat sb; sb 117 ext/zip/zip_stream.c struct zip_stat sb; sb 162 ext/zip/zip_stream.c if (zip_stat(za, fragment, ZIP_FL_NOCASE, &sb) != 0) { sb 169 ext/zip/zip_stream.c ssb->sb.st_size = sb.size; sb 170 ext/zip/zip_stream.c ssb->sb.st_mode |= S_IFREG; /* regular file */ sb 172 ext/zip/zip_stream.c ssb->sb.st_size = 0; sb 173 ext/zip/zip_stream.c ssb->sb.st_mode |= S_IFDIR; /* regular directory */ sb 176 ext/zip/zip_stream.c ssb->sb.st_mtime = sb.mtime; sb 177 ext/zip/zip_stream.c ssb->sb.st_atime = sb.mtime; sb 178 ext/zip/zip_stream.c ssb->sb.st_ctime = sb.mtime; sb 179 ext/zip/zip_stream.c ssb->sb.st_nlink = 1; sb 180 ext/zip/zip_stream.c ssb->sb.st_rdev = -1; sb 182 ext/zip/zip_stream.c ssb->sb.st_blksize = -1; sb 183 ext/zip/zip_stream.c ssb->sb.st_blocks = -1; sb 185 ext/zip/zip_stream.c ssb->sb.st_ino = -1; sb 1401 main/main.c return ssb.sb.st_size; sb 626 main/php_ini.c struct stat sb; sb 669 main/php_ini.c if (VCWD_STAT(ini_file, &sb) == 0) { sb 670 main/php_ini.c if (S_ISREG(sb.st_mode)) { sb 756 main/php_ini.c struct stat sb; sb 762 main/php_ini.c if (VCWD_STAT(ini_file, &sb) == 0) { sb 763 main/php_ini.c if (S_ISREG(sb.st_mode)) { sb 107 main/php_streams.h struct stat sb; /* regular info */ sb 213 main/streams/memory.c ssb->sb.st_mode = ms->mode & TEMP_STREAM_READONLY ? 0444 : 0666; sb 215 main/streams/memory.c ssb->sb.st_size = ms->fsize; sb 216 main/streams/memory.c ssb->sb.st_mode |= S_IFREG; /* regular file */ sb 219 main/streams/memory.c ssb->sb.st_mtime.tv_sec = timestamp; sb 220 main/streams/memory.c ssb->sb.st_atime.tv_sec = timestamp; sb 221 main/streams/memory.c ssb->sb.st_ctime.tv_sec = timestamp; sb 223 main/streams/memory.c ssb->sb.st_mtime = timestamp; sb 224 main/streams/memory.c ssb->sb.st_atime = timestamp; sb 225 main/streams/memory.c ssb->sb.st_ctime = timestamp; sb 228 main/streams/memory.c ssb->sb.st_nlink = 1; sb 229 main/streams/memory.c ssb->sb.st_rdev = -1; sb 231 main/streams/memory.c ssb->sb.st_dev = 0xC; sb 233 main/streams/memory.c ssb->sb.st_ino = 0; sb 236 main/streams/memory.c ssb->sb.st_blksize = -1; sb 240 main/streams/memory.c ssb->sb.st_blocks = -1; sb 136 main/streams/plain_wrapper.c struct stat sb; sb 147 main/streams/plain_wrapper.c r = fstat(fd, &d->sb); sb 235 main/streams/plain_wrapper.c self->is_pipe = (do_fstat(self, 0) == 0 && S_ISFIFO(self->sb.st_mode)) ? 1 : 0; sb 274 main/streams/plain_wrapper.c self->is_pipe = (do_fstat(self, 0) == 0 && S_ISFIFO(self->sb.st_mode)) ? 1 : 0; sb 572 main/streams/plain_wrapper.c memcpy(&ssb->sb, &data->sb, sizeof(ssb->sb)); sb 663 main/streams/plain_wrapper.c if (range->length == 0 && range->offset > 0 && range->offset < data->sb.st_size) { sb 664 main/streams/plain_wrapper.c range->length = data->sb.st_size - range->offset; sb 666 main/streams/plain_wrapper.c if (range->length == 0 || range->length > data->sb.st_size) { sb 667 main/streams/plain_wrapper.c range->length = data->sb.st_size; sb 669 main/streams/plain_wrapper.c if (range->offset >= data->sb.st_size) { sb 670 main/streams/plain_wrapper.c range->offset = data->sb.st_size; sb 993 main/streams/plain_wrapper.c if ((r == 0 && !S_ISREG(self->sb.st_mode))) { sb 1040 main/streams/plain_wrapper.c return VCWD_LSTAT(url, &ssb->sb); sb 1046 main/streams/plain_wrapper.c return VCWD_LSTAT(url, &ssb->sb); sb 1050 main/streams/plain_wrapper.c return VCWD_STAT(url, &ssb->sb); sb 1116 main/streams/plain_wrapper.c struct stat sb; sb 1118 main/streams/plain_wrapper.c if (VCWD_STAT(url_from, &sb) == 0) { sb 1120 main/streams/plain_wrapper.c if (VCWD_CHMOD(url_to, sb.st_mode)) { sb 1129 main/streams/plain_wrapper.c if (VCWD_CHOWN(url_to, sb.st_uid, sb.st_gid)) { sb 1177 main/streams/plain_wrapper.c struct stat sb; sb 1207 main/streams/plain_wrapper.c if (VCWD_STAT(buf, &sb) == 0) { sb 1467 main/streams/streams.c if (php_stream_stat(src, &ssbuf) == 0 && ssbuf.sb.st_size > 0) { sb 1468 main/streams/streams.c max_len = ssbuf.sb.st_size + step; sb 1519 main/streams/streams.c if (ssbuf.sb.st_size == 0 sb 1521 main/streams/streams.c && S_ISREG(ssbuf.sb.st_mode) sb 899 main/streams/userspace.c ssb->sb.st_##name2 = Z_LVAL_PP(elem); \ sb 229 main/streams/xp_socket.c return fstat(sock->socket, &ssb->sb); sb 141 sapi/cli/php_cli_server.c struct stat sb; sb 1462 sapi/cli/php_cli_server.c struct stat sb; sb 1499 sapi/cli/php_cli_server.c if (!stat(buf, &sb)) { sb 1500 sapi/cli/php_cli_server.c if (sb.st_mode & S_IFDIR) { sb 1508 sapi/cli/php_cli_server.c if (!stat(buf, &sb) && (sb.st_mode & S_IFREG)) { sb 1565 sapi/cli/php_cli_server.c request->sb = sb; sb 2105 sapi/cli/php_cli_server.c smart_str_append_generic_ex(&buffer, client->request.sb.st_size, 1, size_t, _unsigned); sb 2574 sapi/cli/php_cli_server.c struct stat sb; sb 2576 sapi/cli/php_cli_server.c if (stat(document_root, &sb)) { sb 2580 sapi/cli/php_cli_server.c if (!S_ISDIR(sb.st_mode)) { sb 165 sapi/fpm/fpm/fpm_conf.c struct stat sb; sb 167 sapi/fpm/fpm/fpm_conf.c if (stat(path, &sb) != 0) { sb 171 sapi/fpm/fpm/fpm_conf.c return (sb.st_mode & S_IFMT) == S_IFDIR; sb 235 sapi/phpdbg/phpdbg.c struct stat sb; sb 238 sapi/phpdbg/phpdbg.c if (VCWD_STAT(exec, &sb) != FAILURE) { sb 239 sapi/phpdbg/phpdbg.c if (sb.st_mode & (S_IFREG|S_IFLNK)) { sb 228 sapi/phpdbg/phpdbg_bp.c if (ssb.sb.st_mode & (S_IFREG|S_IFLNK)) { sb 191 sapi/phpdbg/phpdbg_prompt.c struct stat sb; sb 193 sapi/phpdbg/phpdbg_prompt.c if (init_file && VCWD_STAT(init_file, &sb) != -1) { sb 335 sapi/phpdbg/phpdbg_prompt.c struct stat sb; sb 337 sapi/phpdbg/phpdbg_prompt.c if (VCWD_STAT(param->str, &sb) != FAILURE) { sb 338 sapi/phpdbg/phpdbg_prompt.c if (sb.st_mode & (S_IFREG|S_IFLNK)) { sb 852 sapi/phpdbg/phpdbg_prompt.c struct stat sb; sb 854 sapi/phpdbg/phpdbg_prompt.c if (VCWD_STAT(param->str, &sb) != -1) { sb 36 sapi/phttpd/phttpd.c struct stat sb; sb 192 sapi/phttpd/phttpd.c if (url_expand(PHG(cip)->hip->url, SG(request_info).path_translated, MAXPATHLEN, &PHG(sb), NULL, NULL) == NULL) { sb 243 sapi/phttpd/phttpd.c struct stat sb; sb 564 win32/glob.c struct stat sb; sb 575 win32/glob.c if (g_lstat(pathbuf, &sb, pglob)) sb 579 win32/glob.c !IS_SLASH(pathend[-1])) && (S_ISDIR(sb.st_mode) || sb 580 win32/glob.c (S_ISLNK(sb.st_mode) && sb 581 win32/glob.c (g_stat(pathbuf, &sb, pglob) == 0) && sb 582 win32/glob.c S_ISDIR(sb.st_mode)))) { sb 859 win32/glob.c g_lstat(fn, sb, pglob) sb 861 win32/glob.c struct stat *sb; sb 869 win32/glob.c return((*pglob->gl_lstat)(buf, sb)); sb 870 win32/glob.c return(php_sys_lstat(buf, sb)); sb 874 win32/glob.c g_stat(fn, sb, pglob) sb 876 win32/glob.c struct stat *sb; sb 884 win32/glob.c return((*pglob->gl_stat)(buf, sb)); sb 885 win32/glob.c return(php_sys_stat(buf, sb));