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

1234567891011>>

/illumos-gate/usr/src/cmd/mail/
H A Dlock.c36 lock(char *user) function
45 "%s: Cannot create lock file. Username '%s' is > 13 chars\n",
49 strcpy(tbuf, "Cannot create temp lock file\n");
52 strcpy(tbuf, "Error writing pid to lock file\n");
61 strcpy(tbuf, "Cannot set mandatory file lock on temp lockfile\n");
/illumos-gate/usr/src/cmd/mailx/
H A Dlock.c39 * lock a file pointer
47 lock(FILE *fp, char *mode, int blk) function
/illumos-gate/usr/src/uts/i86pc/os/
H A Dhold_page.c34 plat_hold_page(pfn_t pfn, int lock, page_t **pp_ret) argument
47 if (lock == PLAT_HOLD_LOCK) {
53 if (lock == PLAT_HOLD_LOCK) {
60 /* We failed - release the lock if we grabbed it earlier */
61 if (lock == PLAT_HOLD_LOCK) {
68 if (lock == PLAT_HOLD_LOCK)
/illumos-gate/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.h42 k5_mutex_t lock; member in struct:krb5_rc_st
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/include/
H A Dcache-addrinfo.h122 k5_mutex_t lock; member in struct:fac
/illumos-gate/usr/src/lib/libuuid/common/
H A Duuid_misc.h73 mutex_t lock; member in struct:__anon4187
/illumos-gate/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...]
/illumos-gate/usr/src/cmd/syslogd/
H A Ddataq.h46 pthread_mutex_t lock; member in struct:dataq
/illumos-gate/usr/src/uts/common/io/drm/
H A Ddrm_lock.c7 * lock.c -- IOCTLs for locking -*- linux-c -*-
46 volatile unsigned int *lock = &lock_data->hw_lock->lock; local
49 old = *lock;
54 } while (!atomic_cmpset_int(lock, old, new));
59 DRM_ERROR("%d holds heavyweight lock\n",
66 /* Have lock */
73 * This takes a lock forcibly and hands it to context. Should ONLY be used
74 * inside *_unlock to give lock to kernel before calling *_dma_schedule.
81 volatile unsigned int *lock local
93 drm_lock_free(drm_device_t *dev, volatile unsigned int *lock, unsigned int context) argument
122 drm_lock_t lock; local
169 drm_lock_t lock; local
[all...]
/illumos-gate/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...]
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/emlxs/
H A Demlxs_device.h47 kmutex_t lock; member in struct:emlxs_device
/illumos-gate/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;
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A Dmconnect.c175 struct flock lock; local
181 * Now, we try to read-lock the lock file. This can only succeed if
185 lock.l_type = F_RDLCK;
186 lock.l_whence = 0;
187 lock.l_start = 0;
188 lock.l_len = 0; /* till end of file */
190 if (Fcntl(fd, F_SETLK, &lock) != -1 || errno != EAGAIN)
/illumos-gate/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...]
/illumos-gate/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]);
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Disns_func.h38 int lock; member in struct:conn_arg
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dmach_descrip.h63 * Each Machine description has a lock to synchronize its ref count.
68 kmutex_t lock; /* synchronize access to MD */ member in struct:machine_descrip_s
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/support/
H A Derrors.c38 #define lock() k5_mutex_lock(&krb5int_error_info_support_mutex) macro
94 lock();
165 lock();
/illumos-gate/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...]
/illumos-gate/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...]
/illumos-gate/usr/src/cmd/lvm/rpc.mdcommd/
H A Dmddoors.c35 #define DAEMON_LOCK_FILE "/var/run/.mddoors.lock"
51 * Use an advisory lock to ensure that only one daemon process is
57 struct flock lock; local
65 lock.l_type = F_WRLCK;
66 lock.l_whence = SEEK_SET;
67 lock.l_start = 0;
68 lock.l_len = 0;
70 if (fcntl(daemon_lock_fd, F_SETLK, &lock) == -1) {
74 if (fcntl(daemon_lock_fd, F_GETLK, &lock) == -1) {
77 return (lock
91 struct flock lock; local
[all...]

Completed in 70 milliseconds

1234567891011>>