Searched refs:rmtabf (Results 1 – 1 of 1) sorted by relevance
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/ |
H A D | rmtab.c | 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() 489 if (rmtabf == NULL || fseek(rmtabf, 0L, 2) == -1) { in rmtab_insert() 492 pos = ftell(rmtabf); in rmtab_insert() 499 if (fprintf(rmtabf, "[%s]:%s\n", host, path) == EOF) { in rmtab_insert() 503 if (fprintf(rmtabf, "%s:%s\n", host, path) == EOF) { in rmtab_insert() 507 if (fflush(rmtabf) == EOF) { in rmtab_insert() [all …]
|