Home
last modified time | relevance | path

Searched refs:l_type (Results 1 – 25 of 105) sorted by relevance

12345

/illumos-gate/usr/src/uts/common/syscall/
H A Dfcntl.c308 bf.l_type = obf.l_type; in fcntl()
326 bf.l_type = sbf.l_type; in fcntl()
340 bf.l_type = sbf32.l_type; in fcntl()
362 if (bf.l_type < F_RDLCK || bf.l_type > F_UNLCK) { in fcntl()
426 obf.l_type = (int16_t)bf.l_type; in fcntl()
465 sbf.l_type = bf.l_type; in fcntl()
484 sbf32.l_type = (int16_t)bf.l_type; in fcntl()
545 bf.l_type = sbf32.l_type; in fcntl()
582 bf.l_type = (short)bf64_32.l_type; in fcntl()
697 bf.l_type = (short)bf64_32.l_type; in fcntl()
[all …]
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dlockf.c60 l.l_type = F_UNLCK; in __lockf()
64 l.l_type = F_WRLCK; in __lockf()
68 l.l_type = F_WRLCK; in __lockf()
72 l.l_type = F_WRLCK; in __lockf()
75 if (l.l_type == F_UNLCK) in __lockf()
/illumos-gate/usr/src/test/os-tests/tests/file-locking/
H A Druntests.c118 VERIFY3_IMPL(fl.l_type, ==, F_WRLCK, short); in assert_write_locked_by()
124 VERIFY3_IMPL(fl.l_type, ==, F_WRLCK, short); in assert_write_locked_by()
130 VERIFY3_IMPL(fl.l_type, ==, F_WRLCK, short); in assert_write_locked_by()
136 VERIFY3_IMPL(fl.l_type, ==, F_WRLCK, short); in assert_write_locked_by()
149 VERIFY3_IMPL(fl.l_type, ==, F_RDLCK, short); in assert_read_locked_by()
155 VERIFY3_IMPL(fl.l_type, ==, F_RDLCK, short); in assert_read_locked_by()
161 VERIFY3_IMPL(fl.l_type, ==, F_UNLCK, short); in assert_read_locked_by()
167 VERIFY3_IMPL(fl.l_type, ==, F_UNLCK, short); in assert_read_locked_by()
179 VERIFY3_IMPL(fl.l_type, ==, F_UNLCK, short); in assert_unlocked()
406 .l_type = l_type, in flock_test_invalid()
[all …]
/illumos-gate/usr/src/ucblib/libucb/port/sys/
H A Dflock.c53 fl.l_type = 0; in flock()
63 fl.l_type |= F_UNLCK; in flock()
66 fl.l_type |= F_RDLCK; in flock()
69 fl.l_type |= F_WRLCK; in flock()
/illumos-gate/usr/src/uts/common/sys/
H A Dfcntl.h242 short l_type; member
256 int16_t l_type; member
272 short l_type; member
290 int16_t l_type; member
306 int16_t l_type; member
322 int16_t l_type; member
H A Dflock_impl.h73 int l_type; /* type of lock */ member
298 (((lock1)->l_type == F_WRLCK) || \
299 ((lock2)->l_type == F_WRLCK)) && \
394 (lock1)->l_type = (lock2)->l_type; \
/illumos-gate/usr/src/contrib/ast/src/lib/libast/aso/
H A Daso-fcntl.c61 lock.l_type = F_WRLCK;
79 lock.l_type = F_UNLCK;
133 lock.l_type = F_WRLCK;
148 lock.l_type = F_UNLCK;
174 lock.l_type = F_UNLCK;
177 lock.l_type = F_WRLCK;
/illumos-gate/usr/src/cmd/sendmail/libsmutil/
H A Dlockfile.c51 lfd.l_type = F_UNLCK;
53 lfd.l_type = F_WRLCK;
55 lfd.l_type = F_RDLCK;
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_dli.c88 di_dli_open(char *path, int oflag, short l_type, int flags) in di_dli_open() argument
119 lock.l_type = l_type; in di_dli_open()
155 lock.l_type = F_UNLCK; in di_dli_close()
/illumos-gate/usr/src/ucbhead/sys/
H A Dfcntl.h152 short l_type; member
162 short l_type; member
175 short l_type;
186 short l_type;
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dlock_file.c77 lock_arg.l_type = F_RDLCK; in krb5_lock_file()
83 lock_arg.l_type = F_WRLCK; in krb5_lock_file()
89 lock_arg.l_type = F_UNLCK; in krb5_lock_file()
/illumos-gate/usr/src/lib/libnsl/common/
H A Ddaemon_utils.c73 lock.l_type = F_WRLCK; in _check_daemon_lock()
84 return ((lock.l_type == F_UNLCK) ? 0 : 1); in _check_daemon_lock()
152 lock.l_type = F_WRLCK; in _enter_daemon_lock()
/illumos-gate/usr/src/cmd/ypcmd/yppasswd/
H A Dyplckpwdf.c70 flock.l_type = F_WRLCK; in yplckpwdf()
89 flock.l_type = F_UNLCK; in ypulckpwdf()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dflock.c44 l.l_type = F_UNLCK; in flock()
49 l.l_type = ((operation & ~LOCK_NB) == LOCK_EX) ? in flock()
H A Dlckpwdf.c80 flock.l_type = F_WRLCK; in lckpwdf()
114 flock.l_type = F_UNLCK; in ulckpwdf()
H A Dposix_fallocate.c68 lck.l_type = F_WRLCK; in posix_fallocate()
94 lck.l_type = F_WRLCK; in posix_fallocate64()
/illumos-gate/usr/src/uts/common/os/
H A Dflock.c375 lock_request->l_type = lckdat->l_type; in ofdlock()
404 switch (lock_request->l_type) { in ofdlock()
608 lock_request->l_type = lckdat->l_type; in reclock()
703 switch (lock_request->l_type) { in reclock()
774 lckdat->l_type = F_UNLCK; in reclock()
1343 if (request->l_type != F_UNLCK) in flk_execute_request()
1636 lock->l_type == F_WRLCK) in flk_relation()
1639 lock->l_type == F_RDLCK) in flk_relation()
3018 bf.l_type != F_UNLCK) in chklock()
4110 flp->l_type = lp->l_type; in create_flock()
[all …]
/illumos-gate/usr/src/cmd/prstat/
H A Dprstat.c391 switch (list->l_type) { in list_print()
448 switch (list->l_type) { in list_print()
465 if (list->l_type == LT_USERS) { in list_print()
489 if (list->l_type == LT_PROJECTS) in list_print()
590 switch (list->l_type) { in list_print()
666 if (list->l_type == LT_LWPS) { in list_clear()
701 if ((list->l_type == LT_USERS) && in list_update()
704 if ((list->l_type == LT_TASKS) && in list_update()
710 if ((list->l_type == LT_ZONES) && in list_update()
713 if ((list->l_type == LT_LGRPS) && in list_update()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_lock.c317 if (lock->l_type == SMB_LOCK_TYPE_READWRITE) in smb_lock_range()
387 if (lock->l_type == SMB_LOCK_TYPE_READONLY && !will_write) in smb_lock_range_access()
390 if (lock->l_type == SMB_LOCK_TYPE_READWRITE && in smb_lock_range_access()
403 lock->l_pid, lock->l_type); in smb_lock_range_access()
743 if ((lock->l_type == SMB_LOCK_TYPE_READONLY) && in smb_lock_range_lckrules()
744 (dlock->l_type == SMB_LOCK_TYPE_READONLY)) { in smb_lock_range_lckrules()
752 if ((dlock->l_type == SMB_LOCK_TYPE_READONLY) && in smb_lock_range_lckrules()
753 !(lock->l_type == SMB_LOCK_TYPE_READONLY)) { in smb_lock_range_lckrules()
999 lock->l_type = locktype; in smb_lock_create()
/illumos-gate/usr/src/uts/common/klm/
H A Dnlm_client.c333 if (flk0.l_type != F_UNLCK) { in nlm_frlock_getlk()
349 if (flk0.l_type == F_UNLCK) { in nlm_frlock_getlk()
354 flkp->l_type = F_UNLCK; in nlm_frlock_getlk()
406 if (flkp->l_type == F_UNLCK) { in nlm_frlock_setlk()
427 if (error != 0 && flk0.l_type != F_UNLCK) { in nlm_frlock_setlk()
485 llp->ll_flock.l_type = F_UNLCK; in nlm_client_cancel_all()
734 flp->l_type = F_UNLCK; in nlm_local_cancelk()
764 args.exclusive = (flp->l_type == F_WRLCK); in nlm_call_lock()
1119 args.exclusive = (flp->l_type == F_WRLCK); in nlm_call_test()
1163 flp->l_type = F_UNLCK; in nlm_call_test()
[all …]
/illumos-gate/usr/src/boot/sys/sys/
H A Dfcntl.h275 short l_type; /* lock type: read/write, etc. */ member
289 short l_type; /* lock type: read/write, etc. */ member
/illumos-gate/usr/src/cmd/sendmail/libsmdb/
H A Dsmdb.c94 lfd.l_type = F_UNLCK;
96 lfd.l_type = F_WRLCK;
98 lfd.l_type = F_RDLCK;
/illumos-gate/usr/src/lib/pam_modules/authtok_check/
H A Ddict.c82 flock.l_type = F_WRLCK; in lock_db()
107 flock.l_type = F_UNLCK; in unlock_db()
/illumos-gate/usr/src/cmd/sendmail/db/mutex/
H A Dmutex.c243 k_lock.l_type = F_WRLCK;
254 k_lock.l_type = F_UNLCK;
/illumos-gate/usr/src/cmd/mailx/
H A Dlock.c51 l.l_type = !strcmp(mode, "r") ? F_RDLCK : F_WRLCK; in lock()

12345