Lines Matching refs:st
143 struct stat st; in create_directory() local
159 if (stat(dir, &st) == 0) { in create_directory()
160 if (!S_ISDIR(st.st_mode)) { in create_directory()
176 if (stat(directory, &st) != 0) { in create_directory()
181 if ((st.st_mode & 0777) != 0770) { in create_directory()
182 ALOGE("No incident reports today. Mode is %0o on report directory %s", st.st_mode, in create_directory()
187 if (st.st_uid != AID_INCIDENTD || st.st_gid != AID_INCIDENTD) { in create_directory()
189 st.st_uid, st.st_gid, directory); in create_directory()
408 struct stat st; in startFilteringData() local
409 if (fstat(dataFd, &st) != 0) { in startFilteringData()
416 if (st.st_size != mEnvelope.data_file_size()) { in startFilteringData()
419 (int64_t)mEnvelope.data_file_size(), st.st_size, mDataFileName.c_str()); in startFilteringData()
713 struct stat st; in file_exists_locked() local
714 return stat(filename.c_str(), &st) == 0; in file_exists_locked()
761 struct stat st; in get_directory_contents_locked() local
762 if (stat(filename.c_str(), &st) != 0) { in get_directory_contents_locked()
766 if (!S_ISREG(st.st_mode)) { in get_directory_contents_locked()
777 entry.size += st.st_size; in get_directory_contents_locked()
778 totalSize += st.st_size; in get_directory_contents_locked()
807 struct stat st; in clean_directory_locked() local