Home
last modified time | relevance | path

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

12

/PHP-5.5/ext/fileinfo/
H A Dfileinfo.c523 if (ssb.sb.st_mode & S_IFDIR) {
542 if (ssb.sb.st_mode & S_IFDIR) {
H A Dlibmagic.patch622 + if (st.sb.st_size < 8) {
642 + if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) {
1623 - ret = lstat(fn, sb);
1642 + memcpy(sb, &ssb.sb, sizeof(struct stat));
1661 - if (sb->st_mode & S_ISUID)
1713 COMMA, major(sb->st_rdev), dv_unit(sb->st_rdev),
1753 - COMMA, major(sb->st_rdev), dv_unit(sb->st_rdev),
2366 const struct stat *sb)
2413 struct stat sb;
2445 - if (fstat(fd, &sb) == 0 && S_ISFIFO(sb.st_mode))
[all …]
/PHP-5.5/ext/fileinfo/libmagic/
H A Dapprentice.c784 size_t sb = apprentice_magic_strength(mb->mp); in apprentice_sort() local
785 if (sa == sb) in apprentice_sort()
787 else if (sa > sb) in apprentice_sort()
2618 if (st.sb.st_mode & S_IFDIR) { in apprentice_map()
2643 if (st.sb.st_size < 8) { in apprentice_map()
2648 map->len = (size_t)st.sb.st_size; in apprentice_map()
2653 if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) { in apprentice_map()
2693 nentries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); in apprentice_map()
2694 entries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); in apprentice_map()
2695 if ((off_t)(entries * sizeof(struct magic)) != st.sb.st_size) { in apprentice_map()
[all …]
H A Dfsmagic.c117 memcpy(sb, &ssb.sb, sizeof(struct stat)); in file_fsmagic()
119 if (php_sys_stat(fn, sb) != 0) { in file_fsmagic()
131 if (sb->st_mode & S_ISUID) in file_fsmagic()
136 if (sb->st_mode & S_ISGID) in file_fsmagic()
141 if (sb->st_mode & S_ISVTX) in file_fsmagic()
147 switch (sb->st_mode & S_IFMT) { in file_fsmagic()
167 COMMA, major(sb->st_rdev), dv_unit(sb->st_rdev), in file_fsmagic()
168 dv_subunit(sb->st_rdev)) == -1) in file_fsmagic()
172 COMMA, (long)major(sb->st_rdev), in file_fsmagic()
173 (long)minor(sb->st_rdev)) == -1) in file_fsmagic()
[all …]
H A Dmagic.c289 const struct stat *sb) in close_and_restore() argument
302 utsbuf[0].tv_sec = sb->st_atime; in close_and_restore()
303 utsbuf[1].tv_sec = sb->st_mtime; in close_and_restore()
310 utbuf.actime = sb->st_atime; in close_and_restore()
311 utbuf.modtime = sb->st_mtime; in close_and_restore()
353 struct stat sb; in file_or_stream() local
372 switch (file_fsmagic(ms, inname, &sb, stream)) { in file_or_stream()
394 if (unreadable_info(ms, sb.st_mode, inname) == -1) in file_or_stream()
423 close_and_restore(ms, inname, 0, &sb); in file_or_stream()
/PHP-5.5/ext/mysqli/tests/
H A D026.phpt22 mysqli_stmt_bind_param($stmt, "sb", $c1, $c2);
/PHP-5.5/ext/opcache/
H A DZendAccelerator.c673 *statbuf = stream_statbuf.sb; in zend_get_stream_timestamp()
789 php_stream_statbuf sb; in zend_get_file_handle_timestamp() local
801 ret = stream->ops->stat(stream, &sb TSRMLS_CC); in zend_get_file_handle_timestamp()
810 statbuf = sb.sb; in zend_get_file_handle_timestamp()
/PHP-5.5/ext/openssl/
H A Dopenssl.c1789 struct stat sb; in setup_verify() local
1796 if (VCWD_STAT(Z_STRVAL_PP(item), &sb) == -1) { in setup_verify()
1801 if ((sb.st_mode & S_IFREG) == S_IFREG) { in setup_verify()
/PHP-5.5/ext/pcre/pcrelib/testdata/
H A Dtestinput12554 /a\sb/
H A Dtestinput82880 /a\sb/
H A Dtestoutput14124 /a\sb/
H A Dtestoutput84603 /a\sb/
/PHP-5.5/ext/pdo_odbc/
H A Dodbc_stmt.c394 php_stream_statbuf sb; in odbc_stmt_param_hook() local
402 if (0 == php_stream_stat(stm, &sb)) { in odbc_stmt_param_hook()
425 P->len = SQL_LEN_DATA_AT_EXEC(sb.sb.st_size); in odbc_stmt_param_hook()
/PHP-5.5/ext/phar/
H A Dfunc_interceptors.c620 struct stat sb = {0}; in phar_file_stat() local
672 sb.st_size = 0; in phar_file_stat()
673 sb.st_mode = 0777; in phar_file_stat()
718 sb.st_size = 0; in phar_file_stat()
763 sb.st_size = 0; in phar_file_stat()
783 sb.st_mode = (sb.st_mode & 0555) | (sb.st_mode & ~0777); in phar_file_stat()
786 sb.st_nlink = 1; in phar_file_stat()
787 sb.st_rdev = -1; in phar_file_stat()
789 sb.st_dev = 0xc; in phar_file_stat()
795 sb.st_blksize = -1; in phar_file_stat()
[all …]
H A Dphar.c1762 if (ssb.sb.st_mode & S_IFDIR) {
1814 if (ssb.sb.st_mode & S_IFDIR) {
1826 if (ssb.sb.st_mode & S_IFDIR) {
H A Dphar_object.c2610 RETURN_BOOL((ssb.sb.st_mode & (S_IWOTH | S_IWGRP | S_IWUSR)) != 0); in PHP_METHOD()
4352 } else if (!(ssb.sb.st_mode & S_IFDIR)) { in PHP_METHOD()
H A Dstream.c495 ssb->sb.st_mtime = data->timestamp; in phar_dostat()
500 ssb->sb.st_size = 0; in phar_dostat()
514 ssb->sb.st_size = 0; in phar_dostat()
515 ssb->sb.st_mode = 0777; in phar_dostat()
528 ssb->sb.st_mode = (ssb->sb.st_mode & 0555) | (ssb->sb.st_mode & ~0777); in phar_dostat()
531 ssb->sb.st_nlink = 1; in phar_dostat()
532 ssb->sb.st_rdev = -1; in phar_dostat()
534 ssb->sb.st_dev = 0xc; in phar_dostat()
537 ssb->sb.st_ino = data->inode; in phar_dostat()
540 ssb->sb.st_blksize = -1; in phar_dostat()
[all …]
H A Dutil.c228 if (ssb.sb.st_mode & S_IFDIR) { in phar_mount_entry()
238 entry.uncompressed_filesize = entry.compressed_filesize = ssb.sb.st_size; in phar_mount_entry()
241 entry.flags = ssb.sb.st_mode; in phar_mount_entry()
1352 if (ssb.sb.st_mode & S_IFDIR && !dir) { in phar_get_entry_info_dir()
1360 if ((ssb.sb.st_mode & S_IFDIR) == 0 && dir) { in phar_get_entry_info_dir()
/PHP-5.5/ext/session/
H A Dsession.c1178 struct stat sb;
1183 if (VCWD_STAT(path, &sb) == -1) {
1189 strcpy_gmt(buf + sizeof(LAST_MODIFIED) - 1, &sb.st_mtime);
/PHP-5.5/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 %s
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 %s
/PHP-5.5/ext/sqlite3/
H A Dsqlite3.c1199 ssb->sb.st_size = sqlite3_stream->size;
/PHP-5.5/ext/standard/
H A Dfile.c1548 MAKE_LONG_ZVAL_INCREF(stat_dev, stat_ssb.sb.st_dev); in PHP_NAMED_FUNCTION()
1549 MAKE_LONG_ZVAL_INCREF(stat_ino, stat_ssb.sb.st_ino); in PHP_NAMED_FUNCTION()
1550 MAKE_LONG_ZVAL_INCREF(stat_mode, stat_ssb.sb.st_mode); in PHP_NAMED_FUNCTION()
1552 MAKE_LONG_ZVAL_INCREF(stat_uid, stat_ssb.sb.st_uid); in PHP_NAMED_FUNCTION()
1553 MAKE_LONG_ZVAL_INCREF(stat_gid, stat_ssb.sb.st_gid); in PHP_NAMED_FUNCTION()
1555 MAKE_LONG_ZVAL_INCREF(stat_rdev, stat_ssb.sb.st_rdev); in PHP_NAMED_FUNCTION()
1559 MAKE_LONG_ZVAL_INCREF(stat_size, stat_ssb.sb.st_size); in PHP_NAMED_FUNCTION()
1666 if (S_ISDIR(src_s.sb.st_mode)) { in php_copy_file_ctx()
1681 if (S_ISDIR(dest_s.sb.st_mode)) { in php_copy_file_ctx()
1685 if (!src_s.sb.st_ino || !dest_s.sb.st_ino) { in php_copy_file_ctx()
[all …]
H A Dfilestat.c914 stat_sb = &ssb.sb; in php_stat()
919 if(ssb.sb.st_uid==getuid()) { in php_stat()
936 if(ssb.sb.st_gid==gids[i]) { in php_stat()
965 RETURN_LONG((long)ssb.sb.st_mode); in php_stat()
967 RETURN_LONG((long)ssb.sb.st_ino); in php_stat()
969 RETURN_LONG((long)ssb.sb.st_size); in php_stat()
971 RETURN_LONG((long)ssb.sb.st_uid); in php_stat()
973 RETURN_LONG((long)ssb.sb.st_gid); in php_stat()
981 if (S_ISLNK(ssb.sb.st_mode)) { in php_stat()
984 switch(ssb.sb.st_mode & S_IFMT) { in php_stat()
[all …]
H A Dftp_fopen_wrapper.c802 ssb->sb.st_mode |= S_IFREG; in php_stream_ftp_url_stat()
822 ssb->sb.st_size = 0; in php_stream_ftp_url_stat()
871 ssb->sb.st_mtime = -1; in php_stream_ftp_url_stat()
875 ssb->sb.st_dev = 0; in php_stream_ftp_url_stat()
876 ssb->sb.st_uid = 0; in php_stream_ftp_url_stat()
877 ssb->sb.st_gid = 0; in php_stream_ftp_url_stat()
878 ssb->sb.st_atime = -1; in php_stream_ftp_url_stat()
879 ssb->sb.st_ctime = -1; in php_stream_ftp_url_stat()
881 ssb->sb.st_nlink = 1; in php_stream_ftp_url_stat()
882 ssb->sb.st_rdev = -1; in php_stream_ftp_url_stat()
[all …]

Completed in 144 milliseconds

12