Home
last modified time | relevance | path

Searched refs:lck (Results 1 – 10 of 10) sorted by relevance

/titanic_41/usr/src/lib/libc/port/gen/
H A Dposix_fallocate.c59 struct flock lck; in posix_fallocate() local
65 lck.l_whence = 0; in posix_fallocate()
66 lck.l_start = offset; in posix_fallocate()
67 lck.l_len = len; in posix_fallocate()
68 lck.l_type = F_WRLCK; in posix_fallocate()
70 if (fcntl(fd, F_ALLOCSP, &lck) == -1) { in posix_fallocate()
85 struct flock64 lck; in posix_fallocate64() local
91 lck.l_whence = 0; in posix_fallocate64()
92 lck.l_start = offset; in posix_fallocate64()
93 lck.l_len = len; in posix_fallocate64()
[all …]
H A Dtruncate.c59 struct flock lck; in ftruncate() local
61 lck.l_whence = 0; /* offset l_start from beginning of file */ in ftruncate()
62 lck.l_start = len; in ftruncate()
63 lck.l_type = F_WRLCK; /* setting a write lock */ in ftruncate()
64 lck.l_len = (off_t)0; /* until the end of the file address space */ in ftruncate()
66 if (fcntl(fildes, F_FREESP, &lck) == -1) { in ftruncate()
/titanic_41/usr/src/lib/libbc/libc/sys/common/
H A Dftruncate.c52 struct fl lck; in ftruncate() local
54 lck.l_whence = 0; /* offset l_start from beginning of file */ in ftruncate()
55 lck.l_start = length; in ftruncate()
56 lck.l_type = F_WRLCK; /* setting a write lock */ in ftruncate()
57 lck.l_len = 0L; in ftruncate()
59 if (_syscall(SYS_fcntl, fd, F_FREESP, (int)&lck) == -1) in ftruncate()
/titanic_41/usr/src/lib/libast/common/string/
H A Dfmtbuf.c35 static int lck = -1; variable
45 while (++lck) in fmtbuf()
46 lck--; in fmtbuf()
56 lck--; in fmtbuf()
60 lck--; in fmtbuf()
67 lck--; in fmtbuf()
/titanic_41/usr/src/cmd/lp/cmd/lpsched/
H A Dports.c164 struct flock lck; in open_direct() local
230 lck.l_type = F_WRLCK; in open_direct()
231 lck.l_whence = 0; in open_direct()
232 lck.l_start = 0L; in open_direct()
233 lck.l_len = 0L; in open_direct()
235 if (strcmp(device, "/dev/null") && Fcntl(fd, F_SETLKW, &lck) < 0) { in open_direct()
/titanic_41/usr/src/uts/sun4u/vm/
H A Dzulu_hat.c264 uint64_t lck; in zulu_ctx_tsb_lock_enter() local
275 lck = *plck; in zulu_ctx_tsb_lock_enter()
276 if (!(lck & ZULU_CTX_LOCK)) { in zulu_ctx_tsb_lock_enter()
279 new_lck = lck | ZULU_CTX_LOCK; in zulu_ctx_tsb_lock_enter()
281 old_lck = atomic_cas_64(plck, lck, new_lck); in zulu_ctx_tsb_lock_enter()
283 if (old_lck == lck) { in zulu_ctx_tsb_lock_enter()
296 uint64_t lck; in zulu_ctx_tsb_lock_exit() local
302 lck = (uint64_t)zulu_ctx_tab[zulu_ctx]; in zulu_ctx_tsb_lock_exit()
303 ASSERT(lck & ZULU_CTX_LOCK); in zulu_ctx_tsb_lock_exit()
304 lck &= ~ZULU_CTX_LOCK; in zulu_ctx_tsb_lock_exit()
[all …]
/titanic_41/usr/src/uts/common/os/
H A Dflock.c1822 lock_descriptor_t *lck; in flk_wakeup() local
1834 lck = ep->from_vertex; in flk_wakeup()
1838 if (NOT_BLOCKED(lck)) { in flk_wakeup()
1839 GRANT_WAKEUP(lck); in flk_wakeup()
2004 lock_descriptor_t *vertex, *lck; in flk_update_barriers() local
2016 lck = ep->from_vertex; in flk_update_barriers()
2017 if (COLORED(lck)) { in flk_update_barriers()
2018 if (IS_BARRIER(lck)) { in flk_update_barriers()
2019 ASSERT(lck->l_index > 0); in flk_update_barriers()
2020 lck->l_index--; in flk_update_barriers()
[all …]
/titanic_41/usr/src/lib/libnisdb/
H A Ddb_mindex2.cc1648 int lstat, lck = 1; in storeLDAP() local
1661 lck = 0; in storeLDAP()
1668 myself, lck?"L":"Unl", lstat, in storeLDAP()
1670 lck ? in storeLDAP()
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/include/
H A Dkrb5.h101 #define mutex_lock(lck) mutex_enter(lck) argument
102 #define mutex_unlock(lck) mutex_exit(lck) argument
/titanic_41/usr/src/cmd/prstat/
H A Dprstat.c359 char dfl[4], lck[4], slp[4], lat[4]; in list_print() local
569 Format_pct(lck, lwp->li_lck, 4); in list_print()
576 usr, sys, trp, tfl, dfl, lck, in list_print()