Searched defs:ssb (Results 1 - 23 of 23) sorted by relevance

/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/fileinfo/libmagic/
H A Dfsmagic.c108 php_stream_statbuf ssb; local
109 if (php_stream_stat(stream, &ssb) < 0) {
116 memcpy(sb, &ssb.sb, sizeof(struct stat));
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.c1638 php_stream_statbuf ssb; local
1643 php_stream_stat_path(fname, &ssb);
/PHP_TRUNK/ext/openssl/
H A Dxp_ssl.c1896 static int php_openssl_sockop_stat(php_stream *stream, php_stream_statbuf *ssb) /* {{{ */ argument
1898 return php_stream_socket_ops.stat(stream, ssb);
/PHP_TRUNK/ext/phar/
H A Dphar.c1740 php_stream_statbuf ssb; local
1762 if (SUCCESS == php_stream_stat_path((char *) filename, &ssb)) {
1766 if (ssb.sb.st_mode & S_IFDIR) {
1789 if (SUCCESS != php_stream_stat_path((char *) filename, &ssb)) {
1810 if (SUCCESS != php_stream_stat_path(realpath, &ssb)) {
1818 if (ssb.sb.st_mode & S_IFDIR) {
1830 if (ssb.sb.st_mode & S_IFDIR) {
H A Dphar_object.c2006 php_stream_statbuf ssb; local
2114 if (SUCCESS == php_stream_stat_path(newpath, &ssb)) {
2534 php_stream_statbuf ssb; local
2545 if (SUCCESS != php_stream_stat_path(phar_obj->archive->fname, &ssb)) {
2553 RETURN_BOOL((ssb.sb.st_mode & (S_IWOTH | S_IWGRP | S_IWUSR)) != 0);
4051 php_stream_statbuf ssb; local
4097 if (!overwrite && SUCCESS == php_stream_stat_path(fullpath, &ssb)) {
4112 if (FAILURE == php_stream_stat_path(fullpath, &ssb)) {
4200 php_stream_statbuf ssb; local
4240 if (php_stream_stat_path(pathto, &ssb) <
[all...]
H A Dstream.c480 void phar_dostat(phar_archive_data *phar, phar_entry_info *data, php_stream_statbuf *ssb, zend_bool is_temp_dir) 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
548 phar_stream_stat(php_stream *stream, php_stream_statbuf *ssb) argument
565 phar_wrapper_stat(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context) argument
[all...]
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) {
/PHP_TRUNK/ext/sqlite3/
H A Dsqlite3.c1159 static int php_sqlite3_stream_stat(php_stream *stream, php_stream_statbuf *ssb) argument
1162 ssb->sb.st_size = sqlite3_stream->size;
/PHP_TRUNK/ext/standard/
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) argument
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) 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...]
H A Dhttp_fopen_wrapper.c934 static int php_stream_http_stream_stat(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb) /* {{{ */ argument
H A Dbasic_functions.h192 php_stream_statbuf ssb, lssb; member in struct:_php_basic_globals
/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) /* {{{ */ argument
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/
H A Dfopen_wrappers.c562 php_stream_statbuf ssb; local
564 if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, 0, &ssb, NULL)) {
598 php_stream_statbuf ssb; local
600 if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, 0, &ssb, NULL)) {
H A Dmain.c1376 php_stream_statbuf ssb; local
1377 if (php_stream_stat((php_stream*)handle, &ssb) == 0) {
1378 return ssb.sb.st_size;
/PHP_TRUNK/main/streams/
H A Dmemory.c204 static int php_stream_memory_stat(php_stream *stream, php_stream_statbuf *ssb) /* {{{ */ argument
210 memset(ssb, 0, sizeof(php_stream_statbuf));
213 ssb->sb.st_mode = ms->mode & TEMP_STREAM_READONLY ? 0444 : 0666;
215 ssb->sb.st_size = ms->fsize;
216 ssb->sb.st_mode |= S_IFREG; /* regular file */
219 ssb->sb.st_mtime.tv_sec = timestamp;
220 ssb->sb.st_atime.tv_sec = timestamp;
221 ssb->sb.st_ctime.tv_sec = timestamp;
223 ssb->sb.st_mtime = timestamp;
224 ssb
515 php_stream_temp_stat(php_stream *stream, php_stream_statbuf *ssb) argument
[all...]
H A Dplain_wrapper.c574 static int php_stdiop_stat(php_stream *stream, php_stream_statbuf *ssb) argument
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) argument
1050 return VCWD_LSTAT(url, &ssb->sb);
1056 return VCWD_LSTAT(url, &ssb->sb);
1060 return VCWD_STAT(url, &ssb->sb);
H A Dstreams.c826 PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb) argument
828 memset(ssb, 0, sizeof(*ssb));
832 return stream->wrapper->wops->stream_stat(stream->wrapper, stream, ssb);
843 return (stream->ops->stat)(stream, ssb);
1926 PHPAPI int _php_stream_stat_path(const char *path, int flags, php_stream_statbuf *ssb, php_stream_context *context) 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...]
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);
827 static int statbuf_from_array(zval *array, php_stream_statbuf *ssb) argument
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) argument
889 if (SUCCESS == statbuf_from_array(&retval, ssb))
1342 php_stream_statbuf *ssb, php_stream_context *context)
1372 if (SUCCESS == statbuf_from_array(&zretval, ssb))
1341 user_wrapper_stat_url(php_stream_wrapper *wrapper, const char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context) argument
H A Dxp_socket.c234 static int php_sockop_stat(php_stream *stream, php_stream_statbuf *ssb) argument
241 return zend_fstat(sock->socket, &ssb->sb);
/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 59 milliseconds