| /PHP_5_5/ext/zip/tests/ |
| H A D | utils.inc | 5 $sb = $z->statIndex($i); 6 echo $i . ' ' . $sb['name'] . "\n";
|
| /PHP_5_5/ext/zip/ |
| H A D | zip_stream.c | 102 struct zip_stat sb; local 147 if (zip_stat(za, fragment, ZIP_FL_NOCASE, &sb) != 0) { 154 ssb->sb.st_size = sb.size; 155 ssb->sb.st_mode |= S_IFREG; /* regular file */ 157 ssb->sb.st_size = 0; 158 ssb->sb.st_mode |= S_IFDIR; /* regular directory */ 161 ssb->sb.st_mtime = sb.mtime; 162 ssb->sb [all...] |
| H A D | php_zip.h | 66 struct zip_stat sb; member in struct:_ze_zip_read_rsrc
|
| H A D | php_zip.c | 63 /* {{{ PHP_ZIP_STAT_INDEX(za, index, flags, sb) */ 64 #define PHP_ZIP_STAT_INDEX(za, index, flags, sb) \ 65 if (zip_stat_index(za, index, flags, &sb) != 0) { \ 70 /* {{{ PHP_ZIP_STAT_PATH(za, path, path_len, flags, sb) */ 71 #define PHP_ZIP_STAT_PATH(za, path, path_len, flags, sb) \ 76 if (zip_stat(za, path, flags, &sb) != 0) { \ 142 struct zip_stat sb; local 171 if (path_cleaned_len >= MAXPATHLEN || zip_stat(za, file, 0, &sb) != 0) { 426 /* {{{ RETURN_SB(sb) */ 427 #define RETURN_SB(sb) \ 1606 struct zip_stat sb; local 1880 struct zip_stat sb; local 1907 struct zip_stat sb; local 2088 struct zip_stat sb; local 2152 struct zip_stat sb; local 2209 struct zip_stat sb; local 2274 struct zip_stat sb; local 2338 struct zip_stat sb; local 2505 struct zip_stat sb; local 2587 struct zip_stat sb; local [all...] |
| /PHP_5_5/win32/ |
| H A D | glob.c | 555 struct stat sb; local 566 if (g_lstat(pathbuf, &sb, pglob)) 570 !IS_SLASH(pathend[-1])) && (S_ISDIR(sb.st_mode) || 571 (S_ISLNK(sb.st_mode) && 572 (g_stat(pathbuf, &sb, pglob) == 0) && 573 S_ISDIR(sb.st_mode)))) { 850 g_lstat(fn, sb, pglob) 852 struct stat *sb; 860 return((*pglob->gl_lstat)(buf, sb)); 861 return(php_sys_lstat(buf, sb)); [all...] |
| /PHP_5_5/ext/fileinfo/ |
| H A D | fileinfo.c | 518 if (ssb.sb.st_mode & S_IFDIR) { 537 if (ssb.sb.st_mode & S_IFDIR) {
|
| /PHP_5_5/ext/pdo_odbc/ |
| H A D | odbc_stmt.c | 388 php_stream_statbuf sb; local 396 if (0 == php_stream_stat(stm, &sb)) { 419 P->len = SQL_LEN_DATA_AT_EXEC(sb.sb.st_size);
|
| /PHP_5_5/ext/standard/ |
| H A D | filestat.c | 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.sb.st_uid); 973 RETURN_LONG((long)ssb.sb.st_gid); 975 RETURN_LONG((long)ssb.sb [all...] |
| H A D | ftp_fopen_wrapper.c | 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->sb.st_size = atoi(tmp_line + 4); 867 ssb->sb.st_mtime = mktime(&tm); 871 ssb->sb.st_mtime = -1; 874 ssb->sb.st_ino = 0; /* Unknown values */ 875 ssb->sb [all...] |
| H A D | iptc.c | 187 struct stat sb; local 204 fstat(fileno(fp), &sb); local 206 poi = spoolbuf = safe_emalloc(1, iptcdata_len + sizeof(psheader) + sb.st_size + 1024, 1); 207 memset(poi, 0, iptcdata_len + sizeof(psheader) + sb.st_size + 1024 + 1);
|
| H A D | link.c | 90 struct stat sb; local 105 ret = VCWD_LSTAT(link, &sb); 113 RETURN_LONG((long) sb.st_dev);
|
| H A D | link_win32.c | 91 struct stat sb; local 98 ret = VCWD_STAT(link, &sb); 104 RETURN_LONG((long) sb.st_dev);
|
| H A D | file.c | 1540 MAKE_LONG_ZVAL_INCREF(stat_dev, stat_ssb.sb.st_dev); 1541 MAKE_LONG_ZVAL_INCREF(stat_ino, stat_ssb.sb.st_ino); 1542 MAKE_LONG_ZVAL_INCREF(stat_mode, stat_ssb.sb.st_mode); 1543 MAKE_LONG_ZVAL_INCREF(stat_nlink, stat_ssb.sb.st_nlink); 1544 MAKE_LONG_ZVAL_INCREF(stat_uid, stat_ssb.sb.st_uid); 1545 MAKE_LONG_ZVAL_INCREF(stat_gid, stat_ssb.sb.st_gid); 1547 MAKE_LONG_ZVAL_INCREF(stat_rdev, stat_ssb.sb.st_rdev); 1551 MAKE_LONG_ZVAL_INCREF(stat_size, stat_ssb.sb.st_size); 1552 MAKE_LONG_ZVAL_INCREF(stat_atime, stat_ssb.sb.st_atime); 1553 MAKE_LONG_ZVAL_INCREF(stat_mtime, stat_ssb.sb [all...] |
| /PHP_5_5/main/streams/ |
| H A D | memory.c | 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->sb.st_atime = timestamp; 221 ssb->sb.st_ctime = timestamp; 224 ssb->sb [all...] |
| H A D | plain_wrapper.c | 114 unsigned cached_fstat:1; /* sb is valid */ 133 struct stat sb; member in struct:__anon302 144 r = fstat(fd, &d->sb); 238 self->is_pipe = (do_fstat(self, 0) == 0 && S_ISFIFO(self->sb.st_mode)) ? 1 : 0; 277 self->is_pipe = (do_fstat(self, 0) == 0 && S_ISFIFO(self->sb.st_mode)) ? 1 : 0; 547 memcpy(&ssb->sb, &data->sb, sizeof(ssb->sb)); 638 if (range->length == 0 && range->offset > 0 && range->offset < data->sb.st_size) { 639 range->length = data->sb 1103 struct stat sb; local 1166 struct stat sb; local [all...] |
| H A D | streams.c | 1458 if (php_stream_stat(src, &ssbuf) == 0 && ssbuf.sb.st_size > 0) { 1459 max_len = ssbuf.sb.st_size + step; 1510 if (ssbuf.sb.st_size == 0 1512 && S_ISREG(ssbuf.sb.st_mode)
|
| /PHP_5_5/sapi/phttpd/ |
| H A D | phttpd.c | 36 struct stat sb; member in struct:__anon321 192 if (url_expand(PHG(cip)->hip->url, SG(request_info).path_translated, MAXPATHLEN, &PHG(sb), NULL, NULL) == NULL) { 243 struct stat sb; local
|
| /PHP_5_5/ext/phar/ |
| H A D | func_interceptors.c | 620 struct stat sb = {0}; local 672 sb.st_size = 0; 673 sb.st_mode = 0777; 674 sb.st_mode |= S_IFDIR; /* regular directory */ 676 sb.st_mtime.tv_sec = phar->max_timestamp; 677 sb.st_atime.tv_sec = phar->max_timestamp; 678 sb.st_ctime.tv_sec = phar->max_timestamp; 680 sb.st_mtime = phar->max_timestamp; 681 sb.st_atime = phar->max_timestamp; 682 sb [all...] |
| H A D | stream.c | 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->sb.st_atime = data->timestamp; 497 ssb->sb.st_ctime = data->timestamp; 500 ssb->sb [all...] |
| H A D | util.c | 232 if (ssb.sb.st_mode & S_IFDIR) { 242 entry.uncompressed_filesize = entry.compressed_filesize = ssb.sb.st_size; 245 entry.flags = ssb.sb.st_mode; 1595 if (ssb.sb.st_mode & S_IFDIR && !dir) { 1603 if ((ssb.sb.st_mode & S_IFDIR) == 0 && dir) {
|
| /PHP_5_5/main/ |
| H A D | php_ini.c | 626 struct stat sb; local 653 if (VCWD_STAT(ini_file, &sb) == 0) { 654 if (S_ISREG(sb.st_mode)) { 738 struct stat sb; local 744 if (VCWD_STAT(ini_file, &sb) == 0) { 745 if (S_ISREG(sb.st_mode)) {
|
| /PHP_5_5/sapi/cli/ |
| H A D | php_cli_server.c | 139 struct stat sb; member in struct:php_cli_server_request 1318 struct stat sb; local 1355 if (!stat(buf, &sb)) { 1356 if (sb.st_mode & S_IFDIR) { 1364 if (!stat(buf, &sb) && (sb.st_mode & S_IFREG)) { 1421 request->sb = sb; 1934 smart_str_append_generic_ex(&buffer, client->request.sb.st_size, 1, size_t, _unsigned); 2400 struct stat sb; local [all...] |
| /PHP_5_5/ext/fileinfo/libmagic/ |
| H A D | fsmagic.c | 93 file_fsmagic(struct magic_set *ms, const char *fn, struct stat *sb, php_stream *stream) argument 117 memcpy(sb, &ssb.sb, sizeof(struct stat)); 119 if (php_sys_stat(fn, sb) != 0) { 131 if (sb->st_mode & S_ISUID) 136 if (sb->st_mode & S_ISGID) 141 if (sb->st_mode & S_ISVTX) 147 switch (sb->st_mode & S_IFMT) { 167 COMMA, major(sb->st_rdev), dv_unit(sb [all...] |
| H A D | magic.c | 289 const struct stat *sb) 302 utsbuf[0].tv_sec = sb->st_atime; 303 utsbuf[1].tv_sec = sb->st_mtime; 310 utbuf.actime = sb->st_atime; 311 utbuf.modtime = sb->st_mtime; 353 struct stat sb; local 372 switch (file_fsmagic(ms, inname, &sb, stream)) { 394 if (unreadable_info(ms, sb.st_mode, inname) == -1) 423 close_and_restore(ms, inname, 0, &sb); 288 close_and_restore(const struct magic_set *ms, const char *name, int fd, const struct stat *sb) argument
|
| /PHP_5_5/ext/opcache/ |
| H A D | ZendAccelerator.c | 672 *statbuf = stream_statbuf.sb; 788 php_stream_statbuf sb; local 800 ret = stream->ops->stat(stream, &sb TSRMLS_CC); 809 statbuf = sb.sb;
|