Lines Matching refs:af
503 SM_FILE_T *af; local
523 if ((af = safefopen(map->map_file, O_RDWR, 0, sff)) == NULL)
528 (af = safefopen(map->map_file, O_RDONLY, 0, sff)) == NULL)
543 fstat(sm_io_getinfo(af, SM_IO_WHAT_FD, NULL), &stb) < 0 ||
551 !lockfile(sm_io_getinfo(af, SM_IO_WHAT_FD, NULL), map->map_file,
560 (void) lockfile(sm_io_getinfo(af, SM_IO_WHAT_FD, NULL),
563 (void) sm_io_close(af, SM_TIME_DEFAULT);
585 readaliases(map, af, !automatic, true);
599 (void) sm_io_close(af, SM_TIME_DEFAULT);
639 readaliases(map, af, announcestats, logstats) in readaliases() argument
641 SM_FILE_T *af;
660 while (sm_io_fgets(af, SM_TIME_DEFAULT, line, sizeof(line)) >= 0)
672 if (sm_io_fgets(af, SM_TIME_DEFAULT, p,
680 else if (!sm_io_eof(af))
686 while ((c = sm_io_getc(af, SM_TIME_DEFAULT)) !=
774 c = sm_io_getc(af, SM_TIME_DEFAULT);
775 if (!sm_io_eof(af))
776 (void) sm_io_ungetc(af, SM_TIME_DEFAULT, c);
781 if (sm_io_fgets(af, SM_TIME_DEFAULT, p,
787 if (strchr(p, '\n') == NULL && !sm_io_eof(af))
790 while ((c = sm_io_getc(af, SM_TIME_DEFAULT))