/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb2_lock.c | 116 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 D | zlook.c | 201 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.c | 89 rmutex_t *lk; in __fpurge() local 91 FLOCKFILE(lk, stream); in __fpurge() 94 FUNLOCKFILE(lk); in __fpurge() 104 rmutex_t *lk; in __fpending() local 106 FLOCKFILE(lk, stream); in __fpending() 108 FUNLOCKFILE(lk); in __fpending() 119 rmutex_t *lk; in __fbufsize() local 121 FLOCKFILE(lk, stream); in __fbufsize() 123 FUNLOCKFILE(lk); in __fbufsize()
|
H A D | fputs.c | 52 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 D | gets.c | 50 rmutex_t *lk; in gets() local 52 FLOCKFILE(lk, stdin); in gets() 58 FUNLOCKFILE(lk); in gets() 64 FUNLOCKFILE(lk); in gets() 79 FUNLOCKFILE(lk); in gets() 100 FUNLOCKFILE(lk); in gets()
|
H A D | puts.c | 47 rmutex_t *lk; in puts() local 52 FLOCKFILE(lk, stdout); in puts() 57 FUNLOCKFILE(lk); in puts() 68 FUNLOCKFILE(lk); in puts() 100 FUNLOCKFILE(lk); in puts() 104 FUNLOCKFILE(lk); in puts()
|
H A D | fgets.c | 50 rmutex_t *lk; in fgets() local 52 FLOCKFILE(lk, iop); in fgets() 58 FUNLOCKFILE(lk); in fgets() 64 FUNLOCKFILE(lk); in fgets() 79 FUNLOCKFILE(lk); in fgets() 97 FUNLOCKFILE(lk); in fgets()
|
H A D | fread.c | 50 rmutex_t *lk; in fread() local 52 FLOCKFILE(lk, iop); in fread() 60 FUNLOCKFILE(lk); in fread() 65 FUNLOCKFILE(lk); in fread() 127 FUNLOCKFILE(lk); in fread() 131 FUNLOCKFILE(lk); in fread()
|
H A D | setvbuf.c | 47 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 D | vscanf.c | 68 rmutex_t *lk; in _vscanf_c89() local 71 FLOCKFILE(lk, stdin); in _vscanf_c89() 81 FUNLOCKFILE(lk); in _vscanf_c89() 92 rmutex_t *lk; in _vfscanf_c89() local 95 FLOCKFILE(lk, iop); in _vfscanf_c89() 104 FUNLOCKFILE(lk); in _vfscanf_c89()
|
H A D | fseek.c | 51 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 D | fseeko.c | 58 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 D | fgetws.c | 53 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 D | ungetwc.c | 60 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()
|
H A D | fputws.c | 45 rmutex_t *lk; in _fputws_impl() local 57 FLOCKFILE(lk, fp); in _fputws_impl() 67 FUNLOCKFILE(lk); in _fputws_impl() 79 FUNLOCKFILE(lk); in _fputws_impl() 84 FUNLOCKFILE(lk); in _fputws_impl()
|
/illumos-gate/usr/src/lib/libc/inc/ |
H A D | mtlib.h | 83 #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/gen/ |
H A D | err.c | 95 rmutex_t *lk; in warncore() local 97 FLOCKFILE(lk, fp); in warncore() 106 return (lk); in warncore() 115 FUNLOCKFILE(lk); in warnfinish() 121 rmutex_t *lk; in vwarnfp() local 123 lk = warncore(fp, fmt, args); in vwarnfp() 129 warnfinish(fp, lk); in vwarnfp() 135 rmutex_t *lk; in vwarnx() local 138 warnfinish(stderr, lk); in vwarnx() 244 rmutex_t *lk; in _vwarnxfp() local [all …]
|
H A D | getpw.c | 51 rmutex_t *lk; in getpw() local 68 FLOCKFILE(lk, pwf); in getpw() 75 FUNLOCKFILE(lk); in getpw() 86 FUNLOCKFILE(lk); in getpw() 95 FUNLOCKFILE(lk); in getpw()
|
/illumos-gate/usr/src/lib/libc/port/print/ |
H A D | vwprintf.c | 66 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 D | wprintf.c | 63 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 D | vprintf.c | 62 rmutex_t *lk; in _vprintf_c89() local 65 FLOCKFILE(lk, stdout); in _vprintf_c89() 76 FUNLOCKFILE(lk); in _vprintf_c89() 88 FUNLOCKFILE(lk); in _vprintf_c89() 92 FUNLOCKFILE(lk); in _vprintf_c89()
|
H A D | vfprintf.c | 61 rmutex_t *lk; in _vfprintf_c89() local 64 FLOCKFILE(lk, iop); in _vfprintf_c89() 75 FUNLOCKFILE(lk); in _vfprintf_c89() 88 FUNLOCKFILE(lk); in _vfprintf_c89() 92 FUNLOCKFILE(lk); in _vfprintf_c89()
|
H A D | printf.c | 47 rmutex_t *lk; in printf() local 53 FLOCKFILE(lk, stdout); in printf() 64 FUNLOCKFILE(lk); in printf() 74 FUNLOCKFILE(lk); in printf() 78 FUNLOCKFILE(lk); in printf()
|
H A D | fprintf.c | 53 rmutex_t *lk; in fprintf() local 59 FLOCKFILE(lk, iop); in fprintf() 70 FUNLOCKFILE(lk); in fprintf() 79 FUNLOCKFILE(lk); in fprintf() 83 FUNLOCKFILE(lk); in fprintf()
|
/illumos-gate/usr/src/test/libc-tests/tests/common/ |
H A D | test_common.c | 33 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 …]
|