Searched refs:sb (Results 1 - 25 of 39) sorted by relevance

12

/PHP_TRUNK/ext/zip/tests/
H A Dutils.inc5 $sb = $z->statIndex($i);
6 echo $i . ' ' . $sb['name'] . "\n";
/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dfsmagic.c93 file_fsmagic(struct magic_set *ms, const char *fn, zend_stat_t *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 Dmagic.c289 const zend_stat_t *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 zend_stat_t sb; local
372 switch (file_fsmagic(ms, inname, &sb, stream)) {
390 if (unreadable_info(ms, sb.st_mode, inname) == -1)
419 close_and_restore(ms, inname, 0, &sb);
288 close_and_restore(const struct magic_set *ms, const char *name, int fd, const zend_stat_t *sb) argument
/PHP_TRUNK/ext/phar/
H A Dstream.c485 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->sb.st_atime = data->timestamp;
496 ssb->sb.st_ctime = data->timestamp;
499 ssb->sb
[all...]
H A Dutil.c228 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;
1329 if (ssb.sb.st_mode & S_IFDIR && !dir) {
1337 if ((ssb.sb.st_mode & S_IFDIR) == 0 && dir) {
H A Dfunc_interceptors.c614 zend_stat_t sb = {0}; local
666 sb.st_size = 0;
667 sb.st_mode = 0777;
668 sb.st_mode |= S_IFDIR; /* regular directory */
670 sb.st_mtime.tv_sec = phar->max_timestamp;
671 sb.st_atime.tv_sec = phar->max_timestamp;
672 sb.st_ctime.tv_sec = phar->max_timestamp;
674 sb.st_mtime = phar->max_timestamp;
675 sb.st_atime = phar->max_timestamp;
676 sb
[all...]
/PHP_TRUNK/ext/pdo_odbc/
H A Dodbc_stmt.c407 php_stream_statbuf sb; local
415 if (0 == php_stream_stat(stm, &sb)) {
438 P->len = SQL_LEN_DATA_AT_EXEC(sb.sb.st_size);
/PHP_TRUNK/ext/standard/
H A Dlink.c90 zend_stat_t sb; local
105 ret = VCWD_LSTAT(link, &sb);
113 RETURN_LONG((zend_long) sb.st_dev);
H A Dlink_win32.c91 zend_stat_t sb; local
98 ret = VCWD_STAT(link, &sb);
104 RETURN_LONG((zend_long) sb.st_dev);
H A Diptc.c187 zend_stat_t sb; local
204 zend_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 Dfile.c1573 ZVAL_LONG(&stat_dev, stat_ssb.sb.st_dev);
1574 ZVAL_LONG(&stat_ino, stat_ssb.sb.st_ino);
1575 ZVAL_LONG(&stat_mode, stat_ssb.sb.st_mode);
1576 ZVAL_LONG(&stat_nlink, stat_ssb.sb.st_nlink);
1577 ZVAL_LONG(&stat_uid, stat_ssb.sb.st_uid);
1578 ZVAL_LONG(&stat_gid, stat_ssb.sb.st_gid);
1585 if ((int)stat_ssb.sb.st_rdev < 0) {
1586 ZVAL_LONG(&stat_rdev, (int)stat_ssb.sb.st_rdev);
1588 ZVAL_LONG(&stat_rdev, stat_ssb.sb.st_rdev);
1591 ZVAL_LONG(&stat_rdev, stat_ssb.sb
[all...]
H A Dfilestat.c914 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.sb.st_uid);
973 RETURN_LONG((zend_long)ssb.sb.st_gid);
975 RETURN_LONG((zend_long)ssb.sb
[all...]
H A Dftp_fopen_wrapper.c792 ssb->sb.st_mode = 0644; /* FTP won't give us a valid mode, so aproximate one based on being readable */
796 ssb->sb.st_mode |= S_IFREG;
798 ssb->sb.st_mode |= S_IFDIR;
815 if (ssb->sb.st_mode & S_IFDIR) {
816 ssb->sb.st_size = 0;
821 ssb->sb.st_size = atoi(tmp_line + 4);
861 ssb->sb.st_mtime = mktime(&tm);
865 ssb->sb.st_mtime = -1;
868 ssb->sb.st_ino = 0; /* Unknown values */
869 ssb->sb
[all...]
/PHP_TRUNK/ext/zip/
H A Dphp_zip.c61 /* {{{ PHP_ZIP_STAT_INDEX(za, index, flags, sb) */
62 #define PHP_ZIP_STAT_INDEX(za, index, flags, sb) \
63 if (zip_stat_index(za, index, flags, &sb) != 0) { \
68 /* {{{ PHP_ZIP_STAT_PATH(za, path, path_len, flags, sb) */
69 #define PHP_ZIP_STAT_PATH(za, path, path_len, flags, sb) \
74 if (zip_stat(za, path, flags, &sb) != 0) { \
140 struct zip_stat sb; local
168 if (path_cleaned_len >= MAXPATHLEN || zip_stat(za, file, 0, &sb) != 0) {
391 /* {{{ RETURN_SB(sb) */
392 #define RETURN_SB(sb) \
1527 struct zip_stat sb; local
1803 struct zip_stat sb; local
1830 struct zip_stat sb; local
2010 struct zip_stat sb; local
2076 struct zip_stat sb; local
2151 struct zip_stat sb; local
2225 struct zip_stat sb; local
2282 struct zip_stat sb; local
2347 struct zip_stat sb; local
2411 struct zip_stat sb; local
2578 struct zip_stat sb; local
2661 struct zip_stat sb; local
[all...]
H A Dphp_zip.h70 struct zip_stat sb; member in struct:_ze_zip_read_rsrc
H A Dzip_stream.c118 struct zip_stat sb; local
162 if (zip_stat(za, fragment, ZIP_FL_NOCASE, &sb) != 0) {
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
[all...]
/PHP_TRUNK/sapi/phttpd/
H A Dphttpd.c36 struct stat sb; member in struct:__anon342
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_TRUNK/sapi/cli/
H A Dphp_cli_server.c142 zend_stat_t sb; member in struct:php_cli_server_request
1400 zend_stat_t sb; local
1437 if (!zend_stat(buf, &sb)) {
1438 if (sb.st_mode & S_IFDIR) {
1446 if (!zend_stat(buf, &sb) && (sb.st_mode & S_IFREG)) {
1503 request->sb = sb;
2026 smart_str_append_unsigned_ex(&buffer, client->request.sb.st_size, 1);
2520 zend_stat_t sb; local
[all...]
/PHP_TRUNK/ext/fileinfo/
H A Dfileinfo.c520 if (ssb.sb.st_mode & S_IFDIR) {
539 if (ssb.sb.st_mode & S_IFDIR) {
/PHP_TRUNK/main/
H A Dphp_ini.c618 zend_stat_t sb; local
661 if (VCWD_STAT(ini_file, &sb) == 0) {
662 if (S_ISREG(sb.st_mode)) {
748 zend_stat_t sb; local
754 if (VCWD_STAT(ini_file, &sb) == 0) {
755 if (S_ISREG(sb.st_mode)) {
/PHP_TRUNK/main/streams/
H A Dmemory.c209 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 Dplain_wrapper.c123 unsigned cached_fstat:1; /* sb is valid */
142 zend_stat_t sb; member in struct:__anon11
153 r = zend_fstat(fd, &d->sb);
241 self->is_pipe = (do_fstat(self, 0) == 0 && S_ISFIFO(self->sb.st_mode)) ? 1 : 0;
280 self->is_pipe = (do_fstat(self, 0) == 0 && S_ISFIFO(self->sb.st_mode)) ? 1 : 0;
582 memcpy(&ssb->sb, &data->sb, sizeof(ssb->sb));
673 if (range->length == 0 && range->offset > 0 && range->offset < data->sb.st_size) {
674 range->length = data->sb
1138 zend_stat_t sb; local
1201 zend_stat_t sb; local
[all...]
/PHP_TRUNK/win32/
H A Dglob.c562 zend_stat_t sb; local
573 if (g_lstat(pathbuf, &sb, pglob))
577 !IS_SLASH(pathend[-1])) && (S_ISDIR(sb.st_mode) ||
578 (S_ISLNK(sb.st_mode) &&
579 (g_stat(pathbuf, &sb, pglob) == 0) &&
580 S_ISDIR(sb.st_mode)))) {
857 g_lstat(fn, sb, pglob)
859 zend_stat_t *sb;
867 return((*pglob->gl_lstat)(buf, sb));
868 return(php_sys_lstat(buf, sb));
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg.c273 struct stat sb; local
276 if (VCWD_STAT(exec->val, &sb) != FAILURE) {
277 if (sb.st_mode & (S_IFREG|S_IFLNK)) {
H A Dphpdbg_prompt.c309 struct stat sb; local
311 if (init_file && VCWD_STAT(init_file, &sb) != -1) {
377 struct stat sb; local
379 if (VCWD_STAT(param->str, &sb) != FAILURE) {
380 if (sb.st_mode & (S_IFREG|S_IFLNK)) {
1075 struct stat sb; local
1077 if (VCWD_STAT(param->str, &sb) != -1) {

Completed in 78 milliseconds

12