Home
last modified time | relevance | path

Searched refs:sb (Results 1 – 25 of 47) sorted by path

12

/PHP-7.4/ext/curl/
H A Dinterface.c2236 filesize = ssb.sb.st_size; in build_mime_structure_from_hash()
/PHP-7.4/ext/fileinfo/
H A Dfileinfo.c547 if (ssb.sb.st_mode & S_IFDIR) { in _php_finfo_get_type()
562 if (ssb.sb.st_mode & S_IFDIR) { in _php_finfo_get_type()
H A Dlibmagic.patch733 + if (st.sb.st_size < 8 || st.sb.st_size > maxoff_t()) {
2000 - ret = lstat(fn, sb);
2016 - sb->st_mode = S_IFBLK;
2086 COMMA, major(sb->st_rdev), dv_unit(sb->st_rdev),
2114 - COMMA, major(sb->st_rdev), dv_unit(sb->st_rdev),
2854 - const struct stat *sb)
2855 + const zend_stat_t *sb)
2900 - struct stat sb;
2901 + zend_stat_t sb;
2943 - sb.st_mode = S_IFBLK;
[all …]
/PHP-7.4/ext/fileinfo/libmagic/
H A Dapprentice.c936 size_t sb = apprentice_magic_strength(mb->mp); in apprentice_sort() local
937 if (sa == sb) in apprentice_sort()
939 else if (sa > sb) in apprentice_sort()
3007 if (st.sb.st_mode & S_IFDIR) { in apprentice_map()
3029 if (st.sb.st_size < 8 || st.sb.st_size > maxoff_t()) { in apprentice_map()
3031 st.sb.st_size < 8 ? "small" : "large"); in apprentice_map()
3036 map->len = CAST(size_t, st.sb.st_size); in apprentice_map()
3039 if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) { in apprentice_map()
3077 nentries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); in apprentice_map()
3078 entries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); in apprentice_map()
[all …]
H A Dfsmagic.c100 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()
[all …]
H A Dmagic.c160 const zend_stat_t *sb)
176 utsbuf[0].tv_sec = sb->st_atime;
177 utsbuf[1].tv_sec = sb->st_mtime;
184 utbuf.actime = sb->st_atime;
185 utbuf.modtime = sb->st_mtime;
228 zend_stat_t sb; in file_or_stream() local
243 switch (file_fsmagic(ms, inname, &sb)) { in file_or_stream()
259 if (unreadable_info(ms, sb.st_mode, inname) == -1) in file_or_stream()
274 memcpy(&sb, &ssb.sb, sizeof(zend_stat_t)); in file_or_stream()
285 if (file_buffer(ms, stream, &sb, inname, buf, CAST(size_t, nbytes)) == -1) in file_or_stream()
/PHP-7.4/ext/fileinfo/tests/
H A Dmagic10167 >0 ubyte 0xfd Linux RAID partition persistent sb
H A Dmagic私はガラスを食べられます10167 >0 ubyte 0xfd Linux RAID partition persistent sb
/PHP-7.4/ext/hash/tests/
H A Dfnv1a32.phpt235 array( 'axuETGoA{fFG"0&6G$4sb!_upS#[{5h^.^$c\'t%#[LK]\\Q', '8520630b' ),
/PHP-7.4/ext/mysqli/tests/
H A D026.phpt22 mysqli_stmt_bind_param($stmt, "sb", $c1, $c2);
/PHP-7.4/ext/opcache/
H A DZendAccelerator.c898 *statbuf = stream_statbuf.sb; in zend_get_stream_timestamp()
1004 php_stream_statbuf sb; in zend_get_file_handle_timestamp() local
1016 ret = stream->ops->stat(stream, &sb); in zend_get_file_handle_timestamp()
1025 statbuf = sb.sb; in zend_get_file_handle_timestamp()
/PHP-7.4/ext/openssl/
H A Dopenssl.c2676 zend_stat_t sb; in php_openssl_setup_verify() local
2692 if (VCWD_STAT(ZSTR_VAL(str), &sb) == -1) { in php_openssl_setup_verify()
2698 if ((sb.st_mode & S_IFREG) == S_IFREG) { in php_openssl_setup_verify()
/PHP-7.4/ext/pdo_odbc/
H A Dodbc_stmt.c413 php_stream_statbuf sb; in odbc_stmt_param_hook() local
421 if (0 == php_stream_stat(stm, &sb)) { in odbc_stmt_param_hook()
444 P->len = SQL_LEN_DATA_AT_EXEC(sb.sb.st_size); in odbc_stmt_param_hook()
/PHP-7.4/ext/phar/
H A Dfunc_interceptors.c595 zend_stat_t sb = {0}; in phar_file_stat() local
647 sb.st_size = 0; in phar_file_stat()
648 sb.st_mode = 0777; in phar_file_stat()
687 sb.st_size = 0; in phar_file_stat()
720 sb.st_size = 0; in phar_file_stat()
734 sb.st_mode = (sb.st_mode & 0555) | (sb.st_mode & ~0777); in phar_file_stat()
737 sb.st_nlink = 1; in phar_file_stat()
738 sb.st_rdev = -1; in phar_file_stat()
740 sb.st_dev = 0xc; in phar_file_stat()
746 sb.st_blksize = -1; in phar_file_stat()
[all …]
H A Dphar.c1790 if (ssb.sb.st_mode & S_IFDIR) { in phar_analyze_path()
1845 if (ssb.sb.st_mode & S_IFDIR) { in phar_analyze_path()
1857 if (ssb.sb.st_mode & S_IFDIR) { in phar_analyze_path()
H A Dphar_object.c1690 data->internal_file->flags = ssb.sb.st_mode & PHAR_ENT_PERM_MASK ; in phar_build()
2628 RETURN_BOOL((ssb.sb.st_mode & (S_IWOTH | S_IWGRP | S_IWUSR)) != 0); in PHP_METHOD()
3694 data->internal_file->flags = ssb.sb.st_mode & PHAR_ENT_PERM_MASK ; in phar_add_file()
4402 } else if (!(ssb.sb.st_mode & S_IFDIR)) { in PHP_METHOD()
H A Dstream.c495 ssb->sb.st_mtime = data->timestamp; in phar_dostat()
499 ssb->sb.st_size = 0; in phar_dostat()
507 ssb->sb.st_size = 0; in phar_dostat()
508 ssb->sb.st_mode = 0777; in phar_dostat()
515 ssb->sb.st_mode = (ssb->sb.st_mode & 0555) | (ssb->sb.st_mode & ~0777); in phar_dostat()
518 ssb->sb.st_nlink = 1; in phar_dostat()
519 ssb->sb.st_rdev = -1; in phar_dostat()
521 ssb->sb.st_dev = 0xc; in phar_dostat()
524 ssb->sb.st_ino = data->inode; in phar_dostat()
527 ssb->sb.st_blksize = -1; in phar_dostat()
[all …]
H A Dutil.c217 if (ssb.sb.st_mode & S_IFDIR) { in phar_mount_entry()
227 entry.uncompressed_filesize = entry.compressed_filesize = ssb.sb.st_size; in phar_mount_entry()
230 entry.flags = ssb.sb.st_mode; in phar_mount_entry()
1322 if (ssb.sb.st_mode & S_IFDIR && !dir) { in phar_get_entry_info_dir()
1330 if ((ssb.sb.st_mode & S_IFDIR) == 0 && dir) { in phar_get_entry_info_dir()
/PHP-7.4/ext/session/
H A Dsession.c1143 zend_stat_t sb; in last_modified() local
1148 if (VCWD_STAT(path, &sb) == -1) { in last_modified()
1154 strcpy_gmt(buf + sizeof(LAST_MODIFIED) - 1, &sb.st_mtime); in last_modified()
/PHP-7.4/ext/snmp/tests/
H A Dsnmp2_set.phpt101 $z = snmp2_set($hostname, $communityWrite, array($oid1, $oid2), array('s','sb'), array($newvalue1, …
209 Warning: snmp2_set(): '%s': bogus type 'sb', should be single char, got 2 in %s on line %d
H A Dsnmpset.phpt101 $z = snmpset($hostname, $communityWrite, array($oid1, $oid2), array('s','sb'), array($newvalue1, $n…
209 Warning: snmpset(): '%s': bogus type 'sb', should be single char, got 2 in %s on line %d
/PHP-7.4/ext/sqlite3/
H A Dsqlite3.c1265 ssb->sb.st_size = sqlite3_stream->size; in php_sqlite3_stream_stat()
/PHP-7.4/ext/standard/
H A Dfile.c1584 ZVAL_LONG(&stat_dev, stat_ssb.sb.st_dev); in PHP_NAMED_FUNCTION()
1585 ZVAL_LONG(&stat_ino, stat_ssb.sb.st_ino); in PHP_NAMED_FUNCTION()
1586 ZVAL_LONG(&stat_mode, stat_ssb.sb.st_mode); in PHP_NAMED_FUNCTION()
1588 ZVAL_LONG(&stat_uid, stat_ssb.sb.st_uid); in PHP_NAMED_FUNCTION()
1589 ZVAL_LONG(&stat_gid, stat_ssb.sb.st_gid); in PHP_NAMED_FUNCTION()
1591 ZVAL_LONG(&stat_rdev, stat_ssb.sb.st_rdev); in PHP_NAMED_FUNCTION()
1595 ZVAL_LONG(&stat_size, stat_ssb.sb.st_size); in PHP_NAMED_FUNCTION()
1705 if (S_ISDIR(src_s.sb.st_mode)) { in php_copy_file_ctx()
1720 if (S_ISDIR(dest_s.sb.st_mode)) { in php_copy_file_ctx()
1724 if (!src_s.sb.st_ino || !dest_s.sb.st_ino) { in php_copy_file_ctx()
[all …]
H A Dfilestat.c833 stat_sb = &ssb.sb; in php_stat()
836 if(ssb.sb.st_uid==getuid()) { in php_stat()
840 } else if(ssb.sb.st_gid==getgid()) { in php_stat()
853 if(ssb.sb.st_gid==gids[i]) { in php_stat()
880 RETURN_LONG((zend_long)ssb.sb.st_ino); in php_stat()
884 RETURN_LONG((zend_long)ssb.sb.st_uid); in php_stat()
894 if (S_ISLNK(ssb.sb.st_mode)) { in php_stat()
897 switch(ssb.sb.st_mode & S_IFMT) { in php_stat()
916 RETURN_BOOL(S_ISREG(ssb.sb.st_mode)); in php_stat()
918 RETURN_BOOL(S_ISDIR(ssb.sb.st_mode)); in php_stat()
[all …]
H A Dftp_fopen_wrapper.c805 ssb->sb.st_mode |= S_IFREG; in php_stream_ftp_url_stat()
825 ssb->sb.st_size = 0; in php_stream_ftp_url_stat()
874 ssb->sb.st_mtime = -1; in php_stream_ftp_url_stat()
878 ssb->sb.st_dev = 0; in php_stream_ftp_url_stat()
879 ssb->sb.st_uid = 0; in php_stream_ftp_url_stat()
880 ssb->sb.st_gid = 0; in php_stream_ftp_url_stat()
881 ssb->sb.st_atime = -1; in php_stream_ftp_url_stat()
882 ssb->sb.st_ctime = -1; in php_stream_ftp_url_stat()
884 ssb->sb.st_nlink = 1; in php_stream_ftp_url_stat()
885 ssb->sb.st_rdev = -1; in php_stream_ftp_url_stat()
[all …]

Completed in 263 milliseconds

12