Searched defs:lock (Results 1 - 25 of 78) sorted by relevance

1234

/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/
H A Dcc-int.h70 k5_mutex_t lock; member in struct:_k5_cc_mutex
85 k5_mutex_destroy(&(M)->lock);
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/
H A Drc_mem.h36 k5_mutex_t lock; member in struct:global_rcache
H A Drc-int.h43 k5_mutex_t lock; member in struct:krb5_rc_st
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/include/
H A Dcache-addrinfo.h125 k5_mutex_t lock; member in struct:fac
/osnet-11/usr/src/cmd/sendmail/db/btree/
H A Dbt_stat.c42 DB_LOCK lock; local
71 if ((ret = __bam_lget(dbc, 0, pgno, DB_LOCK_READ, &lock)) != 0)
79 (void)__BT_LPUT(dbc, lock);
85 if ((ret = __bam_lget(dbc, 0, pgno, DB_LOCK_READ, &lock)) != 0)
117 (void)__BT_TLPUT(dbc, lock);
126 (void)__BT_TLPUT(dbc, lock);
135 if ((ret = __bam_lget(dbc, 0, PGNO_ROOT, DB_LOCK_READ, &lock)) != 0)
138 (void)__BT_LPUT(dbc, lock);
175 (void)__BT_LPUT(dbc, lock);
180 (void)__BT_LPUT(dbc, lock);
[all...]
H A Dbt_rsearch.c74 DB_LOCK lock; local
91 * an item, we have to lock the entire tree, regardless. See btree.h
95 * write lock on a page before getting it. This depends on how deep it
97 * if we need to lock the root page we may have to upgrade it later,
98 * because we won't get the correct lock initially.
105 0, pg, stack ? DB_LOCK_WRITE : DB_LOCK_READ, &lock)) != 0)
108 (void)__BT_LPUT(dbc, lock);
113 * Decide if we need to save this page; if we do, write lock it.
114 * We deliberately don't lock-couple on this call. If the tree
117 * each one gets a read lock an
333 DB_LOCK lock; local
[all...]
H A Dbt_search.c82 DB_LOCK lock; local
101 * if we're modifying record numbers, we have to lock the entire tree
105 * write lock on a page before getting it. This depends on how deep it
107 * if we need to lock the root page we may have to upgrade it later,
108 * because we won't get the correct lock initially.
115 0, pg, stack ? DB_LOCK_WRITE : DB_LOCK_READ, &lock)) != 0)
118 (void)__BT_LPUT(dbc, lock);
123 * Decide if we need to save this page; if we do, write lock it.
124 * We deliberately don't lock-couple on this call. If the tree
127 * each one gets a read lock an
[all...]
H A Dbt_delete.c303 DB_LOCK lock; local
320 * Once we have the top page that we want to delete locked, lock the
340 (void)__BT_TLPUT(dbc, cp->csp[-1].lock);
342 (void)__BT_TLPUT(dbc, cp->csp[0].lock);
370 * Get the next page, write lock it and push it onto the stack.
376 if ((ret = __bam_lget(dbc, 0, pgno, DB_LOCK_WRITE, &lock)) != 0)
380 BT_STK_PUSH(cp, h, 0, lock, ret);
429 * read-locked and is waiting on a lock for the page we're deleting.
454 (void)__BT_TLPUT(dbc, epg->lock);
473 (void)__BT_TLPUT(dbc, epg->lock);
[all...]
/osnet-11/usr/src/lib/libast/common/sfio/
H A Dsfexcept.c38 reg int ev, local, lock; local
46 lock = f->mode&SF_LOCK;
53 if(local && lock)
61 if(local && lock)
117 if(lock)
125 if(lock)
H A Dsfsync.c89 int local, rv, mode, lock; local
105 lock = origf->mode&SF_LOCK;
149 f->mode = SF_READ|SF_SYNCED|lock;
/osnet-11/usr/src/lib/libuuid/common/
H A Duuid_misc.h73 mutex_t lock; member in struct:__anon2708
/osnet-11/usr/src/lib/sun_fc/common/
H A DLockable.cc65 * @memo Unlock a given mutex lock
66 * @precondition The lock must be held by this thread
67 * @postcondition The lock will be released
68 * @param myMutex The lock to unlock
76 * @postcondition The lock will be held by this thread.
78 void Lockable::lock() { function in class:Lockable
79 lock(&mutex);
83 * @memo Lock the given mutex lock
84 * @postcondition The lock will be held by this thread
85 * @param myMutex The mutex lock t
87 void Lockable::lock(pthread_mutex_t *myMutex) { function in class:Lockable
[all...]
/osnet-11/usr/src/lib/libnsl/common/
H A Ddaemon_utils.c46 * Use an advisory lock to ensure that only one daemon process is
47 * active in the system at any point in time. If the lock is held
49 * the lock to the caller immediately. The lock is cleared if the
50 * holding daemon process exits for any reason even if the lock
55 * check if another process is holding lock on the lock file.
65 struct flock lock; local
73 lock.l_type = F_WRLCK;
74 lock
144 struct flock lock; local
[all...]
/osnet-11/usr/src/lib/libnsl/rpc/
H A Dfdsync.c54 int end; /* fd of last lock in the list */
55 mutex_t lock[CELLTBLSZ]; /* recursive locks */ member in struct:rpcfd_block
60 /* Following functions create and manipulates the dgfd lock object */
70 * (No lock is required for initial creation.)
76 * If rpc_fd_lock() fails to acquire a lock, it returns non-zero (ENOMEM).
98 mp = &p->lock[fd % CELLTBLSZ];
132 (void) mutex_init(&p->lock[i],
163 return (&p->lock[fd % CELLTBLSZ]);
/osnet-11/usr/src/lib/libslp/clib/
H A Dslp_queue.c63 mutex_t *lock; member in struct:queue
77 mutex_t *lock; local
84 if ((lock = calloc(1, sizeof (*lock))) == NULL) {
106 q->lock = lock;
127 (void) mutex_lock(q->lock);
137 (void) mutex_unlock(q->lock);
156 (void) mutex_lock(q->lock);
162 (void) mutex_unlock(q->lock);
[all...]
/osnet-11/usr/src/lib/libldap4/include/
H A Dthq.h24 pthread_mutex_t lock; /* queue mutex */ member in struct:__anon1917
/osnet-11/usr/src/lib/libdevinfo/
H A Ddevinfo_dli.c94 flock_t lock; local
118 bzero(&lock, sizeof (lock));
119 lock.l_type = l_type;
120 if (fcntl(fd, F_SETLKW, &lock) < 0) {
150 flock_t lock; local
154 bzero(&lock, sizeof (lock));
155 lock.l_type = F_UNLCK;
156 (void) fcntl(fd, F_SETLK, &lock);
[all...]
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/
H A Dpolicy_db.h68 osa_adb_lock_t lock; member in struct:_osa_adb_db_ent_t
/osnet-11/usr/src/lib/libast/common/vmalloc/
H A Dvmprivate.c106 { int rv, lock; local
107 lock = vd->mode&VM_LOCK;
110 vd->mode |= lock;
/osnet-11/usr/src/lib/libmapmalloc/common/
H A Dtextmem.c57 static mutex_t lock = DEFAULTMUTEX; variable
96 (void) mutex_lock(&lock);
98 (void) mutex_unlock(&lock);
164 (void) mutex_lock(&lock);
167 (void) mutex_unlock(&lock);
184 (void) mutex_unlock(&lock);
192 (void) mutex_unlock(&lock);
201 (void) mutex_lock(&lock);
203 (void) mutex_unlock(&lock);
210 (void) mutex_unlock(&lock);
[all...]
/osnet-11/usr/src/lib/libnisdb/
H A Dnis_hashitem.h43 pthread_cond_t lock; member in struct:__nis_item_item
56 pthread_mutex_t lock; member in struct:__anon1983
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/support/
H A Derrors.c35 #define lock() k5_mutex_lock(&krb5int_error_info_support_mutex) macro
142 if (lock())
214 if (lock() == 0) {
/osnet-11/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_rep.c136 * This function sets an advisory lock on the file pointed to by the argument
137 * fd, which is a file descriptor. The lock is set using fcntl() which uses
143 struct flock lock; local
145 lock.l_type = type;
146 lock.l_start = offset;
147 lock.l_whence = whence;
148 lock.l_len = len;
150 return (fcntl(fd, cmd, &lock));
346 * We cannot close the repository since we hold a lock
/osnet-11/usr/src/lib/libzonecfg/common/
H A Dgetzoneent.c194 struct flock lock; local
209 lock.l_type = F_WRLCK;
210 lock.l_whence = SEEK_SET;
211 lock.l_start = 0;
212 lock.l_len = 0;
214 if (fcntl(lock_fd, F_SETLKW, &lock) == -1) {
225 struct flock lock; local
227 lock.l_type = F_UNLCK;
228 lock.l_whence = SEEK_SET;
229 lock
[all...]
H A Dscratchops.c72 struct flock lock; local
74 lock.l_type = type;
75 lock.l_whence = SEEK_SET;
76 lock.l_start = 0;
77 lock.l_len = 0;
79 return (fcntl(fd, F_SETLKW, &lock));
154 /* We always hold at least a read lock on the file */

Completed in 216 milliseconds

1234