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/standard/
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 Dlink.c90 zend_stat_t sb; local
105 ret = VCWD_LSTAT(link, &sb);
113 RETURN_LONG((zend_long) sb.st_dev);
H A Dfilestat.c902 stat_sb = &ssb.sb;
907 if(ssb.sb.st_uid==getuid()) {
911 } else if(ssb.sb.st_gid==getgid()) {
924 if(ssb.sb.st_gid==gids[i]) {
953 RETURN_LONG((zend_long)ssb.sb.st_mode);
955 RETURN_LONG((zend_long)ssb.sb.st_ino);
957 RETURN_LONG((zend_long)ssb.sb.st_size);
959 RETURN_LONG((zend_long)ssb.sb.st_uid);
961 RETURN_LONG((zend_long)ssb.sb.st_gid);
963 RETURN_LONG((zend_long)ssb.sb
[all...]
H A Dftp_fopen_wrapper.c791 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->sb.st_size = atoi(tmp_line + 4);
860 ssb->sb.st_mtime = mktime(&tm);
864 ssb->sb.st_mtime = -1;
867 ssb->sb.st_ino = 0; /* Unknown values */
868 ssb->sb
[all...]
H A Diptc.c188 zend_stat_t sb; local
205 zend_fstat(fileno(fp), &sb); local
207 spoolbuf = zend_string_alloc(iptcdata_len + sizeof(psheader) + sb.st_size + 1024, 0);
209 memset(poi, 0, iptcdata_len + sizeof(psheader) + sb.st_size + 1024 + 1);
H A Dfile.c1532 ZVAL_LONG(&stat_dev, stat_ssb.sb.st_dev);
1533 ZVAL_LONG(&stat_ino, stat_ssb.sb.st_ino);
1534 ZVAL_LONG(&stat_mode, stat_ssb.sb.st_mode);
1535 ZVAL_LONG(&stat_nlink, stat_ssb.sb.st_nlink);
1536 ZVAL_LONG(&stat_uid, stat_ssb.sb.st_uid);
1537 ZVAL_LONG(&stat_gid, stat_ssb.sb.st_gid);
1544 if ((int)stat_ssb.sb.st_rdev < 0) {
1545 ZVAL_LONG(&stat_rdev, (int)stat_ssb.sb.st_rdev);
1547 ZVAL_LONG(&stat_rdev, stat_ssb.sb.st_rdev);
1550 ZVAL_LONG(&stat_rdev, stat_ssb.sb
[all...]
/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dfsmagic.c97 file_fsmagic(struct magic_set *ms, const char *fn, zend_stat_t *sb, php_stream *stream) argument
120 memcpy(sb, &ssb.sb, sizeof(struct stat));
122 if (php_sys_stat(fn, sb) != 0) {
134 if (sb->st_mode & S_ISUID)
139 if (sb->st_mode & S_ISGID)
144 if (sb->st_mode & S_ISVTX)
150 switch (sb->st_mode & S_IFMT) {
170 COMMA, major(sb->st_rdev), dv_unit(sb
[all...]
H A Dmagic.c291 const zend_stat_t *sb)
304 utsbuf[0].tv_sec = sb->st_atime;
305 utsbuf[1].tv_sec = sb->st_mtime;
312 utbuf.actime = sb->st_atime;
313 utbuf.modtime = sb->st_mtime;
355 zend_stat_t sb; local
373 switch (file_fsmagic(ms, inname, &sb, stream)) {
391 if (unreadable_info(ms, sb.st_mode, inname) == -1)
420 close_and_restore(ms, inname, 0, &sb);
290 close_and_restore(const struct magic_set *ms, const char *name, int fd, const zend_stat_t *sb) argument
/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/zip/lib/
H A Dzip_source_filep.c152 struct stat sb; local
154 if (stat(ctx->fname, &sb) < 0 || S_ISREG(sb.st_mode)) {
/PHP_TRUNK/ext/zip/
H A Dzip_stream.c126 struct zip_stat sb; local
170 if (zip_stat(za, fragment, ZIP_FL_NOCASE, &sb) != 0) {
178 ssb->sb.st_size = sb.size;
179 ssb->sb.st_mode |= S_IFREG; /* regular file */
181 ssb->sb.st_size = 0;
182 ssb->sb.st_mode |= S_IFDIR; /* regular directory */
185 ssb->sb.st_mtime = sb.mtime;
186 ssb->sb
[all...]
H A Dphp_zip.h70 struct zip_stat sb; member in struct:_ze_zip_read_rsrc
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) {
382 /* {{{ RETURN_SB(sb) */
383 #define RETURN_SB(sb) \
1561 struct zip_stat sb; local
1837 struct zip_stat sb; local
1864 struct zip_stat sb; local
2044 struct zip_stat sb; local
2110 struct zip_stat sb; local
2185 struct zip_stat sb; local
2259 struct zip_stat sb; local
2383 struct zip_stat sb; local
2448 struct zip_stat sb; local
2512 struct zip_stat sb; local
2679 struct zip_stat sb; local
2762 struct zip_stat sb; local
[all...]
/PHP_TRUNK/ext/fileinfo/
H A Dfileinfo.c544 if (ssb.sb.st_mode & S_IFDIR) {
563 if (ssb.sb.st_mode & S_IFDIR) {
/PHP_TRUNK/win32/
H A Dglob.c558 zend_stat_t sb; local
569 if (g_lstat(pathbuf, &sb, pglob))
573 !IS_SLASH(pathend[-1])) && (S_ISDIR(sb.st_mode) ||
574 (S_ISLNK(sb.st_mode) &&
575 (g_stat(pathbuf, &sb, pglob) == 0) &&
576 S_ISDIR(sb.st_mode)))) {
853 g_lstat(fn, sb, pglob)
855 zend_stat_t *sb;
863 return((*pglob->gl_lstat)(buf, sb));
864 return(php_sys_lstat(buf, sb));
[all...]
/PHP_TRUNK/ext/phar/
H A Dfunc_interceptors.c617 zend_stat_t sb = {0}; local
669 sb.st_size = 0;
670 sb.st_mode = 0777;
671 sb.st_mode |= S_IFDIR; /* regular directory */
673 sb.st_mtime.tv_sec = phar->max_timestamp;
674 sb.st_atime.tv_sec = phar->max_timestamp;
675 sb.st_ctime.tv_sec = phar->max_timestamp;
677 sb.st_mtime = phar->max_timestamp;
678 sb.st_atime = phar->max_timestamp;
679 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;
1328 if (ssb.sb.st_mode & S_IFDIR && !dir) {
1336 if ((ssb.sb.st_mode & S_IFDIR) == 0 && dir) {
H A Dstream.c489 ssb->sb.st_size = data->uncompressed_filesize;
490 ssb->sb.st_mode = data->flags & PHAR_ENT_PERM_MASK;
491 ssb->sb.st_mode |= S_IFREG; /* regular file */
494 ssb->sb.st_mtime.tv_sec = data->timestamp;
495 ssb->sb.st_atime.tv_sec = data->timestamp;
496 ssb->sb.st_ctime.tv_sec = data->timestamp;
498 ssb->sb.st_mtime = data->timestamp;
499 ssb->sb.st_atime = data->timestamp;
500 ssb->sb.st_ctime = data->timestamp;
503 ssb->sb
[all...]
/PHP_TRUNK/main/
H A Dphp_ini.c619 zend_stat_t sb; local
662 if (VCWD_STAT(ini_file, &sb) == 0) {
663 if (S_ISREG(sb.st_mode)) {
749 zend_stat_t sb; local
755 if (VCWD_STAT(ini_file, &sb) == 0) {
756 if (S_ISREG(sb.st_mode)) {
/PHP_TRUNK/main/streams/
H A Dmemory.c213 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->sb.st_atime = timestamp;
225 ssb->sb.st_ctime = timestamp;
228 ssb->sb
[all...]
H A Dplain_wrapper.c123 unsigned cached_fstat:1; /* sb is valid */
143 zend_stat_t sb; member in struct:__anon1
154 r = zend_fstat(fd, &d->sb);
248 self->is_pipe = (do_fstat(self, 0) == 0 && S_ISFIFO(self->sb.st_mode)) ? 1 : 0;
287 self->is_pipe = (do_fstat(self, 0) == 0 && S_ISFIFO(self->sb.st_mode)) ? 1 : 0;
591 memcpy(&ssb->sb, &data->sb, sizeof(ssb->sb));
686 if (range->length == 0 && range->offset > 0 && range->offset < data->sb.st_size) {
687 range->length = data->sb
1140 zend_stat_t sb; local
1201 zend_stat_t sb; local
[all...]
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_server.c138 zend_stat_t sb; member in struct:php_cli_server_request
1348 zend_stat_t sb; local
1385 if (!zend_stat(buf, &sb)) {
1386 if (sb.st_mode & S_IFDIR) {
1394 if (!zend_stat(buf, &sb) && (sb.st_mode & S_IFREG)) {
1451 request->sb = sb;
1974 smart_str_append_unsigned_ex(&buffer, client->request.sb.st_size, 1);
2462 zend_stat_t sb; local
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_prompt.c316 zend_stat_t sb; local
318 if (init_file && VCWD_STAT(init_file, &sb) != -1) {
388 zend_stat_t sb; local
390 if (VCWD_STAT(param->str, &sb) != FAILURE) {
391 if (sb.st_mode & (S_IFREG|S_IFLNK)) {
1141 zend_stat_t sb; local
1143 if (VCWD_STAT(param->str, &sb) != -1) {
H A Dphpdbg.c291 zend_stat_t sb; local
294 if (VCWD_STAT(ZSTR_VAL(exec), &sb) != FAILURE) {
295 if (sb.st_mode & (S_IFREG|S_IFLNK)) {

Completed in 62 milliseconds

12