Lines Matching refs:stat

421 -	struct stat st;
445 - if (stat(fn, &st) == 0 && S_ISDIR(st.st_mode)) {
472 - if (stat(mfn, &st) == -1 || !S_ISREG(st.st_mode)) {
645 - struct stat st;
696 file_error(ms, errno, "cannot stat `%s'", dbname);
1000 #include <sys/stat.h>
1003 -buffer_init(struct buffer *b, int fd, const struct stat *st, const void *data,
1470 #include <sys/stat.h>
1584 /* Do this here and now, because struct stat gets re-defined on solaris */
1585 #include <sys/stat.h>
1618 - struct stat st;
1641 -protected int file_buffer(struct magic_set *, int, struct stat *, const char *,
1643 -protected int file_fsmagic(struct magic_set *, const char *, struct stat *);
1689 -protected void buffer_init(struct buffer *, int, const struct stat *,
1843 -file_fsmagic(struct magic_set *ms, const char *fn, struct stat *sb)
1852 - struct stat tstatbuf;
1868 - ret = stat(fn, sb); /* don't merge into if; see "ret =" above */
2007 + /* stat is used, if it made here then the link is broken */
2030 - * that we can't stat their readlink output, so stat the
2033 - if (stat(fn, &tstatbuf) < 0)
2037 - if (stat(buf, &tstatbuf) < 0)
2070 - if (stat(tmp, &tstatbuf) < 0)
2183 -file_buffer(struct magic_set *ms, int fd, struct stat *st,
2457 - const struct stat *);
2570 - struct stat st;
2581 - if (stat(hmagicpath, &st) == -1) {
2585 - if (stat(hmagicpath, &st) == -1)
2681 - const struct stat *sb)
2746 - struct stat sb;
2778 - okstat = stat(inname, &sb) == 0;
2783 - * Can't stat, can't open. It may have been opened in
2821 + file_error(ms, errno, "cannot stat `%s'", inname);
2843 - /* We can not read it, but we were able to stat it. */