Lines Matching refs:rmtabf
59 static FILE *rmtabf = NULL; variable
324 if (rmtabf) in rmtab_rewrite()
325 (void) fclose(rmtabf); in rmtab_rewrite()
328 if ((rmtabf = fopen(RMTAB, "w+")) != NULL) { in rmtab_rewrite()
332 (void) fchmod(fileno(rmtabf), in rmtab_rewrite()
488 if (rmtabf == NULL || fseek(rmtabf, 0L, 2) == -1) { in rmtab_insert()
491 pos = ftell(rmtabf); in rmtab_insert()
498 if (fprintf(rmtabf, "[%s]:%s\n", host, path) == EOF) { in rmtab_insert()
502 if (fprintf(rmtabf, "%s:%s\n", host, path) == EOF) { in rmtab_insert()
506 if (fflush(rmtabf) == EOF) { in rmtab_insert()
520 if (rmtabf != NULL && pos != -1 && fseek(rmtabf, pos, 0) == 0) { in rmtab_delete()
521 (void) fprintf(rmtabf, "#"); in rmtab_delete()
522 (void) fflush(rmtabf); in rmtab_delete()