Home
last modified time | relevance | path

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

12

/PHP-5.5/ext/fileinfo/libmagic/
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/zip/
H A Dzip_stream.c102 struct zip_stat sb; in php_zip_ops_stat() local
154 ssb->sb.st_size = sb.size; in php_zip_ops_stat()
157 ssb->sb.st_size = 0; in php_zip_ops_stat()
161 ssb->sb.st_mtime = sb.mtime; in php_zip_ops_stat()
162 ssb->sb.st_atime = sb.mtime; in php_zip_ops_stat()
163 ssb->sb.st_ctime = sb.mtime; in php_zip_ops_stat()
164 ssb->sb.st_nlink = 1; in php_zip_ops_stat()
165 ssb->sb.st_rdev = -1; in php_zip_ops_stat()
167 ssb->sb.st_blksize = -1; in php_zip_ops_stat()
168 ssb->sb.st_blocks = -1; in php_zip_ops_stat()
[all …]
H A Dphp_zip.c142 struct zip_stat sb; in php_zip_extract_file() local
1614 struct zip_stat sb; in ZIPARCHIVE_METHOD() local
1889 struct zip_stat sb; in ZIPARCHIVE_METHOD() local
1904 RETURN_SB(&sb); in ZIPARCHIVE_METHOD()
1916 struct zip_stat sb; in ZIPARCHIVE_METHOD() local
1932 RETURN_SB(&sb); in ZIPARCHIVE_METHOD()
2097 struct zip_stat sb; in ZIPARCHIVE_METHOD() local
2161 struct zip_stat sb; in ZIPARCHIVE_METHOD() local
2218 struct zip_stat sb; in ZIPARCHIVE_METHOD() local
2544 if (sb.size < 1) { in php_zip_get_from()
[all …]
H A Dphp_zip.h66 struct zip_stat sb; member
/PHP-5.5/ext/zip/tests/
H A Doo_delete.phpt60 $sb = $zip->statIndex(0);
61 var_dump($sb);
62 $sb = $zip->statIndex(1);
63 var_dump($sb);
64 $sb = $zip->statIndex(2);
65 var_dump($sb);
H A Dutils.inc5 $sb = $z->statIndex($i);
6 echo $i . ' ' . $sb['name'] . "\n";
H A Dbug7658.phpt44 $sb = $zip->statIndex($i);
45 $found[] = $sb['name'];
/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 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 …]
/PHP-5.5/main/streams/
H A Dmemory.c215 ssb->sb.st_size = ms->fsize; in php_stream_memory_stat()
219 ssb->sb.st_mtime.tv_sec = timestamp; in php_stream_memory_stat()
223 ssb->sb.st_mtime = timestamp; in php_stream_memory_stat()
224 ssb->sb.st_atime = timestamp; in php_stream_memory_stat()
225 ssb->sb.st_ctime = timestamp; in php_stream_memory_stat()
228 ssb->sb.st_nlink = 1; in php_stream_memory_stat()
229 ssb->sb.st_rdev = -1; in php_stream_memory_stat()
231 ssb->sb.st_dev = 0xC; in php_stream_memory_stat()
233 ssb->sb.st_ino = 0; in php_stream_memory_stat()
236 ssb->sb.st_blksize = -1; in php_stream_memory_stat()
[all …]
H A Dplain_wrapper.c136 struct stat sb; member
147 r = fstat(fd, &d->sb); in do_fstat()
578 memcpy(&ssb->sb, &data->sb, sizeof(ssb->sb)); in php_stdiop_stat()
673 range->length = data->sb.st_size; in php_stdiop_set_option()
1046 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater()
1052 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater()
1056 return VCWD_STAT(url, &ssb->sb); in php_plain_files_url_stater()
1122 struct stat sb; in php_plain_files_rename() local
1135 if (VCWD_CHOWN(url_to, sb.st_uid, sb.st_gid)) { in php_plain_files_rename()
1183 struct stat sb; in php_plain_files_mkdir() local
[all …]
/PHP-5.5/ext/standard/
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 …]
H A Dlink.c90 struct stat sb; in PHP_FUNCTION() local
105 ret = VCWD_LSTAT(link, &sb); in PHP_FUNCTION()
113 RETURN_LONG((long) sb.st_dev); in PHP_FUNCTION()
H A Dlink_win32.c91 struct stat sb; in PHP_FUNCTION() local
98 ret = VCWD_STAT(link, &sb); in PHP_FUNCTION()
104 RETURN_LONG((long) sb.st_dev); in PHP_FUNCTION()
H A Diptc.c196 struct stat sb; in PHP_FUNCTION() local
218 fstat(fileno(fp), &sb); in PHP_FUNCTION()
220 poi = spoolbuf = safe_emalloc(1, (size_t)iptcdata_len + sizeof(psheader) + 1024 + 1, sb.st_size); in PHP_FUNCTION()
221 memset(poi, 0, iptcdata_len + sizeof(psheader) + sb.st_size + 1024 + 1); in PHP_FUNCTION()
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 …]
/PHP-5.5/win32/
H A Dglob.c564 struct stat sb; local
575 if (g_lstat(pathbuf, &sb, pglob))
580 (S_ISLNK(sb.st_mode) &&
582 S_ISDIR(sb.st_mode)))) {
859 g_lstat(fn, sb, pglob) in g_lstat() argument
861 struct stat *sb;
870 return(php_sys_lstat(buf, sb));
874 g_stat(fn, sb, pglob) in g_stat() argument
876 struct stat *sb;
884 return((*pglob->gl_stat)(buf, sb));
[all …]
/PHP-5.5/sapi/phttpd/
H A Dphttpd.c36 struct stat sb; member
192 …if (url_expand(PHG(cip)->hip->url, SG(request_info).path_translated, MAXPATHLEN, &PHG(sb), NULL, N… in php_phttpd_request_ctor()
243 struct stat sb; in php_doit() local
/PHP-5.5/ext/fileinfo/
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/main/
H A Dphp_ini.c626 struct stat sb; in php_init_config() local
669 if (VCWD_STAT(ini_file, &sb) == 0) { in php_init_config()
670 if (S_ISREG(sb.st_mode)) { in php_init_config()
756 struct stat sb; in php_parse_user_ini_file() local
762 if (VCWD_STAT(ini_file, &sb) == 0) { in php_parse_user_ini_file()
763 if (S_ISREG(sb.st_mode)) { in php_parse_user_ini_file()
/PHP-5.5/ext/standard/tests/strings/
H A Dstrval_variation2.phpt23 $sb = "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf";
51 echo bin2hex(strval($sb));
/PHP-5.5/ext/mysqli/tests/
H A D026.phpt22 mysqli_stmt_bind_param($stmt, "sb", $c1, $c2);
/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()

Completed in 100 milliseconds

12