Home
last modified time | relevance | path

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

12

/PHP-5.3/ext/zip/
H A Dzip_stream.c146 memset(ssb, 0, sizeof(php_stream_statbuf)); in php_zip_ops_stat()
154 ssb->sb.st_size = sb.size; in php_zip_ops_stat()
157 ssb->sb.st_size = 0; in php_zip_ops_stat()
161 ssb->sb.st_mtime = sb.mtime; in php_zip_ops_stat()
162 ssb->sb.st_atime = sb.mtime; in php_zip_ops_stat()
163 ssb->sb.st_ctime = sb.mtime; in php_zip_ops_stat()
164 ssb->sb.st_nlink = 1; in php_zip_ops_stat()
165 ssb->sb.st_rdev = -1; in php_zip_ops_stat()
167 ssb->sb.st_blksize = -1; in php_zip_ops_stat()
168 ssb->sb.st_blocks = -1; in php_zip_ops_stat()
[all …]
H A Dphp_zip.c140 php_stream_statbuf ssb; in php_zip_extract_file() local
200 if (php_stream_stat_path_ex(file_dirname_fullpath, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL) < 0) { in php_zip_extract_file()
2426 php_stream_statbuf ssb; in ZIPARCHIVE_METHOD() local
2449 if (php_stream_stat_path_ex(pathto, PHP_STREAM_URL_STAT_QUIET, &ssb, NULL) < 0) { in ZIPARCHIVE_METHOD()
/PHP-5.3/ext/phar/
H A Dstream.c500 ssb->sb.st_size = 0; in phar_dostat()
514 ssb->sb.st_size = 0; in phar_dostat()
515 ssb->sb.st_mode = 0777; in phar_dostat()
528 ssb->sb.st_mode = (ssb->sb.st_mode & 0555) | (ssb->sb.st_mode & ~0777); in phar_dostat()
531 ssb->sb.st_nlink = 1; in phar_dostat()
532 ssb->sb.st_rdev = -1; in phar_dostat()
534 ssb->sb.st_dev = 0xc; in phar_dostat()
537 ssb->sb.st_ino = data->inode; in phar_dostat()
540 ssb->sb.st_blksize = -1; in phar_dostat()
541 ssb->sb.st_blocks = -1; in phar_dostat()
[all …]
H A Dstream.h30 …tat(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context…
38 static int phar_stream_stat( php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC);
H A Dutil.c178 php_stream_statbuf ssb; in phar_mount_entry() local
227 if (SUCCESS != php_stream_stat_path(filename, &ssb)) { in phar_mount_entry()
233 if (ssb.sb.st_mode & S_IFDIR) { in phar_mount_entry()
243 entry.uncompressed_filesize = entry.compressed_filesize = ssb.sb.st_size; in phar_mount_entry()
246 entry.flags = ssb.sb.st_mode; in phar_mount_entry()
486 php_stream_statbuf ssb; in phar_find_in_include_path()
488 if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, 0, &ssb, NULL TSRMLS_CC)) { in phar_find_in_include_path()
1570 php_stream_statbuf ssb; in phar_get_entry_info_dir() local
1591 if (SUCCESS != php_stream_stat_path(test, &ssb)) { in phar_get_entry_info_dir()
1596 if (ssb.sb.st_mode & S_IFDIR && !dir) { in phar_get_entry_info_dir()
[all …]
H A Dphar_object.c2101 php_stream_statbuf ssb; local
2209 if (SUCCESS == php_stream_stat_path(newpath, &ssb)) {
2660 php_stream_statbuf ssb; local
2671 if (SUCCESS != php_stream_stat_path(phar_obj->arc.archive->fname, &ssb)) {
2679 RETURN_BOOL((ssb.sb.st_mode & (S_IWOTH | S_IWGRP | S_IWUSR)) != 0);
4187 php_stream_statbuf ssb; local
4232 if (!overwrite && SUCCESS == php_stream_stat_path(fullpath, &ssb)) {
4247 if (FAILURE == php_stream_stat_path(fullpath, &ssb)) {
4335 php_stream_statbuf ssb; local
4375 if (php_stream_stat_path(pathto, &ssb) < 0) {
[all …]
H A Dphar.c1740 php_stream_statbuf ssb; local
1764 if (SUCCESS == php_stream_stat_path((char *) fname, &ssb)) {
1767 if (ssb.sb.st_mode & S_IFDIR) {
1792 if (SUCCESS != php_stream_stat_path((char *) fname, &ssb)) {
1817 if (SUCCESS != php_stream_stat_path(realpath, &ssb)) {
1824 if (ssb.sb.st_mode & S_IFDIR) {
1836 if (ssb.sb.st_mode & S_IFDIR) {
H A Ddirstream.c25 void phar_dostat(phar_archive_data *phar, phar_entry_info *data, php_stream_statbuf *ssb, zend_bool…
/PHP-5.3/ext/standard/
H A Dfilestat.c637 php_stream_statbuf ssb; in PHP_FUNCTION() local
787 php_stream_statbuf ssb; in php_stat() local
866 stat_sb = &ssb.sb; in php_stat()
871 if(ssb.sb.st_uid==getuid()) { in php_stat()
888 if(ssb.sb.st_gid==gids[i]) { in php_stat()
919 RETURN_LONG((long)ssb.sb.st_ino); in php_stat()
923 RETURN_LONG((long)ssb.sb.st_uid); in php_stat()
925 RETURN_LONG((long)ssb.sb.st_gid); in php_stat()
933 if (S_ISLNK(ssb.sb.st_mode)) { in php_stat()
936 switch(ssb.sb.st_mode & S_IFMT) { in php_stat()
[all …]
H A Dftp_fopen_wrapper.c792 if (!ssb) return -1; in php_stream_ftp_url_stat()
823 ssb->sb.st_size = 0; in php_stream_ftp_url_stat()
872 ssb->sb.st_mtime = -1; in php_stream_ftp_url_stat()
876 ssb->sb.st_dev = 0; in php_stream_ftp_url_stat()
877 ssb->sb.st_uid = 0; in php_stream_ftp_url_stat()
878 ssb->sb.st_gid = 0; in php_stream_ftp_url_stat()
879 ssb->sb.st_atime = -1; in php_stream_ftp_url_stat()
880 ssb->sb.st_ctime = -1; in php_stream_ftp_url_stat()
882 ssb->sb.st_nlink = 1; in php_stream_ftp_url_stat()
883 ssb->sb.st_rdev = -1; in php_stream_ftp_url_stat()
[all …]
H A Dbasic_functions.h193 php_stream_statbuf ssb, lssb; member
/PHP-5.3/main/streams/
H A Dmemory.c215 ssb->sb.st_size = ms->fsize; in php_stream_memory_stat()
219 ssb->sb.st_mtime.tv_sec = timestamp; in php_stream_memory_stat()
223 ssb->sb.st_mtime = timestamp; in php_stream_memory_stat()
224 ssb->sb.st_atime = timestamp; in php_stream_memory_stat()
225 ssb->sb.st_ctime = timestamp; in php_stream_memory_stat()
228 ssb->sb.st_nlink = 1; in php_stream_memory_stat()
229 ssb->sb.st_rdev = -1; in php_stream_memory_stat()
231 ssb->sb.st_dev = 0xC; in php_stream_memory_stat()
233 ssb->sb.st_ino = 0; in php_stream_memory_stat()
236 ssb->sb.st_blksize = -1; in php_stream_memory_stat()
[all …]
H A Dstreams.c752 PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) in _php_stream_stat()
754 memset(ssb, 0, sizeof(*ssb)); in _php_stream_stat()
758 return stream->wrapper->wops->stream_stat(stream->wrapper, stream, ssb TSRMLS_CC); in _php_stream_stat()
769 return (stream->ops->stat)(stream, ssb TSRMLS_CC); in _php_stream_stat()
1847 PHPAPI int _php_stream_stat_path(char *path, int flags, php_stream_statbuf *ssb, php_stream_context… argument
1856 memcpy(ssb, &BG(lssb), sizeof(php_stream_statbuf));
1861 memcpy(ssb, &BG(ssb), sizeof(php_stream_statbuf));
1868 ret = wrapper->wops->url_stat(wrapper, path_to_open, flags, ssb, context TSRMLS_CC);
1876 memcpy(&BG(lssb), ssb, sizeof(php_stream_statbuf));
1882 memcpy(&BG(ssb), ssb, sizeof(php_stream_statbuf));
H A Duserspace.c40 …url(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context…
853 static int statbuf_from_array(zval *array, php_stream_statbuf *ssb TSRMLS_DC) in statbuf_from_array()
861 ssb->sb.st_##name2 = Z_LVAL_PP(elem); \ in statbuf_from_array()
866 memset(ssb, 0, sizeof(php_stream_statbuf)); in statbuf_from_array()
898 static int php_userstreamop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) in php_userstreamop_stat()
915 if (SUCCESS == statbuf_from_array(retval, ssb TSRMLS_CC)) in php_userstreamop_stat()
1320 …url(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context… in user_wrapper_stat_url() argument
1363 if (SUCCESS == statbuf_from_array(zretval, ssb TSRMLS_CC)) in user_wrapper_stat_url()
H A Dplain_wrapper.c534 static int php_stdiop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) in php_stdiop_stat()
542 memcpy(&ssb->sb, &data->sb, sizeof(ssb->sb)); in php_stdiop_stat()
1011 …ter(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context… in php_plain_files_url_stater() argument
1032 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater()
1038 return VCWD_LSTAT(url, &ssb->sb); in php_plain_files_url_stater()
1042 return VCWD_STAT(url, &ssb->sb); in php_plain_files_url_stater()
H A Dxp_socket.c223 static int php_sockop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) in php_sockop_stat()
229 return fstat(sock->socket, &ssb->sb); in php_sockop_stat()
/PHP-5.3/ext/fileinfo/libmagic/
H A Dfsmagic.c106 php_stream_statbuf ssb; in file_fsmagic() local
107 if (php_stream_stat(stream, &ssb) < 0) { in file_fsmagic()
114 memcpy(sb, &ssb.sb, sizeof(struct stat)); in file_fsmagic()
/PHP-5.3/main/
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…
141 …int (*url_stat)(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_st…
326 PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC);
327 #define php_stream_stat(stream, ssb) _php_stream_stat((stream), (ssb) TSRMLS_CC) argument
329 PHPAPI int _php_stream_stat_path(char *path, int flags, php_stream_statbuf *ssb, php_stream_context…
330 #define php_stream_stat_path(path, ssb) _php_stream_stat_path((path), 0, (ssb), NULL TSRMLS_CC) argument
331 #define php_stream_stat_path_ex(path, flags, ssb, context) _php_stream_stat_path((path), (flags), ( argument
H A Dfopen_wrappers.c619 php_stream_statbuf ssb; local
621 if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, 0, &ssb, NULL TSRMLS_CC)) {
655 php_stream_statbuf ssb; local
657 if (SUCCESS == wrapper->wops->url_stat(wrapper, trypath, 0, &ssb, NULL TSRMLS_CC)) {
H A Dbuild-defs.h.in15 | Author: Stig S�ther Bakken <ssb@php.net> |
H A Dmain.c1206 php_stream_statbuf ssb; in php_zend_stream_fsizer() local
1207 if (php_stream_stat((php_stream*)handle, &ssb) == 0) { in php_zend_stream_fsizer()
1208 return ssb.sb.st_size; in php_zend_stream_fsizer()
/PHP-5.3/ext/fileinfo/
H A Dfileinfo.c507 php_stream_statbuf ssb; local
522 if (php_stream_stat_path_ex(buffer, 0, &ssb, context) == SUCCESS) {
523 if (ssb.sb.st_mode & S_IFDIR) {
541 if (php_stream_stat(stream, &ssb) == SUCCESS) {
542 if (ssb.sb.st_mode & S_IFDIR) {
/PHP-5.3/Zend/RFCs/
H A D002.txt4 Maintainer: Stig S. Bakken <ssb@php.net>
115 # [ssb 2001-09-08]:
/PHP-5.3/ext/openssl/
H A Dxp_ssl.c301 static int php_openssl_sockop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) in php_openssl_sockop_stat()
303 return php_stream_socket_ops.stat(stream, ssb TSRMLS_CC); in php_openssl_sockop_stat()
/PHP-5.3/ext/curl/
H A Dstreams.c242 static int php_curl_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) in php_curl_stream_stat()

Completed in 116 milliseconds

12