Lines Matching refs:INIT_ERROR_CHECK
192 INIT_ERROR_CHECK(fd >= 0, return NULL, "Failed to read file %s errno:%d", fileName, errno); in ReadFileData()
194 INIT_ERROR_CHECK(buffer != NULL, close(fd); in ReadFileData()
197 INIT_ERROR_CHECK((readLen > 0) && (readLen < (MAX_SMALL_BUFFER - 1)), close(fd); in ReadFileData()
252 …INIT_ERROR_CHECK(name != NULL && buffer != NULL && value != NULL, return -1, "Failed get parameter… in GetProcCmdlineValue()
342 INIT_ERROR_CHECK(items != NULL, return NULL, "No enough memory to store items"); in SplitStringExt()
351 INIT_ERROR_CHECK(expand != NULL, FreeStringVector(items, count); in SplitStringExt()
374 INIT_ERROR_CHECK(maxSecond <= WAIT_MAX_SECOND, maxSecond = WAIT_MAX_SECOND, in WaitForFile()
417 …INIT_ERROR_CHECK(errno == ENOENT, return NULL, "Failed to resolve %s real path err=%d", source, er… in GetRealPath()
430 INIT_ERROR_CHECK(!(rc < 0 && errno != EEXIST), return rc, in MakeDir()
525 INIT_ERROR_CHECK(pDir != NULL, return -1, "Read dir :%s failed.%d", dirPath, errno); in ReadFileInDir()
527 INIT_ERROR_CHECK(fileName != NULL, closedir(pDir); in ReadFileInDir()
579 INIT_ERROR_CHECK(strl != NULL, return -1, "Invalid parament"); in StringReplaceChr()
620 INIT_ERROR_CHECK(str != NULL && out != NULL, return -1, "Invalid parament"); in StringToLL()
643 INIT_ERROR_CHECK(str != NULL && out != NULL, return -1, "Invalid parament"); in StringToULL()