Lines Matching refs:map

214 	static MAP *map = NULL;  local
226 if (map == NULL)
232 map = &s->s_map;
234 DYNOPENMAP(map);
255 res = (*map->map_class->map_lookup)(map, name, argv, pstat);
279 register MAP *map; local
315 map = &s->s_map;
316 memset(map, '\0', sizeof(*map));
317 map->map_mname = s->s_name;
329 map->map_mflags = MF_INCLNULL;
374 map->map_class = &s->s_mapclass;
375 map->map_mflags |= MF_ALIAS;
376 if (map->map_class->map_parse(map, spec))
378 map->map_mflags |= MF_VALID;
379 AliasFileMap->map_stack[NAliasFileMaps++] = map;
404 aliaswait(map, ext, isopen) in aliaswait() argument
405 MAP *map; in aliaswait()
416 map->map_class->map_cname, map->map_file,
417 isopen, bitset(MF_ALIASWAIT, map->map_mflags));
418 if (bitset(MF_ALIASWAIT, map->map_mflags))
420 map->map_mflags |= MF_ALIASWAIT;
430 map->map_class->map_lookup(map, "@", NULL, &st) == NULL)
451 map->map_mflags |= MF_CLOSING;
452 map->map_class->map_close(map);
453 map->map_mflags &= ~(MF_OPEN|MF_WRITABLE|MF_CLOSING|MF_CHKED_CHGD);
458 isopen = map->map_class->map_open(map, O_RDONLY);
461 map->map_mflags &= ~MF_CHKED_CHGD;
464 if (!bitset(MCF_REBUILDABLE, map->map_class->map_cflags))
468 map->map_mflags &= ~MF_ALIASWAIT;
471 if (stat(map->map_file, &stb) < 0)
475 map->map_mflags &= ~MF_ALIASWAIT;
480 map->map_file, ext == NULL ? "" : ext) >= sizeof(buf))
485 map->map_file, ext == NULL ? "" : ext);
487 map->map_file, ext == NULL ? "" : ext);
497 map->map_mflags &= ~MF_ALIASWAIT;
514 rebuildaliases(map) in rebuildaliases() argument
515 register MAP *map; in rebuildaliases()
526 if (!bitset(MCF_REBUILDABLE, map->map_class->map_cflags))
537 if ((af = safefopen(map->map_file, O_RDWR, 0, sff)) == NULL)
542 (af = safefopen(map->map_file, O_RDONLY, 0, sff)) == NULL)
548 map->map_file, sm_errstring(saveerr));
549 if (!bitset(MF_OPTIONAL, map->map_mflags))
551 map->map_file, sm_errstring(saveerr));
560 map->map_file, sm_errstring(errno));
565 !lockfile(sm_io_getinfo(af, SM_IO_WHAT_FD, NULL), map->map_file,
570 map->map_file);
575 map->map_file, NULL, LOCK_EX);
588 if (map->map_class->map_open(map, O_RDWR))
594 map->map_file, username());
596 map->map_mflags |= MF_OPEN|MF_WRITABLE;
597 map->map_pid = CurrentPid;
598 readaliases(map, af, true, true);
605 map->map_file, sm_errstring(errno));
607 map->map_file);
614 if (bitset(MF_OPEN, map->map_mflags))
623 sl, map->map_file);
628 map->map_mflags |= MF_CLOSING;
629 map->map_class->map_close(map);
630 map->map_mflags &= ~(MF_OPEN|MF_WRITABLE|MF_CLOSING);
711 readaliases(map, af, announcestats, logstats) in readaliases() argument
712 register MAP *map; in readaliases()
734 FileName = map->map_file;
928 map->map_class->map_store(map, lhsbuf, rhsbuf);
933 map->map_class->map_store(map, al.q_user, rhs);
947 map->map_file, naliases, longest, bytes);
951 map->map_file, naliases, longest, bytes);