Lines Matching refs:fp
120 FILE* fp = fopen(filePath, "r"); in IsProcessExist() local
121 if (fp == nullptr) { in IsProcessExist()
126 if (fgets(buf, sizeof(buf) - 1, fp) == nullptr) { in IsProcessExist()
127 fclose(fp); in IsProcessExist()
140 fclose(fp); in IsProcessExist()
143 fclose(fp); in IsProcessExist()
216 inline int CustomFdFclose(FILE** fp) in CustomFdFclose() argument
218 int ret = fclose(*fp); in CustomFdFclose()
220 *fp = nullptr; in CustomFdFclose()
297 int CustomPclose(FILE* fp, int fds[], volatile pid_t& childPid, bool needUnblock) in CustomPclose() argument
300 CHECK_NOTNULL(fp, -1, "NOTE %s: fp is null", __func__); in CustomPclose()
318 if (fileno(fp) == fds[READ]) { in CustomPclose()
321 } else if (fileno(fp) == fds[WRITE]) { in CustomPclose()
329 CHECK_TRUE(CustomFdFclose(&fp) == 0, -1, "CustomFdFclose failed!"); in CustomPclose()