Home
last modified time | relevance | path

Searched refs:ssb (Results 1 – 25 of 31) sorted by relevance

12

/php-src/ext/zip/
H A Dzip_stream.c166 memset(ssb, 0, sizeof(php_stream_statbuf)); in php_zip_ops_stat()
175 ssb->sb.st_size = sb.size; in php_zip_ops_stat()
178 ssb->sb.st_size = 0; in php_zip_ops_stat()
182 ssb->sb.st_mtime = sb.mtime; in php_zip_ops_stat()
183 ssb->sb.st_atime = sb.mtime; in php_zip_ops_stat()
184 ssb->sb.st_ctime = sb.mtime; in php_zip_ops_stat()
185 ssb->sb.st_nlink = 1; in php_zip_ops_stat()
186 ssb->sb.st_rdev = -1; in php_zip_ops_stat()
188 ssb->sb.st_blksize = -1; in php_zip_ops_stat()
189 ssb->sb.st_blocks = -1; in php_zip_ops_stat()
[all …]
H A Dphp_zip.c126 php_stream_statbuf ssb; in php_zip_extract_file() local
193 if (php_stream_stat_path_ex(file_dirname_fullpath, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL) < 0) { in php_zip_extract_file()
291 php_stream_statbuf ssb; in php_zip_add_file() local
302 if (php_stream_stat_path_ex(resolved_path, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL)) { in php_zip_add_file()
2807 php_stream_statbuf ssb; local
2824 if (php_stream_stat_path_ex(pathto, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL) < 0) {
/php-src/ext/phar/
H A Dstream.c504 ssb->sb.st_size = 0; in phar_dostat()
512 ssb->sb.st_size = 0; in phar_dostat()
513 ssb->sb.st_mode = 0777; in phar_dostat()
520 ssb->sb.st_mode = (ssb->sb.st_mode & 0555) | (ssb->sb.st_mode & ~0777); in phar_dostat()
523 ssb->sb.st_nlink = 1; in phar_dostat()
524 ssb->sb.st_rdev = -1; in phar_dostat()
526 ssb->sb.st_dev = 0xc; in phar_dostat()
529 ssb->sb.st_ino = data->inode; in phar_dostat()
532 ssb->sb.st_blksize = -1; in phar_dostat()
533 ssb->sb.st_blocks = -1; in phar_dostat()
[all …]
H A Dstream.h29 …p_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context…
37 static int phar_stream_stat( php_stream *stream, php_stream_statbuf *ssb);
H A Dutil.c192 php_stream_statbuf ssb; in phar_mount_entry() local
234 if (SUCCESS != php_stream_stat_path(filename, &ssb)) { in phar_mount_entry()
240 if (ssb.sb.st_mode & S_IFDIR) { in phar_mount_entry()
250 entry.uncompressed_filesize = entry.compressed_filesize = ssb.sb.st_size; in phar_mount_entry()
253 entry.flags = ssb.sb.st_mode; in phar_mount_entry()
1345 php_stream_statbuf ssb; in phar_get_entry_info_dir() local
1363 if (SUCCESS != php_stream_stat_path(test, &ssb)) { in phar_get_entry_info_dir()
1368 if ((ssb.sb.st_mode & S_IFDIR) && !dir) { in phar_get_entry_info_dir()
1376 if ((ssb.sb.st_mode & S_IFDIR) == 0 && dir) { in phar_get_entry_info_dir()
H A Dphar_object.c1408 php_stream_statbuf ssb; in phar_build() local
1476 if (php_stream_stat_path(fname, &ssb) == 0 && S_ISDIR(ssb.sb.st_mode)) { in phar_build()
1676 if (php_stream_stat(fp, &ssb) != -1) { in phar_build()
1993 php_stream_statbuf ssb; in phar_rename_archive() local
2153 if (SUCCESS == php_stream_stat_path(newpath, &ssb)) { in phar_rename_archive()
2587 php_stream_statbuf ssb; in PHP_METHOD() local
3611 php_stream_statbuf ssb; in phar_add_file() local
4131 php_stream_statbuf ssb; in phar_extract_file() local
4344 php_stream_statbuf ssb; in PHP_METHOD() local
4387 if (php_stream_stat_path(pathto, &ssb) < 0) { in PHP_METHOD()
[all …]
H A Dphar.c1811 php_stream_statbuf ssb; in phar_analyze_path() local
1833 if (SUCCESS == php_stream_stat_path((char *) filename, &ssb)) { in phar_analyze_path()
1837 if (ssb.sb.st_mode & S_IFDIR) { in phar_analyze_path()
1860 if (SUCCESS != php_stream_stat_path((char *) filename, &ssb)) { in phar_analyze_path()
1884 if (SUCCESS != php_stream_stat_path(realpath, &ssb)) { in phar_analyze_path()
1892 if (ssb.sb.st_mode & S_IFDIR) { in phar_analyze_path()
1904 if (ssb.sb.st_mode & S_IFDIR) { in phar_analyze_path()
H A Ddirstream.c24 void phar_dostat(phar_archive_data *phar, phar_entry_info *data, php_stream_statbuf *ssb, bool is_d…
/php-src/ext/standard/
H A Dftp_fopen_wrapper.c781 if (!ssb) return -1; in php_stream_ftp_url_stat()
812 ssb->sb.st_size = 0; in php_stream_ftp_url_stat()
861 ssb->sb.st_mtime = -1; in php_stream_ftp_url_stat()
865 ssb->sb.st_dev = 0; in php_stream_ftp_url_stat()
866 ssb->sb.st_uid = 0; in php_stream_ftp_url_stat()
867 ssb->sb.st_gid = 0; in php_stream_ftp_url_stat()
868 ssb->sb.st_atime = -1; in php_stream_ftp_url_stat()
869 ssb->sb.st_ctime = -1; in php_stream_ftp_url_stat()
871 ssb->sb.st_nlink = 1; in php_stream_ftp_url_stat()
872 ssb->sb.st_rdev = -1; in php_stream_ftp_url_stat()
[all …]
H A Dfilestat.c733 php_stream_statbuf ssb = {0}; in php_stat() local
734 zend_stat_t *stat_sb = &ssb.sb; in php_stat()
806 stat_sb = &BG(ssb).sb; in php_stat()
827 …|| wrapper->wops->url_stat(wrapper, local, flags | PHP_STREAM_URL_STAT_IGNORE_OPEN_BASEDIR, &ssb, … in php_stat()
841 memcpy(&BG(lssb), &ssb, sizeof(php_stream_statbuf)); in php_stat()
844 || !S_ISLNK(ssb.sb.st_mode)) { in php_stat()
849 memcpy(&BG(ssb), &ssb, sizeof(php_stream_statbuf)); in php_stat()
H A Dbasic_functions.h80 php_stream_statbuf ssb, lssb; member
/php-src/main/streams/
H A Dmemory.c194 memset(ssb, 0, sizeof(php_stream_statbuf)); in php_stream_memory_stat()
199 ssb->sb.st_size = ZSTR_LEN(ms->data); in php_stream_memory_stat()
201 ssb->sb.st_mtime = timestamp; in php_stream_memory_stat()
202 ssb->sb.st_atime = timestamp; in php_stream_memory_stat()
203 ssb->sb.st_ctime = timestamp; in php_stream_memory_stat()
204 ssb->sb.st_nlink = 1; in php_stream_memory_stat()
205 ssb->sb.st_rdev = -1; in php_stream_memory_stat()
207 ssb->sb.st_dev = 0xC; in php_stream_memory_stat()
209 ssb->sb.st_ino = 0; in php_stream_memory_stat()
212 ssb->sb.st_blksize = -1; in php_stream_memory_stat()
[all …]
H A Duserspace.c47 …p_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context…
801 static void statbuf_from_array(zval *array, php_stream_statbuf *ssb) in statbuf_from_array() argument
807 ssb->sb.st_##name2 = zval_get_long(elem); \ in statbuf_from_array()
812 memset(ssb, 0, sizeof(php_stream_statbuf)); in statbuf_from_array()
837 static int php_userstreamop_stat(php_stream *stream, php_stream_statbuf *ssb) in php_userstreamop_stat() argument
850 statbuf_from_array(&retval, ssb); in php_userstreamop_stat()
1264 php_stream_statbuf *ssb, php_stream_context *context) in user_wrapper_stat_url() argument
1289 statbuf_from_array(&zretval, ssb); in user_wrapper_stat_url()
H A Dplain_wrapper.c657 static int php_stdiop_stat(php_stream *stream, php_stream_statbuf *ssb) in php_stdiop_stat() argument
664 memcpy(&ssb->sb, &data->sb, sizeof(ssb->sb)); in php_stdiop_stat()
1217 …p_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context… in php_plain_files_url_stater() argument
1231 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater()
1236 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater()
1240 return VCWD_STAT(url, &ssb->sb); in php_plain_files_url_stater()
H A Dstreams.c859 PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb) in _php_stream_stat() argument
861 memset(ssb, 0, sizeof(*ssb)); in _php_stream_stat()
865 return stream->wrapper->wops->stream_stat(stream->wrapper, stream, ssb); in _php_stream_stat()
876 return (stream->ops->stat)(stream, ssb); in _php_stream_stat()
2118 PHPAPI int _php_stream_stat_path(const char *path, int flags, php_stream_statbuf *ssb, php_stream_c… argument
2123 memset(ssb, 0, sizeof(*ssb));
2127 return wrapper->wops->url_stat(wrapper, path_to_open, flags, ssb, context);
H A Dxp_socket.c264 static int php_sockop_stat(php_stream *stream, php_stream_statbuf *ssb) in php_sockop_stat() argument
271 return zend_fstat(sock->socket, &ssb->sb); in php_sockop_stat()
/php-src/main/
H A Dphp_streams.h127 int (*stat)(php_stream *stream, php_stream_statbuf *ssb);
138 int (*stream_stat)(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb);
140 …int (*url_stat)(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, …
363 PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb);
364 #define php_stream_stat(stream, ssb) _php_stream_stat((stream), (ssb)) argument
366 PHPAPI int _php_stream_stat_path(const char *path, int flags, php_stream_statbuf *ssb, php_stream_c…
367 #define php_stream_stat_path(path, ssb) _php_stream_stat_path((path), 0, (ssb), NULL) argument
368 #define php_stream_stat_path_ex(path, flags, ssb, context) _php_stream_stat_path((path), (flags), ( argument
H A Dbuild-defs.h.in13 | Author: Stig Sæther Bakken <ssb@php.net> |
H A Dfopen_wrappers.c582 php_stream_statbuf ssb; local
584 … if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL)) {
622 php_stream_statbuf ssb; local
624 … if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL)) {
H A Dmain.c1601 php_stream_statbuf ssb; in php_zend_stream_fsizer() local
1609 if (php_stream_stat(stream, &ssb) == 0) { in php_zend_stream_fsizer()
1610 return ssb.sb.st_size; in php_zend_stream_fsizer()
/php-src/ext/fileinfo/
H A Dfileinfo.c374 php_stream_statbuf ssb; in _php_finfo_get_type() local
394 if (php_stream_stat_path_ex(buffer, 0, &ssb, context) == SUCCESS) { in _php_finfo_get_type()
395 if (ssb.sb.st_mode & S_IFDIR) { in _php_finfo_get_type()
409 if (php_stream_stat(stream, &ssb) == SUCCESS) { in _php_finfo_get_type()
410 if (ssb.sb.st_mode & S_IFDIR) { in _php_finfo_get_type()
/php-src/ext/fileinfo/libmagic/
H A Dmagic.c238 php_stream_statbuf ssb; in file_or_stream() local
239 if (php_stream_stat(stream, &ssb) < 0) { in file_or_stream()
246 memcpy(&sb, &ssb.sb, sizeof(zend_stat_t)); in file_or_stream()
/php-src/ext/pdo_sqlite/
H A Dpdo_sqlite.c267 static int php_pdosqlite3_stream_stat(php_stream *stream, php_stream_statbuf *ssb) in php_pdosqlite3_stream_stat() argument
270 ssb->sb.st_size = sqlite3_stream->size; in php_pdosqlite3_stream_stat()
/php-src/ext/dba/
H A Ddba.c703 php_stream_statbuf ssb; in php_dba_open() local
704 need_creation = (SUCCESS != php_stream_stat_path(ZSTR_VAL(path), &ssb)); in php_dba_open()
/php-src/sapi/phpdbg/
H A Dphpdbg_bp.c258 php_stream_statbuf ssb; in phpdbg_set_breakpoint_file() local
277 if (php_stream_stat_path(path, &ssb) == FAILURE) { in phpdbg_set_breakpoint_file()
287 } else if (!(ssb.sb.st_mode & (S_IFREG|S_IFLNK))) { in phpdbg_set_breakpoint_file()

Completed in 92 milliseconds

12