Lines Matching refs:stat
378 struct stat st;
409 - if (stat(fn, &st) == 0 && S_ISDIR(st.st_mode)) {
434 if (stat(mfn, &st) == -1 || !S_ISREG(st.st_mode)) {
564 - struct stat st;
617 file_error(ms, errno, "cannot stat `%s'", dbname);
1374 /* Do this here and now, because struct stat gets re-defined on solaris */
1375 #include <sys/stat.h>
1433 -protected int file_fsmagic(struct magic_set *, const char *, struct stat *);
1434 +protected int file_fsmagic(struct magic_set *, const char *, struct stat *, php_stream *);
1596 -file_fsmagic(struct magic_set *ms, const char *fn, struct stat *sb)
1597 +file_fsmagic(struct magic_set *ms, const char *fn, struct stat *sb, php_stream *stream)
1604 - struct stat tstatbuf;
1626 - ret = stat(fn, sb); /* don't merge into if; see "ret =" above */
1630 - file_error(ms, errno, "cannot stat `%s'", fn);
1637 + file_error(ms, errno, "cannot stat `%s'", fn);
1642 + memcpy(sb, &ssb.sb, sizeof(struct stat));
1646 + file_error(ms, errno, "cannot stat `%s'", fn);
1783 + /* stat is used, if it made here then the link is broken */
1803 - if (stat(buf, &tstatbuf) < 0)
1835 - if (stat(tmp, &tstatbuf) < 0)
1870 - * If stat() tells us the file has zero length, report here that
1877 + * If stat() tells us the file has zero length, report here that
1881 * optimization, since on some systems, stat() reports zero
2262 const struct stat *);
2286 struct stat st;
2291 if (stat(hmagicpath, &st) == -1) {
2296 + if (stat(hmagicpath, &st) == -1)
2302 - if (stat(hmagicpath, &st) == -1)
2366 const struct stat *sb)
2413 struct stat sb;
2451 - if (stat(inname, &sb) == 0 && S_ISFIFO(sb.st_mode)) {
2500 - /* We can not read it, but we were able to stat it. */