Lines Matching refs:st
97 struct stat st;
107 if (stat(path, &st) == 0) {
108 if (S_ISREG(st.st_mode)) {
112 if (S_ISDIR(st.st_mode)) {
115 if (stat(path, &st) == 0 && S_ISREG(st.st_mode)) {
143 if (stat(path, &st) == -1 || !S_ISREG(st.st_mode)) {
145 if (stat(path, &st) == -1 ||
146 !S_ISREG(st.st_mode))
274 struct stat st;
276 if (stat(remote, &st) != 0) {
278 if (stat(path, &st) != 0)
283 if (!S_ISCHR(st.st_mode) && !S_ISFIFO(st.st_mode))
302 struct stat st;
422 if (stat(path, &st) == -1)
424 if (!S_ISREG(st.st_mode))