Searched refs:map_ctrl (Results 1 - 12 of 12) sorted by relevance

/osnet-11/usr/src/lib/libnisdb/yptol/
H A Dyptol.h72 extern int get_ttl_value(map_ctrl *, TTL_TYPE);
78 extern suc_code update_map_from_dit(map_ctrl *, bool_t);
82 extern suc_code update_netgroup_byxxx(map_ctrl *);
87 extern suc_code update_entry_ttl(map_ctrl *, datum *, TTL_TYPE);
91 extern bool_t has_map_expired(map_ctrl *);
92 extern suc_code update_map_if_required(map_ctrl *, bool_t);
93 extern suc_code update_entry_if_required(map_ctrl *, datum *);
94 extern void set_key_data(map_ctrl *, datum *);
95 extern bool_t is_map_updating(map_ctrl *);
96 extern bool_t has_entry_expired(map_ctrl *, datu
[all...]
H A Dshim.h54 * strings to be worked out once (when the map_ctrl is created) rather
71 int magic; /* Check that this really is a map_ctrl */
73 }map_ctrl; typedef in typeref:struct:__anon2015
111 extern map_ctrl *get_map_ctrl(DBM *);
112 extern map_ctrl *create_map_ctrl(char *);
113 extern void free_map_ctrl(map_ctrl *);
114 extern map_ctrl *dup_map_ctrl(map_ctrl *);
115 extern void dump_map_ctrl(map_ctrl *);
116 extern suc_code map_ctrl_init(map_ctrl *ma
[all...]
H A Dshim_lockmap.c31 * when a map, or its map_ctrl structure, needs to be locked
52 * DESCRIPTION: Front end to the lock routine taking map_ctrl structure as
60 lock_map_ctrl(map_ctrl *map)
72 * DESCRIPTION: Front end to the unlock routine taking map_ctrl structure as
80 unlock_map_ctrl(map_ctrl *map)
H A Dshim.c39 * key data in malloced memory. This is freed when map_ctrl is
70 void check_old_map_date(map_ctrl *);
90 map_ctrl *map;
116 map_ctrl *map;
152 map_ctrl *map;
191 map_ctrl *map;
223 map_ctrl *map;
310 map_ctrl *map;
351 map_ctrl *map;
382 map_ctrl *ma
[all...]
H A Dupdate.c58 suc_code update_from_dit(map_ctrl *, datum *);
82 update_entry_if_required(map_ctrl *map, datum *key)
128 update_from_dit(map_ctrl *map, datum *key)
206 update_map_if_required(map_ctrl *map, bool_t wait)
209 map_ctrl *new_map;
217 * May block so unlock map_ctrl while it is done
271 * Make a copy of the map_ctrl structure so the update thread has an
311 /* May block but no problem map_ctrl is already unlocked. */
332 * Since we are using a duplicate map_ctrl we do not have to lock
345 map_ctrl *ma
[all...]
H A Dmap_ctrl.c28 * of map_ctrl structures. These are used to hold information
77 * DESCRIPTION: Create and a new map_ctrl in a non opened state.
81 * OUTPUTS: Pointer to map_ctrl
85 map_ctrl *
89 map_ctrl *map;
91 map = (map_ctrl *)am(myself, sizeof (map_ctrl));
93 logmsg(MSG_NOTIMECHECK, LOG_ERR, "Could not alloc map_ctrl");
111 * Initialize the fields of the map_ctrl. By doing this once here we
116 "Could not initialize map_ctrl fo
[all...]
H A Dttl_utils.c65 has_entry_expired(map_ctrl *map, datum *key)
159 has_map_expired(map_ctrl *map)
186 update_entry_ttl(map_ctrl *map, datum *key, TTL_TYPE type)
220 * the map open (map_ctrl DBM pointer set up) or the map closed
221 * (map_ctrl DBM pointers not set). The latter case will occur
225 * return with the map_ctrl in it's original state.
234 update_map_ttl(map_ctrl *map)
H A Dlock_update.c222 lock_map_update(map_ctrl *map)
278 unlock_map_update(map_ctrl *map)
306 * GIVEN : Pointer to map_ctrl structure
312 is_map_updating(map_ctrl *map)
341 try_lock_map_update(map_ctrl *map)
H A Ddit_access.c77 suc_code add_special_entries(DBM *, map_ctrl *, bool_t *);
276 get_ttl_value(map_ctrl *map, TTL_TYPE type)
542 add_special_entries(DBM *db, map_ctrl *map, bool_t *secure_flag)
584 * INPUTS: map_ctrl containing lots of information about the map and a
592 update_map_from_dit(map_ctrl *map, bool_t log_flag) {
608 map_ctrl temp_map;
904 /* Set up enough of map_ctrl to call update_entry_ttl */
1180 * INPUTS: map_ctrl containing lots of information about the map and a
1187 update_netgroup_byxxx(map_ctrl *map) {
1195 map_ctrl temp_ma
[all...]
H A Dshim_changepasswd.c566 if (SUCCESS != lock_map_update((map_ctrl *)map)) {
574 res = dbm_store(((map_ctrl *)map)->entries, key, data, DBM_REPLACE);
577 update_entry_ttl((map_ctrl *)map, &key, TTL_RAND);
584 if (FAILURE == update_timestamp(((map_ctrl *)map)->entries)) {
595 unlock_map_update((map_ctrl *)map);
H A Dmap_conv.c355 map_ctrl map;
362 * To call update_map_from_dit() we need an initialized map_ctrl.
/osnet-11/usr/src/lib/libnisdb/
H A DMakefile65 map_ctrl.o \
101 $(YPTOL_DIR)/map_ctrl.c \
124 map_ctrl.o \

Completed in 31 milliseconds