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

/PHP_5_3/ext/zip/
H A Dzip_stream.c102 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 Dphp_zip.h66 struct zip_stat sb; member in struct:_ze_zip_read_rsrc
H A Dphp_zip.c63 /* {{{ 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) {
435 /* {{{ RETURN_SB(sb) */
436 #define RETURN_SB(sb) \
1610 struct zip_stat sb; local
1884 struct zip_stat sb; local
1911 struct zip_stat sb; local
2092 struct zip_stat sb; local
2156 struct zip_stat sb; local
2213 struct zip_stat sb; local
2278 struct zip_stat sb; local
2342 struct zip_stat sb; local
2513 struct zip_stat sb; local
2598 struct zip_stat sb; local
[all...]
/PHP_5_3/win32/
H A Dglob.c555 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_3/ext/fileinfo/libmagic/
H A Dapprentice.c529 size_t sb = apprentice_magic_strength(mb->mp); local
530 if (sa == sb)
532 else if (sa > sb)
2212 if (st.sb.st_mode & S_IFDIR) {
2237 if (st.sb.st_size < 8) {
2242 mm = emalloc((size_t)st.sb.st_size);
2243 if (php_stream_read(stream, mm, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) {
2288 *nmagicp = (uint32_t)(st.sb.st_size / sizeof(struct magic));
H A Dfsmagic.c93 file_fsmagic(struct magic_set *ms, const char *fn, struct stat *sb, php_stream *stream) argument
114 memcpy(sb, &ssb.sb, sizeof(struct stat));
116 if (php_sys_stat(fn, sb) != 0) {
127 if (sb->st_mode & S_ISUID)
132 if (sb->st_mode & S_ISGID)
137 if (sb->st_mode & S_ISVTX)
143 switch (sb->st_mode & S_IFMT) {
162 major(sb->st_rdev), dv_unit(sb
[all...]
H A Dmagic.c336 const struct stat *sb)
349 utsbuf[0].tv_sec = sb->st_atime;
350 utsbuf[1].tv_sec = sb->st_mtime;
357 utbuf.actime = sb->st_atime;
358 utbuf.modtime = sb->st_mtime;
394 struct stat sb; local
413 switch (file_fsmagic(ms, inname, &sb, stream)) {
435 if (unreadable_info(ms, sb.st_mode, inname) == -1)
464 close_and_restore(ms, inname, 0, &sb);
335 close_and_restore(const struct magic_set *ms, const char *name, int fd, const struct stat *sb) argument
/PHP_5_3/ext/pdo_odbc/
H A Dodbc_stmt.c388 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_3/ext/standard/
H A Dlink.c99 struct stat sb; local
114 ret = VCWD_LSTAT(link, &sb);
122 RETURN_LONG((long) sb.st_dev);
H A Dlink_win32.c84 struct stat sb; local
91 ret = VCWD_STAT(link, &sb);
97 RETURN_LONG((long) sb.st_dev);
H A Diptc.c186 struct stat sb; local
211 fstat(fileno(fp), &sb); local
213 poi = spoolbuf = safe_emalloc(1, iptcdata_len + sizeof(psheader) + sb.st_size + 1024, 1);
214 memset(poi, 0, iptcdata_len + sizeof(psheader) + sb.st_size + 1024 + 1);
/PHP_5_3/main/
H A Dfopen_wrappers.c684 struct stat sb; local
768 if (VCWD_STAT(trypath, &sb) == 0) {
H A Dphp_ini.c650 struct stat sb; local
677 if (VCWD_STAT(ini_file, &sb) == 0) {
678 if (S_ISREG(sb.st_mode)) {
762 struct stat sb; local
768 if (VCWD_STAT(ini_file, &sb) == 0) {
769 if (S_ISREG(sb.st_mode)) {
H A Dphp_streams.h107 struct stat sb; /* regular info */ member in struct:_php_stream_statbuf
H A Dsafe_mode.c50 struct stat sb; local
90 ret = VCWD_STAT(path, &sb);
105 uid = sb.st_uid;
106 gid = sb.st_gid;
151 ret = VCWD_STAT(path, &sb);
158 duid = sb.st_uid;
159 dgid = sb.st_gid;
/PHP_5_3/main/streams/
H A Dplain_wrapper.c109 unsigned cached_fstat:1; /* sb is valid */
128 struct stat sb; member in struct:__anon273
139 r = fstat(fd, &d->sb);
233 self->is_pipe = (do_fstat(self, 0) == 0 && S_ISFIFO(self->sb.st_mode)) ? 1 : 0;
272 self->is_pipe = (do_fstat(self, 0) == 0 && S_ISFIFO(self->sb.st_mode)) ? 1 : 0;
542 memcpy(&ssb->sb, &data->sb, sizeof(ssb->sb));
636 if (range->length == 0 && range->offset > 0 && range->offset < data->sb.st_size) {
637 range->length = data->sb
1127 struct stat sb; local
1190 struct stat sb; local
1467 struct stat sb; local
[all...]
/PHP_5_3/sapi/phttpd/
H A Dphttpd.c36 struct stat sb; member in struct:__anon288
197 if (url_expand(PHG(cip)->hip->url, SG(request_info).path_translated, MAXPATHLEN, &PHG(sb), NULL, NULL) == NULL) {
248 struct stat sb; local
/PHP_5_3/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_3/sapi/fpm/fpm/
H A Dfpm_conf.c146 struct stat sb; local
148 if (stat(path, &sb) != 0) {
152 return (sb.st_mode & S_IFMT) == S_IFDIR;
/PHP_5_3/ext/openssl/
H A Dopenssl.c1696 struct stat sb; local
1703 if (VCWD_STAT(Z_STRVAL_PP(item), &sb) == -1) {
1708 if ((sb.st_mode & S_IFREG) == S_IFREG) {
/PHP_5_3/ext/session/
H A Dsession.c1110 struct stat sb; local
1115 if (VCWD_STAT(path, &sb) == -1) {
1121 strcpy_gmt(buf + sizeof(LAST_MODIFIED) - 1, &sb.st_mtime);

Completed in 70 milliseconds