Lines Matching refs:af
505 SM_FILE_T *af; local
525 if ((af = safefopen(map->map_file, O_RDWR, 0, sff)) == NULL)
530 (af = safefopen(map->map_file, O_RDONLY, 0, sff)) == NULL)
545 fstat(sm_io_getinfo(af, SM_IO_WHAT_FD, NULL), &stb) < 0 ||
553 !lockfile(sm_io_getinfo(af, SM_IO_WHAT_FD, NULL), map->map_file,
562 (void) lockfile(sm_io_getinfo(af, SM_IO_WHAT_FD, NULL),
565 (void) sm_io_close(af, SM_TIME_DEFAULT);
587 readaliases(map, af, !automatic, true);
601 (void) sm_io_close(af, SM_TIME_DEFAULT);
641 readaliases(map, af, announcestats, logstats) in readaliases() argument
643 SM_FILE_T *af;
662 while (sm_io_fgets(af, SM_TIME_DEFAULT, line, sizeof(line)) != NULL)
674 if (sm_io_fgets(af, SM_TIME_DEFAULT, p,
682 else if (!sm_io_eof(af))
688 while ((c = sm_io_getc(af, SM_TIME_DEFAULT)) !=
777 c = sm_io_getc(af, SM_TIME_DEFAULT);
778 if (!sm_io_eof(af))
779 (void) sm_io_ungetc(af, SM_TIME_DEFAULT, c);
784 if (sm_io_fgets(af, SM_TIME_DEFAULT, p,
790 if (strchr(p, '\n') == NULL && !sm_io_eof(af))
793 while ((c = sm_io_getc(af, SM_TIME_DEFAULT))