Lines Matching refs:fp
138 FILE* fp = fopen(filePath, "r"); in IsProcessExist() local
139 if (fp == nullptr) { in IsProcessExist()
144 if (fgets(buf, sizeof(buf) - 1, fp) == nullptr) { in IsProcessExist()
145 fclose(fp); in IsProcessExist()
158 fclose(fp); in IsProcessExist()
161 fclose(fp); in IsProcessExist()
233 inline int CustomFdFclose(FILE** fp) in CustomFdFclose() argument
235 int ret = fclose(*fp); in CustomFdFclose()
237 *fp = nullptr; in CustomFdFclose()
314 int CustomPclose(FILE* fp, int fds[], volatile pid_t& childPid, bool needUnblock) in CustomPclose() argument
317 CHECK_NOTNULL(fp, -1, "NOTE %s: fp is null", __func__); in CustomPclose()
335 if (fileno(fp) == fds[READ]) { in CustomPclose()
338 } else if (fileno(fp) == fds[WRITE]) { in CustomPclose()
346 CHECK_TRUE(CustomFdFclose(&fp) == 0, -1, "CustomFdFclose failed!"); in CustomPclose()