Home
last modified time | relevance | path

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

12

/PHP-7.3/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.patch973 + if (st.sb.st_size < 8 || st.sb.st_size > MAXMAGIC_SIZE) {
2529 - ret = lstat(fn, sb);
2545 - sb->st_mode = S_IFBLK;
2574 + memcpy(sb, &ssb.sb, sizeof(struct stat));
2654 COMMA, major(sb->st_rdev), dv_unit(sb->st_rdev),
2682 - COMMA, major(sb->st_rdev), dv_unit(sb->st_rdev),
3456 - const struct stat *sb)
3500 - struct stat sb;
3501 + zend_stat_t sb;
3539 - if (fstat(fd, &sb) == 0 && S_ISFIFO(sb.st_mode))
[all …]
/PHP-7.3/ext/fileinfo/libmagic/
H A Dapprentice.c922 size_t sb = apprentice_magic_strength(mb->mp); in apprentice_sort() local
923 if (sa == sb) in apprentice_sort()
925 else if (sa > sb) in apprentice_sort()
2982 if (st.sb.st_mode & S_IFDIR) { in apprentice_map()
3002 if (st.sb.st_size < 8 || st.sb.st_size > MAXMAGIC_SIZE) { in apprentice_map()
3004 st.sb.st_size < 8 ? "small" : "large"); in apprentice_map()
3008 map->len = (size_t)st.sb.st_size; in apprentice_map()
3013 if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) { in apprentice_map()
3053 nentries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); in apprentice_map()
3054 entries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); in apprentice_map()
[all …]
H A Dfsmagic.c111 memcpy(sb, &ssb.sb, sizeof(struct stat)); in file_fsmagic()
113 if (php_sys_stat(fn, sb) != 0) { in file_fsmagic()
125 if (sb->st_mode & S_ISUID) in file_fsmagic()
130 if (sb->st_mode & S_ISGID) in file_fsmagic()
135 if (sb->st_mode & S_ISVTX) in file_fsmagic()
141 switch (sb->st_mode & S_IFMT) { in file_fsmagic()
161 COMMA, major(sb->st_rdev), dv_unit(sb->st_rdev), in file_fsmagic()
162 dv_subunit(sb->st_rdev)) == -1) in file_fsmagic()
166 COMMA, (long)major(sb->st_rdev), in file_fsmagic()
167 (long)minor(sb->st_rdev)) == -1) in file_fsmagic()
[all …]
H A Dmagic.c162 const zend_stat_t *sb) in close_and_restore() argument
178 utsbuf[0].tv_sec = sb->st_atime; in close_and_restore()
179 utsbuf[1].tv_sec = sb->st_mtime; in close_and_restore()
186 utbuf.actime = sb->st_atime; in close_and_restore()
187 utbuf.modtime = sb->st_mtime; in close_and_restore()
229 zend_stat_t sb; in file_or_stream() local
248 switch (file_fsmagic(ms, inname, &sb, stream)) { in file_or_stream()
266 if (unreadable_info(ms, sb.st_mode, inname) == -1) in file_or_stream()
/PHP-7.3/ext/fileinfo/tests/
H A Dmagic9240 >0 ubyte 0xfd Linux RAID partition persistent sb
H A Dmagic私はガラスを食べられます9240 >0 ubyte 0xfd Linux RAID partition persistent sb
/PHP-7.3/ext/hash/tests/
H A Dfnv1a32.phpt237 array( 'axuETGoA{fFG"0&6G$4sb!_upS#[{5h^.^$c\'t%#[LK]\\Q', '8520630b' ),
/PHP-7.3/ext/mbstring/oniguruma/src/
H A Dregcomp.c5338 OptStr sb; /* boundary */ member
5829 clear_opt_exact(&opt->sb); in clear_node_opt_info()
5860 sb_reach = to->sb.reach_end; in concat_left_node_opt_info()
5866 if (add->sb.len > 0) { in concat_left_node_opt_info()
5868 concat_opt_exact(&to->sb, &add->sb, enc); in concat_left_node_opt_info()
5869 clear_opt_exact(&add->sb); in concat_left_node_opt_info()
5899 alt_merge_opt_exact(&to->sb, &add->sb, env); in alt_merge_node_opt_info()
5970 opt->sb.case_fold = 1; in optimize_nodes()
6070 if (xo.sb.len > 0) in optimize_nodes()
6135 if (xo.sb.len > 0) { in optimize_nodes()
[all …]
/PHP-7.3/ext/mysqli/tests/
H A D026.phpt22 mysqli_stmt_bind_param($stmt, "sb", $c1, $c2);
/PHP-7.3/ext/opcache/
H A DZendAccelerator.c898 *statbuf = stream_statbuf.sb; in zend_get_stream_timestamp()
1010 php_stream_statbuf sb; in zend_get_file_handle_timestamp() local
1022 ret = stream->ops->stat(stream, &sb); in zend_get_file_handle_timestamp()
1031 statbuf = sb.sb; in zend_get_file_handle_timestamp()
/PHP-7.3/ext/openssl/
H A Dopenssl.c2615 zend_stat_t sb; in php_openssl_setup_verify() local
2628 if (VCWD_STAT(Z_STRVAL_P(item), &sb) == -1) { in php_openssl_setup_verify()
2633 if ((sb.st_mode & S_IFREG) == S_IFREG) { in php_openssl_setup_verify()
/PHP-7.3/ext/pdo_odbc/
H A Dodbc_stmt.c406 php_stream_statbuf sb; in odbc_stmt_param_hook() local
414 if (0 == php_stream_stat(stm, &sb)) { in odbc_stmt_param_hook()
437 P->len = SQL_LEN_DATA_AT_EXEC(sb.sb.st_size); in odbc_stmt_param_hook()
/PHP-7.3/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) {
1845 if (ssb.sb.st_mode & S_IFDIR) {
1857 if (ssb.sb.st_mode & S_IFDIR) {
H A Dphar_object.c1677 data->internal_file->flags = ssb.sb.st_mode & PHAR_ENT_PERM_MASK ; in phar_build()
2615 RETURN_BOOL((ssb.sb.st_mode & (S_IWOTH | S_IWGRP | S_IWUSR)) != 0); in PHP_METHOD()
3673 data->internal_file->flags = ssb.sb.st_mode & PHAR_ENT_PERM_MASK ; in phar_add_file()
4373 } 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.c219 if (ssb.sb.st_mode & S_IFDIR) { in phar_mount_entry()
229 entry.uncompressed_filesize = entry.compressed_filesize = ssb.sb.st_size; in phar_mount_entry()
232 entry.flags = ssb.sb.st_mode; in phar_mount_entry()
1324 if (ssb.sb.st_mode & S_IFDIR && !dir) { in phar_get_entry_info_dir()
1332 if ((ssb.sb.st_mode & S_IFDIR) == 0 && dir) { in phar_get_entry_info_dir()
/PHP-7.3/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.3/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.3/ext/sqlite3/
H A Dsqlite3.c1209 ssb->sb.st_size = sqlite3_stream->size; in php_sqlite3_stream_stat()
/PHP-7.3/ext/standard/
H A Dfile.c1587 ZVAL_LONG(&stat_dev, stat_ssb.sb.st_dev); in PHP_NAMED_FUNCTION()
1588 ZVAL_LONG(&stat_ino, stat_ssb.sb.st_ino); in PHP_NAMED_FUNCTION()
1589 ZVAL_LONG(&stat_mode, stat_ssb.sb.st_mode); in PHP_NAMED_FUNCTION()
1591 ZVAL_LONG(&stat_uid, stat_ssb.sb.st_uid); in PHP_NAMED_FUNCTION()
1592 ZVAL_LONG(&stat_gid, stat_ssb.sb.st_gid); in PHP_NAMED_FUNCTION()
1599 if ((int)stat_ssb.sb.st_rdev < 0) { in PHP_NAMED_FUNCTION()
1605 ZVAL_LONG(&stat_rdev, stat_ssb.sb.st_rdev); in PHP_NAMED_FUNCTION()
1720 if (S_ISDIR(src_s.sb.st_mode)) { in php_copy_file_ctx()
1735 if (S_ISDIR(dest_s.sb.st_mode)) { in php_copy_file_ctx()
1739 if (!src_s.sb.st_ino || !dest_s.sb.st_ino) { in php_copy_file_ctx()
[all …]
H A Dfilestat.c825 stat_sb = &ssb.sb; in php_stat()
828 if(ssb.sb.st_uid==getuid()) { in php_stat()
832 } else if(ssb.sb.st_gid==getgid()) { in php_stat()
845 if(ssb.sb.st_gid==gids[i]) { in php_stat()
872 RETURN_LONG((zend_long)ssb.sb.st_ino); in php_stat()
876 RETURN_LONG((zend_long)ssb.sb.st_uid); in php_stat()
886 if (S_ISLNK(ssb.sb.st_mode)) { in php_stat()
889 switch(ssb.sb.st_mode & S_IFMT) { in php_stat()
908 RETURN_BOOL(S_ISREG(ssb.sb.st_mode)); in php_stat()
910 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 330 milliseconds

12