Lines Matching refs:lockinfo
46 osa_adb_lock_ent lockinfo;
170 * distinct lockinfo structures, things get confused: lock(A),
174 * single lockinfo structure.
176 * It is not sufficient to have a single lockinfo structure,
179 * lock files. This code used to use a single static lockinfo
183 * We now maintain a linked list of lockinfo structures, keyed by
188 * decremented, and when it is zero the lockinfo structure is
194 /* find or create the lockinfo structure for lockfilename */
197 if (strcmp(lockp->lockinfo.filename, lockfilename) == 0)
214 /* now initialize lockp->lockinfo if necessary */
215 if (lockp->lockinfo.lockfile == NULL) {
216 if ((code = krb5int_init_context_kdc(&lockp->lockinfo.context))) {
225 lockp->lockinfo.filename = strdup(lockfilename);
226 if ((lockp->lockinfo.lockfile = fopen(lockfilename, "r+F")) == NULL) {
231 if ((lockp->lockinfo.lockfile = fopen(lockfilename, "rF"))
237 lockp->lockinfo.lockmode = lockp->lockinfo.lockcnt = 0;
240 /* lockp is set, lockinfo is initialized, update the reference count */
241 db->lock = &lockp->lockinfo;
267 * find the lockinfo entry in the linked list. If the