Searched refs:ssb (Results 1 - 25 of 26) sorted by relevance

12

/PHP_5_6/ext/phar/
H A Ddirstream.c25 void phar_dostat(phar_archive_data *phar, phar_entry_info *data, php_stream_statbuf *ssb, zend_bool is_dir TSRMLS_DC);
H A Dphar.c1738 php_stream_statbuf ssb; local
1760 if (SUCCESS == php_stream_stat_path((char *) filename, &ssb)) {
1764 if (ssb.sb.st_mode & S_IFDIR) {
1787 if (SUCCESS != php_stream_stat_path((char *) filename, &ssb)) {
1808 if (SUCCESS != php_stream_stat_path(realpath, &ssb)) {
1816 if (ssb.sb.st_mode & S_IFDIR) {
1828 if (ssb.sb.st_mode & S_IFDIR) {
H A Dstream.c481 void phar_dostat(phar_archive_data *phar, phar_entry_info *data, php_stream_statbuf *ssb, zend_bool is_temp_dir TSRMLS_DC) argument
483 memset(ssb, 0, sizeof(php_stream_statbuf));
486 ssb->sb.st_size = data->uncompressed_filesize;
487 ssb->sb.st_mode = data->flags & PHAR_ENT_PERM_MASK;
488 ssb->sb.st_mode |= S_IFREG; /* regular file */
491 ssb->sb.st_mtime.tv_sec = data->timestamp;
492 ssb->sb.st_atime.tv_sec = data->timestamp;
493 ssb->sb.st_ctime.tv_sec = data->timestamp;
495 ssb->sb.st_mtime = data->timestamp;
496 ssb
566 phar_wrapper_stat(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC) argument
[all...]
H A Dstream.h30 static int phar_wrapper_stat(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC);
38 static int phar_stream_stat( php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC);
H A Dutil.c173 php_stream_statbuf ssb; local
222 if (SUCCESS != php_stream_stat_path(filename, &ssb)) {
228 if (ssb.sb.st_mode & S_IFDIR) {
238 entry.uncompressed_filesize = entry.compressed_filesize = ssb.sb.st_size;
241 entry.flags = ssb.sb.st_mode;
1317 php_stream_statbuf ssb; local
1335 if (SUCCESS != php_stream_stat_path(test, &ssb)) {
1340 if (ssb.sb.st_mode & S_IFDIR && !dir) {
1348 if ((ssb.sb.st_mode & S_IFDIR) == 0 && dir) {
H A Dphar_object.c2035 php_stream_statbuf ssb; local
2143 if (SUCCESS == php_stream_stat_path(newpath, &ssb)) {
2586 php_stream_statbuf ssb; local
2597 if (SUCCESS != php_stream_stat_path(phar_obj->arc.archive->fname, &ssb)) {
2605 RETURN_BOOL((ssb.sb.st_mode & (S_IWOTH | S_IWGRP | S_IWUSR)) != 0);
4109 php_stream_statbuf ssb; local
4155 if (!overwrite && SUCCESS == php_stream_stat_path(fullpath, &ssb)) {
4170 if (FAILURE == php_stream_stat_path(fullpath, &ssb)) {
4258 php_stream_statbuf ssb; local
4298 if (php_stream_stat_path(pathto, &ssb) <
[all...]
/PHP_5_6/ext/standard/
H A Dbasic_functions.h190 php_stream_statbuf ssb, lssb; member in struct:_php_basic_globals
H A Dfilestat.c854 php_stream_statbuf ssb; local
906 if (php_stream_stat_path_ex((char *)filename, flags, &ssb, NULL)) {
914 stat_sb = &ssb.sb;
919 if(ssb.sb.st_uid==getuid()) {
923 } else if(ssb.sb.st_gid==getgid()) {
936 if(ssb.sb.st_gid==gids[i]) {
965 RETURN_LONG((long)ssb.sb.st_mode);
967 RETURN_LONG((long)ssb.sb.st_ino);
969 RETURN_LONG((long)ssb.sb.st_size);
971 RETURN_LONG((long)ssb
[all...]
H A Dftp_fopen_wrapper.c94 static int php_stream_ftp_stream_stat(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC)
786 static int php_stream_ftp_url_stat(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC) argument
793 /* If ssb is NULL then someone is misbehaving */
794 if (!ssb) return -1;
801 ssb->sb.st_mode = 0644; /* FTP won't give us a valid mode, so aproximate one based on being readable */
805 ssb->sb.st_mode |= S_IFREG;
807 ssb->sb.st_mode |= S_IFDIR;
824 if (ssb->sb.st_mode & S_IFDIR) {
825 ssb->sb.st_size = 0;
830 ssb
[all...]
H A Dhttp_fopen_wrapper.c955 static int php_stream_http_stream_stat(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) /* {{{ */
/PHP_5_6/ext/zip/
H A Dzip_stream.c116 static int php_zip_ops_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) /* {{{ */
162 memset(ssb, 0, sizeof(php_stream_statbuf));
170 ssb->sb.st_size = sb.size;
171 ssb->sb.st_mode |= S_IFREG; /* regular file */
173 ssb->sb.st_size = 0;
174 ssb->sb.st_mode |= S_IFDIR; /* regular directory */
177 ssb->sb.st_mtime = sb.mtime;
178 ssb->sb.st_atime = sb.mtime;
179 ssb->sb.st_ctime = sb.mtime;
180 ssb
[all...]
H A Dphp_zip.c166 php_stream_statbuf ssb; local
226 if (php_stream_stat_path_ex(file_dirname_fullpath, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL) < 0) {
2641 php_stream_statbuf ssb; local
2660 if (php_stream_stat_path_ex(pathto, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL) < 0) {
/PHP_5_6/main/
H A Dfopen_wrappers.c551 php_stream_statbuf ssb; local
553 if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, 0, &ssb, NULL TSRMLS_CC)) {
587 php_stream_statbuf ssb; local
589 if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, 0, &ssb, NULL TSRMLS_CC)) {
H A Dmain.c1388 php_stream_statbuf ssb; local
1389 if (php_stream_stat((php_stream*)handle, &ssb) == 0) {
1390 return ssb.sb.st_size;
H A Dphp_streams.h128 int (*stat)(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC);
139 int (*stream_stat)(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC);
141 int (*url_stat)(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC);
331 PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC);
332 #define php_stream_stat(stream, ssb) _php_stream_stat((stream), (ssb) TSRMLS_CC)
334 PHPAPI int _php_stream_stat_path(const char *path, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC);
335 #define php_stream_stat_path(path, ssb) _php_stream_stat_path((path), 0, (ssb), NULL TSRMLS_CC)
336 #define php_stream_stat_path_ex(path, flags, ssb, contex
[all...]
/PHP_5_6/main/streams/
H A Duserspace.c49 static int user_wrapper_stat_url(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC);
881 static int statbuf_from_array(zval *array, php_stream_statbuf *ssb TSRMLS_DC)
889 ssb->sb.st_##name2 = Z_LVAL_PP(elem); \
894 memset(ssb, 0, sizeof(php_stream_statbuf));
926 static int php_userstreamop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC)
943 if (SUCCESS == statbuf_from_array(retval, ssb TSRMLS_CC))
1453 php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC)
1489 if (SUCCESS == statbuf_from_array(zretval, ssb TSRMLS_CC))
1452 user_wrapper_stat_url(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC) argument
H A Dmemory.c200 static int php_stream_memory_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) /* {{{ */
206 memset(ssb, 0, sizeof(php_stream_statbuf));
209 ssb->sb.st_mode = ms->mode & TEMP_STREAM_READONLY ? 0444 : 0666;
211 ssb->sb.st_size = ms->fsize;
212 ssb->sb.st_mode |= S_IFREG; /* regular file */
215 ssb->sb.st_mtime.tv_sec = timestamp;
216 ssb->sb.st_atime.tv_sec = timestamp;
217 ssb->sb.st_ctime.tv_sec = timestamp;
219 ssb->sb.st_mtime = timestamp;
220 ssb
[all...]
H A Dxp_socket.c223 static int php_sockop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC)
229 return fstat(sock->socket, &ssb->sb);
H A Dplain_wrapper.c563 static int php_stdiop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC)
571 memcpy(&ssb->sb, &data->sb, sizeof(ssb->sb));
1026 static int php_plain_files_url_stater(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC) argument
1043 return VCWD_LSTAT(url, &ssb->sb);
1049 return VCWD_LSTAT(url, &ssb->sb);
1053 return VCWD_STAT(url, &ssb->sb);
H A Dstreams.c822 PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC)
824 memset(ssb, 0, sizeof(*ssb));
828 return stream->wrapper->wops->stream_stat(stream->wrapper, stream, ssb TSRMLS_CC);
839 return (stream->ops->stat)(stream, ssb TSRMLS_CC);
1921 PHPAPI int _php_stream_stat_path(const char *path, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC) argument
1931 memcpy(ssb, &BG(lssb), sizeof(php_stream_statbuf));
1936 memcpy(ssb, &BG(ssb), sizeof(php_stream_statbuf));
1944 ret = wrapper->wops->url_stat(wrapper, path_to_open, flags, ssb, contex
1953 memcpy(&BG(lssb), ssb, sizeof(php_stream_statbuf)); local
1959 memcpy(&BG(ssb), ssb, sizeof(php_stream_statbuf)); local
[all...]
/PHP_5_6/ext/fileinfo/libmagic/
H A Dfsmagic.c109 php_stream_statbuf ssb; local
110 if (php_stream_stat(stream, &ssb) < 0) {
117 memcpy(sb, &ssb.sb, sizeof(struct stat));
/PHP_5_6/ext/fileinfo/
H A Dfileinfo.c504 php_stream_statbuf ssb; local
519 if (php_stream_stat_path_ex(buffer, 0, &ssb, context) == SUCCESS) {
520 if (ssb.sb.st_mode & S_IFDIR) {
538 if (php_stream_stat(stream, &ssb) == SUCCESS) {
539 if (ssb.sb.st_mode & S_IFDIR) {
/PHP_5_6/ext/opcache/
H A DZendAccelerator.c1690 php_stream_statbuf ssb; local
1695 php_stream_stat_path(fname, &ssb);
/PHP_5_6/sapi/phpdbg/
H A Dphpdbg_bp.c224 php_stream_statbuf ssb; local
227 if (php_stream_stat_path(path, &ssb) != FAILURE) {
228 if (ssb.sb.st_mode & (S_IFREG|S_IFLNK)) {
/PHP_5_6/ext/openssl/
H A Dxp_ssl.c1928 static int php_openssl_sockop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) /* {{{ */
1930 return php_stream_socket_ops.stat(stream, ssb TSRMLS_CC);

Completed in 82 milliseconds

12