Searched defs:sb (Results 1 - 23 of 23) sorted by relevance

/PHP_5_6/ext/phar/
H A Dfunc_interceptors.c620 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...]
/PHP_5_6/ext/standard/
H A Dlink.c90 struct stat sb; local
105 ret = VCWD_LSTAT(link, &sb);
113 RETURN_LONG((long) sb.st_dev);
H A Dlink_win32.c91 struct stat sb; local
98 ret = VCWD_STAT(link, &sb);
104 RETURN_LONG((long) sb.st_dev);
H A Diptc.c187 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);
/PHP_5_6/ext/zip/
H A Dzip_stream.c118 struct zip_stat sb; local
163 if (zip_stat(za, fragment, ZIP_FL_NOCASE, &sb) != 0) {
170 ssb->sb.st_size = sb.size;
171 ssb->sb.st_mode |= S_IFREG; /* regular file */
173 ssb->sb.st_size = 0;
174 ssb->sb.st_mode |= S_IFDIR; /* regular directory */
177 ssb->sb.st_mtime = sb.mtime;
178 ssb->sb
[all...]
H A Dphp_zip.h74 struct zip_stat sb; member in struct:_ze_zip_read_rsrc
H A Dphp_zip.c79 /* {{{ PHP_ZIP_STAT_INDEX(za, index, flags, sb) */
80 #define PHP_ZIP_STAT_INDEX(za, index, flags, sb) \
81 if (zip_stat_index(za, index, flags, &sb) != 0) { \
86 /* {{{ PHP_ZIP_STAT_PATH(za, path, path_len, flags, sb) */
87 #define PHP_ZIP_STAT_PATH(za, path, path_len, flags, sb) \
92 if (zip_stat(za, path, flags, &sb) != 0) { \
168 struct zip_stat sb; local
197 if (path_cleaned_len >= MAXPATHLEN || zip_stat(za, file, 0, &sb) != 0) {
437 /* {{{ RETURN_SB(sb) */
438 #define RETURN_SB(sb) \
1672 struct zip_stat sb; local
1949 struct zip_stat sb; local
1976 struct zip_stat sb; local
2157 struct zip_stat sb; local
2223 struct zip_stat sb; local
2298 struct zip_stat sb; local
2371 struct zip_stat sb; local
2428 struct zip_stat sb; local
2493 struct zip_stat sb; local
2557 struct zip_stat sb; local
2724 struct zip_stat sb; local
2806 struct zip_stat sb; local
[all...]
/PHP_5_6/sapi/phttpd/
H A Dphttpd.c36 struct stat sb; member in struct:__anon345
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_6/win32/
H A Dglob.c562 struct stat 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 struct stat *sb;
867 return((*pglob->gl_lstat)(buf, sb));
868 return(php_sys_lstat(buf, sb));
[all...]
/PHP_5_6/main/
H A Dphp_ini.c626 struct stat sb; local
669 if (VCWD_STAT(ini_file, &sb) == 0) {
670 if (S_ISREG(sb.st_mode)) {
756 struct stat sb; local
762 if (VCWD_STAT(ini_file, &sb) == 0) {
763 if (S_ISREG(sb.st_mode)) {
H A Dphp_streams.h107 struct stat sb; /* regular info */ member in struct:_php_stream_statbuf
/PHP_5_6/ext/fileinfo/libmagic/
H A Dfsmagic.c93 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 Dmagic.c289 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)) {
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 struct stat *sb) argument
H A Dapprentice.c799 size_t sb = apprentice_magic_strength(mb->mp); local
800 if (sa == sb)
802 else if (sa > sb)
2628 if (st.sb.st_mode & S_IFDIR) {
2649 if (st.sb.st_size < 8) {
2654 map->len = (size_t)st.sb.st_size;
2659 if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) {
2699 nentries = (uint32_t)(st.sb.st_size / sizeof(struct magic));
2700 entries = (uint32_t)(st.sb
[all...]
/PHP_5_6/ext/opcache/
H A DZendAccelerator.c682 *statbuf = stream_statbuf.sb;
798 php_stream_statbuf sb; local
810 ret = stream->ops->stat(stream, &sb TSRMLS_CC);
819 statbuf = sb.sb;
/PHP_5_6/ext/pdo_odbc/
H A Dodbc_stmt.c394 php_stream_statbuf sb; local
402 if (0 == php_stream_stat(stm, &sb)) {
425 P->len = SQL_LEN_DATA_AT_EXEC(sb.sb.st_size);
/PHP_5_6/sapi/phpdbg/
H A Dphpdbg_prompt.c191 struct stat sb; local
193 if (init_file && VCWD_STAT(init_file, &sb) != -1) {
335 struct stat sb; local
337 if (VCWD_STAT(param->str, &sb) != FAILURE) {
338 if (sb.st_mode & (S_IFREG|S_IFLNK)) {
852 struct stat sb; local
854 if (VCWD_STAT(param->str, &sb) != -1) {
H A Dphpdbg.c235 struct stat sb; local
238 if (VCWD_STAT(exec, &sb) != FAILURE) {
239 if (sb.st_mode & (S_IFREG|S_IFLNK)) {
/PHP_5_6/sapi/fpm/fpm/
H A Dfpm_conf.c161 struct stat sb; local
163 if (stat(path, &sb) != 0) {
167 return (sb.st_mode & S_IFMT) == S_IFDIR;
/PHP_5_6/main/streams/
H A Dplain_wrapper.c116 unsigned cached_fstat:1; /* sb is valid */
135 struct stat sb; member in struct:__anon3
146 r = fstat(fd, &d->sb);
234 self->is_pipe = (do_fstat(self, 0) == 0 && S_ISFIFO(self->sb.st_mode)) ? 1 : 0;
273 self->is_pipe = (do_fstat(self, 0) == 0 && S_ISFIFO(self->sb.st_mode)) ? 1 : 0;
543 memcpy(&ssb->sb, &data->sb, sizeof(ssb->sb));
634 if (range->length == 0 && range->offset > 0 && range->offset < data->sb.st_size) {
635 range->length = data->sb
1099 struct stat sb; local
1162 struct stat sb; local
[all...]
/PHP_5_6/sapi/cli/
H A Dphp_cli_server.c141 struct stat sb; member in struct:php_cli_server_request
1453 struct stat sb; local
1490 if (!stat(buf, &sb)) {
1491 if (sb.st_mode & S_IFDIR) {
1499 if (!stat(buf, &sb) && (sb.st_mode & S_IFREG)) {
1556 request->sb = sb;
2071 smart_str_append_generic_ex(&buffer, client->request.sb.st_size, 1, size_t, _unsigned);
2537 struct stat sb; local
[all...]
/PHP_5_6/ext/openssl/
H A Dopenssl.c1802 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z|sb", &zcert, &method, &method_len, &raw_output) == FAILURE) {
2212 struct stat sb; local
2219 if (VCWD_STAT(Z_STRVAL_PP(item), &sb) == -1) {
2224 if ((sb.st_mode & S_IFREG) == S_IFREG) {
/PHP_5_6/ext/session/
H A Dsession.c1185 struct stat sb; local
1190 if (VCWD_STAT(path, &sb) == -1) {
1196 strcpy_gmt(buf + sizeof(LAST_MODIFIED) - 1, &sb.st_mtime);

Completed in 60 milliseconds