Lines Matching refs:stat

412 -	struct stat st;
436 - if (stat(fn, &st) == 0 && S_ISDIR(st.st_mode)) {
463 - if (stat(mfn, &st) == -1 || !S_ISREG(st.st_mode)) {
627 - struct stat st;
678 file_error(ms, errno, "cannot stat `%s'", dbname);
973 #include <sys/stat.h>
976 -buffer_init(struct buffer *b, int fd, const struct stat *st, const void *data,
1443 #include <sys/stat.h>
1557 /* Do this here and now, because struct stat gets re-defined on solaris */
1558 #include <sys/stat.h>
1591 - struct stat st;
1614 -protected int file_buffer(struct magic_set *, int, struct stat *, const char *,
1616 -protected int file_fsmagic(struct magic_set *, const char *, struct stat *);
1662 -protected void buffer_init(struct buffer *, int, const struct stat *,
1816 -file_fsmagic(struct magic_set *ms, const char *fn, struct stat *sb)
1825 - struct stat tstatbuf;
1841 - ret = stat(fn, sb); /* don't merge into if; see "ret =" above */
1980 + /* stat is used, if it made here then the link is broken */
2003 - * that we can't stat their readlink output, so stat the
2006 - if (stat(fn, &tstatbuf) < 0)
2010 - if (stat(buf, &tstatbuf) < 0)
2043 - if (stat(tmp, &tstatbuf) < 0)
2156 -file_buffer(struct magic_set *ms, int fd, struct stat *st,
2430 - const struct stat *);
2543 - struct stat st;
2554 - if (stat(hmagicpath, &st) == -1) {
2558 - if (stat(hmagicpath, &st) == -1)
2654 - const struct stat *sb)
2719 - struct stat sb;
2751 - okstat = stat(inname, &sb) == 0;
2756 - * Can't stat, can't open. It may have been opened in
2794 + file_error(ms, errno, "cannot stat `%s'", inname);
2816 - /* We can not read it, but we were able to stat it. */