Lines Matching defs:file
4 * you may not use this file except in compliance with the License.
144 INIT_LOGE("Failed to allocate memory for config file, err = %d", errno);
189 INIT_ERROR_CHECK(fd >= 0, return NULL, "Failed to read file %s errno:%d", fileName, errno);
396 INIT_CHECK_ONLY_ELOG(duration < maxDuration, "wait for file:%s failed after %d second.", source, maxSecond);
494 int CheckAndCreatFile(const char *file, mode_t mode)
496 if (access(file, F_OK) == 0) {
497 BEGET_LOGW("File \' %s \' already exist", file);
501 CheckAndCreateDir(file);
502 int fd = open(file, O_CREAT, mode);
504 BEGET_LOGE("Failed create %s, err=%d", file, errno);
510 BEGET_LOGW("Failed to access \' %s \', err = %d", file, errno);
554 INIT_LOGE("Failed to get file name for %s", dp->d_name);