Lines Matching defs:lockinfo
44 osa_adb_lock_ent lockinfo;
169 * distinct lockinfo structures, things get confused: lock(A),
173 * single lockinfo structure.
175 * It is not sufficient to have a single lockinfo structure,
178 * lock files. This code used to use a single static lockinfo
182 * We now maintain a linked list of lockinfo structures, keyed by
187 * decremented, and when it is zero the lockinfo structure is
193 /* find or create the lockinfo structure for lockfilename */
196 if (strcmp(lockp->lockinfo.filename, lockfilename) == 0)
213 /* now initialize lockp->lockinfo if necessary */
214 if (lockp->lockinfo.lockfile == NULL) {
215 if ((code = krb5int_init_context_kdc(&lockp->lockinfo.context))) {
224 lockp->lockinfo.filename = strdup(lockfilename);
226 if ((lockp->lockinfo.lockfile = fopen(lockfilename, "r+F")) == NULL) {
232 if ((lockp->lockinfo.lockfile = fopen(lockfilename, "rF"))
238 set_cloexec_file(lockp->lockinfo.lockfile);
239 lockp->lockinfo.lockmode = lockp->lockinfo.lockcnt = 0;
242 /* lockp is set, lockinfo is initialized, update the reference count */
243 db->lock = &lockp->lockinfo;
270 * find the lockinfo entry in the linked list. If the