Lines Matching defs:map

40  * enumeration functions.  The map is copied to a temp name, then the real
41 * map is removed and the temp map is moved to the real name. ypxfr then
43 * not hold a removed map open, so serving an obsolete version.
46 * [ -s <domainname> ] [-f] [-c] [-C tid prot name] map
123 char *map = NULL;
132 char *master_name = NULL; /* Map's master as contained in the map */
133 unsigned *master_version = NULL; /* Order number as contained in the map */
134 char *master_ascii_version; /* ASCII order number as contained in the map */
138 * the map, and the user specified -f
149 bool secure_map = FALSE; /* TRUE if there is yp_secure in the map */
153 * the local or the master version of the map
161 struct timeval tcp_timeout = { 180, 0}; /* Timeout for map enumeration */
166 int entry_count; /* counts entries in the map */
171 [ -s domainname ] [-c] [-C tid prot servname ] map\n\n\
174 host is the server from where the map should be transfered\n\
176 -s domainname is a source for the map that is same across domains\n\
177 -c inhibits sending a \"Clear map\" message to the local ypserv.\n\
303 "Can't get order number for map %s from server at %s: use the -f flag.\n",
304 map, master);
318 logprintf("Transferred map %s from %s (%d entries).\n",
319 map, master, entry_count);
522 if (!map) {
523 map = *argv;
526 if (strlen(map) > YPMAXMAP) {
539 if (!map) {
546 * This tries to get the master name for the named map, from any
555 if (err = __yp_master_rsvdport(source, map, &master)) {
556 logprintf("Can't get master of %s. Reason: %s.\n", map,
670 * master server's version of the map. Values are held in static variables
695 "ypxfr: Couldn't get map's master version number, \
710 "ypxfr: Couldn't get map's master name, status was %d\n",
723 "ypxfr: Masters map %s secure and %s an interdomain map.\n",
731 "ypxfr: Couldn't get state of secure and interdomain flags in map.\n");
740 * This gets the map's order number from the master server
765 req.map = map;
768 * Get the map''s order number, null-terminate it and store it,
819 req.map = map;
827 * Get the value of the IS_SECURE key in the map.
873 * Get the value of the INTERDOMAIN key in the map.
917 * This gets the map's master name from the master server
940 req.map = map;
977 * This does the work of transferring the map.
998 "ypxfr: Local version of map '%s' is %d\n",
1004 map, master);
1014 "Can't create temp map %s.\n", tmp_name);
1019 if ((hgstatus = ypxfrd_getdbm(tmp_name, master, source, map)) < 0)
1023 master, domain, map, hgstatus);
1028 "Can't dbm init temp map %s.\n", tmp_name);
1047 * Decide whether the map just transferred is a secure map.
1062 "Can't do dbm close operation on temp map %s.\n",
1074 "Version skew at %s while transferring map %s.\n",
1075 master, map);
1088 /* touch up the map */
1092 "Can't dbm init temp map %s.\n", tmp_name);
1106 * Decide whether the map just transferred is a secure map.
1121 "Can't do dbm close operation on temp map %s.\n",
1182 * This tries to get the order number out of the local version of the map.
1220 * the local map here.
1231 * map. Keep the value around if they are.
1252 * This constructs a file name for a map, minus its dbm_dir
1265 len = strlen(domain) + strlen(map) + strlen(ypdbpath) + 3;
1279 (void) strcat(ppath, map);
1283 * This returns a temporary name for a map transfer minus its dbm_dir or
1306 (void) strcat(xfr_name, map);
1312 * This deletes the .pag and .dir files which implement a map.
1424 map, oldcount, entry_count);
1445 allreq.map = map;
1476 map, oldcount, entry_count);
1556 allreq.map = map;
1588 * This sticks each key-value pair into the current map. It returns FALSE as
1627 logprintf("Duplicate key %s in map %s\n", key, map);
1634 "Can't do dbm store into temp map %s.\n", map);
1642 key, map);
1650 key, map);
1718 "Can't do dbm store into temp map %s.\n",
1732 "Can't do dbm store into temp map %s.\n",
1746 "Can't do dbm store into temp map %s.\n",
1760 "Can't do dbm store into temp map %s.\n",
1821 execlp("./yppush", "yppush", "-T", map, 0);
1822 execlp("/usr/etc/yp/yppush", "yppush", "-T", map, 0);