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

/PHP_5_5/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_5/ext/phar/
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, char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC) 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;
1321 php_stream_statbuf ssb; local
1342 if (SUCCESS != php_stream_stat_path(test, &ssb)) {
1347 if (ssb.sb.st_mode & S_IFDIR && !dir) {
1355 if ((ssb.sb.st_mode & S_IFDIR) == 0 && dir) {
H A Dphar_object.c2033 php_stream_statbuf ssb; local
2141 if (SUCCESS == php_stream_stat_path(newpath, &ssb)) {
2584 php_stream_statbuf ssb; local
2595 if (SUCCESS != php_stream_stat_path(phar_obj->arc.archive->fname, &ssb)) {
2603 RETURN_BOOL((ssb.sb.st_mode & (S_IWOTH | S_IWGRP | S_IWUSR)) != 0);
4107 php_stream_statbuf ssb; local
4153 if (!overwrite && SUCCESS == php_stream_stat_path(fullpath, &ssb)) {
4168 if (FAILURE == php_stream_stat_path(fullpath, &ssb)) {
4256 php_stream_statbuf ssb; local
4296 if (php_stream_stat_path(pathto, &ssb) <
[all...]
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) {
/PHP_5_5/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)
783 static int php_stream_ftp_url_stat(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC) argument
790 /* If ssb is NULL then someone is misbehaving */
791 if (!ssb) return -1;
798 ssb->sb.st_mode = 0644; /* FTP won't give us a valid mode, so aproximate one based on being readable */
802 ssb->sb.st_mode |= S_IFREG;
804 ssb->sb.st_mode |= S_IFDIR;
821 if (ssb->sb.st_mode & S_IFDIR) {
822 ssb->sb.st_size = 0;
827 ssb
[all...]
/PHP_5_5/ext/zip/
H A Dphp_zip.c140 php_stream_statbuf ssb; local
200 if (php_stream_stat_path_ex(file_dirname_fullpath, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL) < 0) {
2423 php_stream_statbuf ssb; local
2442 if (php_stream_stat_path_ex(pathto, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL) < 0) {
/PHP_5_5/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.c1312 php_stream_statbuf ssb; local
1313 if (php_stream_stat((php_stream*)handle, &ssb) == 0) {
1314 return ssb.sb.st_size;
/PHP_5_5/main/streams/
H A Duserspace.c49 static int user_wrapper_stat_url(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC);
880 static int statbuf_from_array(zval *array, php_stream_statbuf *ssb TSRMLS_DC)
888 ssb->sb.st_##name2 = Z_LVAL_PP(elem); \
893 memset(ssb, 0, sizeof(php_stream_statbuf));
925 static int php_userstreamop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC)
942 if (SUCCESS == statbuf_from_array(retval, ssb TSRMLS_CC))
1447 static int user_wrapper_stat_url(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC) argument
1483 if (SUCCESS == statbuf_from_array(zretval, ssb TSRMLS_CC))
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(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...]
H A Dplain_wrapper.c569 static int php_stdiop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC)
577 memcpy(&ssb->sb, &data->sb, sizeof(ssb->sb));
1032 static int php_plain_files_url_stater(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC) argument
1049 return VCWD_LSTAT(url, &ssb->sb);
1055 return VCWD_LSTAT(url, &ssb->sb);
1059 return VCWD_STAT(url, &ssb->sb);
/PHP_5_5/ext/fileinfo/
H A Dfileinfo.c502 php_stream_statbuf ssb; local
517 if (php_stream_stat_path_ex(buffer, 0, &ssb, context) == SUCCESS) {
518 if (ssb.sb.st_mode & S_IFDIR) {
536 if (php_stream_stat(stream, &ssb) == SUCCESS) {
537 if (ssb.sb.st_mode & S_IFDIR) {
/PHP_5_5/ext/opcache/
H A DZendAccelerator.c1677 php_stream_statbuf ssb; local
1682 php_stream_stat_path(fname, &ssb);

Completed in 47 milliseconds