Lines Matching refs:st_mode
83 S_ISREG(file_stat.st_mode) && file_stat.st_uid == uid && in RegularFileOrDelete()
287 if (!S_ISDIR(st.st_mode)) { in OpenSafely()
288 LOG(ERROR) << path.value() << " is not a directory: " << st.st_mode; in OpenSafely()
291 } else if (!S_ISREG(st.st_mode) && !S_ISDIR(st.st_mode)) { in OpenSafely()
293 << " is not a regular file or directory: " << st.st_mode; in OpenSafely()
317 if (!S_ISDIR(st.st_mode)) { in OpenAtSafely()
318 LOG(ERROR) << path.value() << " is not a directory: " << st.st_mode; in OpenAtSafely()
321 } else if (!S_ISREG(st.st_mode)) { in OpenAtSafely()
322 LOG(ERROR) << path.value() << " is not a regular file: " << st.st_mode; in OpenAtSafely()
348 if (!S_ISFIFO(st.st_mode)) { in OpenFifoSafely()
349 LOG(ERROR) << path.value() << " is not a FIFO: " << st.st_mode; in OpenFifoSafely()