Home
last modified time | relevance | path

Searched refs:lk (Results 1 – 25 of 63) sorted by relevance

123

/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb2_lock.c116 lk = &lvec[i]; in smb2_lock()
174 lock_elem_t *lk; in smb2_unlock() local
183 lk = &lvec[i]; in smb2_unlock()
190 status = smb_unlock_range(sr, lk->Offset, lk->Length, pid); in smb2_unlock()
207 lock_elem_t *lk; in smb2_locks() local
218 lk = &lvec[i]; in smb2_locks()
254 status = smb_lock_range(sr, lk->Offset, lk->Length, pid, in smb2_locks()
268 lk = &lvec[i]; in smb2_locks()
270 lk->Offset, lk->Length, pid); in smb2_locks()
317 status = smb_lock_range(sr, lk->Offset, lk->Length, pid, ltype, 0); in smb2_lock_blocking()
[all …]
/illumos-gate/usr/src/cmd/zlook/
H A Dzlook.c201 zut_lookup_t lk = {0}; in main() local
223 lk.zl_reqflags |= ZUT_GETSTAT; in main()
369 (void) strlcpy(lk.zl_xfile, in main()
371 lk.zl_reqflags |= ZUT_XATTR; in main()
383 if (lk.zl_reqflags & ZUT_XATTR) { in main()
385 lk.zl_xfile); in main()
389 if (lk.zl_retcode) { in main()
391 strerror(lk.zl_retcode), lk.zl_retcode); in main()
393 return (lk.zl_retcode); in main()
404 print_stats(&lk.zl_statbuf); in main()
[all …]
/illumos-gate/usr/src/lib/libc/port/stdio/
H A D__extensions.c91 rmutex_t *lk; in __fpurge() local
93 FLOCKFILE(lk, stream); in __fpurge()
96 FUNLOCKFILE(lk); in __fpurge()
106 rmutex_t *lk; in __fpending() local
108 FLOCKFILE(lk, stream); in __fpending()
110 FUNLOCKFILE(lk); in __fpending()
121 rmutex_t *lk; in __fbufsize() local
123 FLOCKFILE(lk, stream); in __fbufsize()
125 FUNLOCKFILE(lk); in __fbufsize()
H A Dfputs.c52 rmutex_t *lk; in fputs() local
57 FLOCKFILE(lk, iop); in fputs()
62 FUNLOCKFILE(lk); in fputs()
73 FUNLOCKFILE(lk); in fputs()
102 FUNLOCKFILE(lk); in fputs()
105 FUNLOCKFILE(lk); in fputs()
122 FUNLOCKFILE(lk); in fputs()
128 FUNLOCKFILE(lk); in fputs()
H A Dgets.c52 rmutex_t *lk; in gets() local
54 FLOCKFILE(lk, stdin); in gets()
60 FUNLOCKFILE(lk); in gets()
66 FUNLOCKFILE(lk); in gets()
81 FUNLOCKFILE(lk); in gets()
102 FUNLOCKFILE(lk); in gets()
H A Dputs.c49 rmutex_t *lk; in puts() local
54 FLOCKFILE(lk, stdout); in puts()
59 FUNLOCKFILE(lk); in puts()
70 FUNLOCKFILE(lk); in puts()
102 FUNLOCKFILE(lk); in puts()
106 FUNLOCKFILE(lk); in puts()
H A Dfgets.c52 rmutex_t *lk; in fgets() local
54 FLOCKFILE(lk, iop); in fgets()
60 FUNLOCKFILE(lk); in fgets()
66 FUNLOCKFILE(lk); in fgets()
81 FUNLOCKFILE(lk); in fgets()
99 FUNLOCKFILE(lk); in fgets()
H A Dfread.c52 rmutex_t *lk; in fread() local
54 FLOCKFILE(lk, iop); in fread()
62 FUNLOCKFILE(lk); in fread()
67 FUNLOCKFILE(lk); in fread()
129 FUNLOCKFILE(lk); in fread()
133 FUNLOCKFILE(lk); in fread()
H A Dsetvbuf.c47 rmutex_t *lk; in setvbuf() local
50 FLOCKFILE(lk, iop); in setvbuf()
68 FUNLOCKFILE(lk); in setvbuf()
89 FUNLOCKFILE(lk); in setvbuf()
97 FUNLOCKFILE(lk); in setvbuf()
107 FUNLOCKFILE(lk); in setvbuf()
H A Dvscanf.c70 rmutex_t *lk; in _vscanf_c89() local
73 FLOCKFILE(lk, stdin); in _vscanf_c89()
83 FUNLOCKFILE(lk); in _vscanf_c89()
94 rmutex_t *lk; in _vfscanf_c89() local
97 FLOCKFILE(lk, iop); in _vfscanf_c89()
106 FUNLOCKFILE(lk); in _vfscanf_c89()
H A Dflush.c578 rmutex_t *lk; in fflush() local
583 FUNLOCKFILE(lk); in fflush()
598 rmutex_t *lk; in _fflush_l_iops() local
700 rmutex_t *lk; in fclose() local
708 FUNLOCKFILE(lk); in fclose()
723 FUNLOCKFILE(lk); in fclose()
741 rmutex_t *lk; in fcloseall() local
772 FUNLOCKFILE(lk); in fcloseall()
813 if (lk != NULL && cancel_safe_mutex_trylock(lk) != 0) in getiop()
826 FUNLOCKFILE(lk); in getiop()
[all …]
H A Dfseek.c51 rmutex_t *lk; in fseek() local
53 FLOCKFILE(lk, iop); in fseek()
58 FUNLOCKFILE(lk); in fseek()
68 FUNLOCKFILE(lk); in fseek()
78 FUNLOCKFILE(lk); in fseek()
H A Dfseeko.c58 rmutex_t *lk; in fseeko64() local
60 FLOCKFILE(lk, iop); in fseeko64()
65 FUNLOCKFILE(lk); in fseeko64()
75 FUNLOCKFILE(lk); in fseeko64()
85 FUNLOCKFILE(lk); in fseeko64()
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dfgetws.c53 rmutex_t *lk; in _fgetws_impl() local
55 FLOCKFILE(lk, fp); in _fgetws_impl()
61 FUNLOCKFILE(lk); in _fgetws_impl()
76 FUNLOCKFILE(lk); in _fgetws_impl()
87 FUNLOCKFILE(lk); in _fgetws_impl()
108 rmutex_t *lk; in getws() local
110 FLOCKFILE(lk, stdin); in getws()
123 FUNLOCKFILE(lk); in getws()
134 FUNLOCKFILE(lk); in getws()
H A Dungetwc.c60 rmutex_t *lk; in __ungetwc_impl() local
62 FLOCKFILE(lk, iop); in __ungetwc_impl()
68 FUNLOCKFILE(lk); in __ungetwc_impl()
74 FUNLOCKFILE(lk); in __ungetwc_impl()
80 FUNLOCKFILE(lk); in __ungetwc_impl()
86 FUNLOCKFILE(lk); in __ungetwc_impl()
97 FUNLOCKFILE(lk); in __ungetwc_impl()
/illumos-gate/usr/src/lib/libc/inc/
H A Dmtlib.h83 #define FLOCKFILE(lk, iop) \ argument
86 lk = _flockget((iop)); \
88 lk = NULL; \
91 #define FUNLOCKFILE(lk) \ argument
93 if (lk != NULL) \
94 _flockrel(lk); \
99 rmutex_t *lk; \
100 FLOCKFILE(lk, iop); \
102 FUNLOCKFILE(lk); \
/illumos-gate/usr/src/lib/libc/port/print/
H A Dvwprintf.c66 rmutex_t *lk; in _vwprintf_c89() local
68 FLOCKFILE(lk, stdout); in _vwprintf_c89()
80 FUNLOCKFILE(lk); in _vwprintf_c89()
91 FUNLOCKFILE(lk); in _vwprintf_c89()
94 FUNLOCKFILE(lk); in _vwprintf_c89()
112 rmutex_t *lk; in _vfwprintf_c89() local
114 FLOCKFILE(lk, iop); in _vfwprintf_c89()
127 FUNLOCKFILE(lk); in _vfwprintf_c89()
137 FUNLOCKFILE(lk); in _vfwprintf_c89()
140 FUNLOCKFILE(lk); in _vfwprintf_c89()
H A Dwprintf.c63 rmutex_t *lk; in wprintf() local
67 FLOCKFILE(lk, stdout); in wprintf()
80 FUNLOCKFILE(lk); in wprintf()
88 FUNLOCKFILE(lk); in wprintf()
91 FUNLOCKFILE(lk); in wprintf()
105 rmutex_t *lk; in fwprintf() local
110 FLOCKFILE(lk, iop); in fwprintf()
123 FUNLOCKFILE(lk); in fwprintf()
131 FUNLOCKFILE(lk); in fwprintf()
134 FUNLOCKFILE(lk); in fwprintf()
H A Dvprintf.c64 rmutex_t *lk; in _vprintf_c89() local
67 FLOCKFILE(lk, stdout); in _vprintf_c89()
78 FUNLOCKFILE(lk); in _vprintf_c89()
90 FUNLOCKFILE(lk); in _vprintf_c89()
94 FUNLOCKFILE(lk); in _vprintf_c89()
H A Dvfprintf.c63 rmutex_t *lk; in _vfprintf_c89() local
66 FLOCKFILE(lk, iop); in _vfprintf_c89()
77 FUNLOCKFILE(lk); in _vfprintf_c89()
90 FUNLOCKFILE(lk); in _vfprintf_c89()
94 FUNLOCKFILE(lk); in _vfprintf_c89()
H A Dprintf.c49 rmutex_t *lk; in printf() local
55 FLOCKFILE(lk, stdout); in printf()
66 FUNLOCKFILE(lk); in printf()
76 FUNLOCKFILE(lk); in printf()
80 FUNLOCKFILE(lk); in printf()
H A Dfprintf.c55 rmutex_t *lk; in fprintf() local
61 FLOCKFILE(lk, iop); in fprintf()
72 FUNLOCKFILE(lk); in fprintf()
81 FUNLOCKFILE(lk); in fprintf()
85 FUNLOCKFILE(lk); in fprintf()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Derr.c91 rmutex_t *lk; in warncore() local
93 FLOCKFILE(lk, fp); in warncore()
102 return (lk); in warncore()
107 warnfinish(FILE *fp, rmutex_t *lk) in warnfinish() argument
111 FUNLOCKFILE(lk); in warnfinish()
117 rmutex_t *lk; in _vwarnxfp() local
119 lk = warncore(fp, fmt, args); in _vwarnxfp()
120 warnfinish(fp, lk); in _vwarnxfp()
133 rmutex_t *lk; in _vwarnfp() local
135 lk = warncore(fp, fmt, args); in _vwarnfp()
[all …]
H A Dgetpw.c53 rmutex_t *lk; in getpw() local
70 FLOCKFILE(lk, pwf); in getpw()
77 FUNLOCKFILE(lk); in getpw()
88 FUNLOCKFILE(lk); in getpw()
97 FUNLOCKFILE(lk); in getpw()
/illumos-gate/usr/src/test/libc-tests/tests/common/
H A Dtest_common.c33 static pthread_mutex_t lk; variable
74 (void) pthread_mutex_lock(&lk); in test_start()
77 (void) pthread_mutex_unlock(&lk); in test_start()
100 (void) pthread_mutex_lock(&lk); in test_failed()
108 (void) pthread_mutex_unlock(&lk); in test_failed()
122 (void) pthread_mutex_unlock(&lk); in test_failed()
142 (void) pthread_mutex_lock(&lk); in test_passed()
148 (void) pthread_mutex_lock(&lk); in test_passed()
156 (void) pthread_mutex_unlock(&lk); in test_passed()
183 (void) pthread_mutex_lock(&lk); in test_debugf()
[all …]

123