Home | History | Annotate | Download | only in mDNSPosix

Lines Matching defs:fp

472 static mDNSBool ReadALine(char *buf, size_t bufSize, FILE *fp, mDNSBool skipBlankLines)
480 if (fgets(buf, bufSize, fp) == NULL)
505 FILE * fp = fopen(filePath, "r");
507 if (fp == NULL) {
527 if (! ReadALine(name, sizeof(nameBuf), fp, mDNStrue))
543 if (! ReadALine(type, sizeof(type), fp, mDNSfalse))
562 if (! ReadALine(port, sizeof(port), fp, mDNSfalse))
575 if (!ReadALine(rawText, sizeof(rawText), fp, mDNSfalse)) break;
599 } while (!feof(fp));
601 if (!feof(fp)) {
608 int fp_closed = fclose(fp);
680 FILE *fp;
683 fp = fopen(gPIDFile, "w");
684 if (fp != NULL) {
685 fprintf(fp, "%ld\n", (long) getpid());
686 junk = fclose(fp);