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

12

/PHP_TRUNK/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_TRUNK/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 Dstream.c480 void phar_dostat(phar_archive_data *phar, phar_entry_info *data, php_stream_statbuf *ssb, zend_bool is_temp_dir TSRMLS_DC) argument
482 memset(ssb, 0, sizeof(php_stream_statbuf));
485 ssb->sb.st_size = data->uncompressed_filesize;
486 ssb->sb.st_mode = data->flags & PHAR_ENT_PERM_MASK;
487 ssb->sb.st_mode |= S_IFREG; /* regular file */
490 ssb->sb.st_mtime.tv_sec = data->timestamp;
491 ssb->sb.st_atime.tv_sec = data->timestamp;
492 ssb->sb.st_ctime.tv_sec = data->timestamp;
494 ssb->sb.st_mtime = data->timestamp;
495 ssb
565 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;
1306 php_stream_statbuf ssb; local
1324 if (SUCCESS != php_stream_stat_path(test, &ssb)) {
1329 if (ssb.sb.st_mode & S_IFDIR && !dir) {
1337 if ((ssb.sb.st_mode & S_IFDIR) == 0 && dir) {
H A Dphar_object.c2005 php_stream_statbuf ssb; local
2113 if (SUCCESS == php_stream_stat_path(newpath, &ssb)) {
2533 php_stream_statbuf ssb; local
2544 if (SUCCESS != php_stream_stat_path(phar_obj->archive->fname, &ssb)) {
2552 RETURN_BOOL((ssb.sb.st_mode & (S_IWOTH | S_IWGRP | S_IWUSR)) != 0);
4050 php_stream_statbuf ssb; local
4096 if (!overwrite && SUCCESS == php_stream_stat_path(fullpath, &ssb)) {
4111 if (FAILURE == php_stream_stat_path(fullpath, &ssb)) {
4199 php_stream_statbuf ssb; local
4239 if (php_stream_stat_path(pathto, &ssb) <
[all...]
H A Dphar.c1743 php_stream_statbuf ssb; local
1765 if (SUCCESS == php_stream_stat_path((char *) filename, &ssb)) {
1769 if (ssb.sb.st_mode & S_IFDIR) {
1792 if (SUCCESS != php_stream_stat_path((char *) filename, &ssb)) {
1813 if (SUCCESS != php_stream_stat_path(realpath, &ssb)) {
1821 if (ssb.sb.st_mode & S_IFDIR) {
1833 if (ssb.sb.st_mode & S_IFDIR) {
/PHP_TRUNK/ext/sqlite3/
H A Dsqlite3.c1164 static int php_sqlite3_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC)
1167 ssb->sb.st_size = sqlite3_stream->size;
/PHP_TRUNK/ext/zip/
H A Dphp_zip.c138 php_stream_statbuf ssb; local
197 if (php_stream_stat_path_ex(file_dirname_fullpath, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL) < 0) {
2495 php_stream_statbuf ssb; local
2514 if (php_stream_stat_path_ex(pathto, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL) < 0) {
H A Dzip_stream.c116 static int php_zip_ops_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) /* {{{ */
161 memset(ssb, 0, sizeof(php_stream_statbuf));
169 ssb->sb.st_size = sb.size;
170 ssb->sb.st_mode |= S_IFREG; /* regular file */
172 ssb->sb.st_size = 0;
173 ssb->sb.st_mode |= S_IFDIR; /* regular directory */
176 ssb->sb.st_mtime = sb.mtime;
177 ssb->sb.st_atime = sb.mtime;
178 ssb->sb.st_ctime = sb.mtime;
179 ssb
[all...]
/PHP_TRUNK/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);
827 static int statbuf_from_array(zval *array, php_stream_statbuf *ssb TSRMLS_DC)
835 ssb->sb.st_##name2 = Z_LVAL_P(elem); \
840 memset(ssb, 0, sizeof(php_stream_statbuf));
872 static int php_userstreamop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC)
889 if (SUCCESS == statbuf_from_array(&retval, ssb TSRMLS_CC))
1342 php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC)
1372 if (SUCCESS == statbuf_from_array(&zretval, ssb TSRMLS_CC))
1341 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.c234 static int php_sockop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC)
241 return zend_fstat(sock->socket, &ssb->sb);
H A Dplain_wrapper.c574 static int php_stdiop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC)
582 memcpy(&ssb->sb, &data->sb, sizeof(ssb->sb));
1037 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
1054 return VCWD_LSTAT(url, &ssb->sb);
1060 return VCWD_LSTAT(url, &ssb->sb);
1064 return VCWD_STAT(url, &ssb->sb);
H A Dstreams.c826 PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC)
828 memset(ssb, 0, sizeof(*ssb));
832 return stream->wrapper->wops->stream_stat(stream->wrapper, stream, ssb TSRMLS_CC);
843 return (stream->ops->stat)(stream, ssb TSRMLS_CC);
1926 PHPAPI int _php_stream_stat_path(const char *path, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC) argument
1936 memcpy(ssb, &BG(lssb), sizeof(php_stream_statbuf));
1941 memcpy(ssb, &BG(ssb), sizeof(php_stream_statbuf));
1949 ret = wrapper->wops->url_stat(wrapper, path_to_open, flags, ssb, contex
1958 memcpy(&BG(lssb), ssb, sizeof(php_stream_statbuf)); local
1964 memcpy(&BG(ssb), ssb, sizeof(php_stream_statbuf)); local
[all...]
/PHP_TRUNK/ext/openssl/
H A Dxp_ssl.c1899 static int php_openssl_sockop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) /* {{{ */
1901 return php_stream_socket_ops.stat(stream, ssb TSRMLS_CC);
/PHP_TRUNK/main/
H A Dphp_streams.h130 int (*stat)(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC);
141 int (*stream_stat)(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC);
143 int (*url_stat)(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC);
329 PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC);
330 #define php_stream_stat(stream, ssb) _php_stream_stat((stream), (ssb) TSRMLS_CC)
332 PHPAPI int _php_stream_stat_path(const char *path, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC);
333 #define php_stream_stat_path(path, ssb) _php_stream_stat_path((path), 0, (ssb), NULL TSRMLS_CC)
334 #define php_stream_stat_path_ex(path, flags, ssb, contex
[all...]
H A Dfopen_wrappers.c562 php_stream_statbuf ssb; local
564 if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, 0, &ssb, NULL TSRMLS_CC)) {
598 php_stream_statbuf ssb; local
600 if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, 0, &ssb, NULL TSRMLS_CC)) {
H A Dmain.c1379 php_stream_statbuf ssb; local
1380 if (php_stream_stat((php_stream*)handle, &ssb) == 0) {
1381 return ssb.sb.st_size;
/PHP_TRUNK/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_TRUNK/ext/standard/
H A Dhttp_fopen_wrapper.c934 static int php_stream_http_stream_stat(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) /* {{{ */
H A Dbasic_functions.h192 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((zend_long)ssb.sb.st_mode);
967 RETURN_LONG((zend_long)ssb.sb.st_ino);
969 RETURN_LONG((zend_long)ssb.sb.st_size);
971 RETURN_LONG((zend_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)
776 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
783 /* If ssb is NULL then someone is misbehaving */
784 if (!ssb) return -1;
791 ssb->sb.st_mode = 0644; /* FTP won't give us a valid mode, so approximate one based on being readable */
795 ssb->sb.st_mode |= S_IFREG;
797 ssb->sb.st_mode |= S_IFDIR;
814 if (ssb->sb.st_mode & S_IFDIR) {
815 ssb->sb.st_size = 0;
820 ssb
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_bp.c227 php_stream_statbuf ssb; local
244 if (php_stream_stat_path(path, &ssb) == FAILURE) {
254 } else if (!(ssb.sb.st_mode & (S_IFREG|S_IFLNK))) {

Completed in 65 milliseconds

12