/freebsd/sys/libkern/ |
H A D | memmem.c | 34 memmem(const void *l, size_t l_len, const void *s, size_t s_len) in memmem() argument 41 if (l_len == 0 || s_len == 0) in memmem() 45 if (l_len < s_len) in memmem() 50 return memchr(l, (int)*cs, l_len); in memmem() 53 last = __DECONST(char *, cl) + l_len - s_len; in memmem()
|
/freebsd/contrib/libedit/ |
H A D | literal.c | 66 if (l->l_len == 0) in literal_clear() 73 l->l_len = 0; in literal_clear() 111 if (l->l_idx == l->l_len) { in literal_add() 114 l->l_len += 4; in literal_add() 115 bp = el_realloc(l->l_buf, sizeof(*l->l_buf) * l->l_len); in literal_add() 118 l->l_len -= 4; in literal_add()
|
H A D | literal.h | 43 size_t l_len; /* max allocated */ member
|
/freebsd/tests/sys/file/ |
H A D | flock_helper.c | 161 FAIL(fl1.l_len != fl2.l_len); in test1() 195 fl.l_len = 0; in test2() 266 fl.l_len = 0; in test3() 335 fl.l_len = 99; in test4() 373 FAIL(fl.l_len != 99); in test4() 421 fl.l_len = 1; in test5() 468 fl.l_len = 0; in test5() 507 fl.l_len = 1; in test6() 563 fl.l_len = 2; in test6() 571 fl.l_len = 0; in test6() [all …]
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | locks.cc | 228 fl.l_len = 1000; in TEST_F() 278 fl.l_len = 1000; in TEST_F() 293 ASSERT_EQ(fl.l_len, 1000); in TEST_F() 341 fl.l_len = 1000; in TEST_F() 348 EXPECT_EQ(100, fl.l_len); in TEST_F() 400 fl.l_len = 10; in TEST_F() 414 EXPECT_EQ(fl.l_len, 100); in TEST_F() 465 fl.l_len = 512; in TEST_F() 479 EXPECT_EQ(fl.l_len, 100); in TEST_F() 504 fl.l_len = 1000; in TEST_F() [all …]
|
/freebsd/usr.sbin/rpc.lockd/ |
H A D | kern.c | 279 arg4.alock.l_len = msg->lm_fl.l_len; in test_request() 303 arg.alock.l_len = msg->lm_fl.l_len; in test_request() 349 arg4.alock.l_len = msg->lm_fl.l_len; in lock_request() 374 arg.alock.l_len = msg->lm_fl.l_len; in lock_request() 419 arg4.alock.l_len = msg->lm_fl.l_len; in unlock_request() 440 arg.alock.l_len = msg->lm_fl.l_len; in unlock_request() 591 (unsigned long long)mp->lm_fl.l_len, (u_long)mp->lm_fl.l_pid, in show()
|
H A D | lockd_lock.c | 336 fl->client.l_offset, fl->client.l_len); in dump_filelock() 364 dest->l_len = src->l_len; in copy_nlm4_lock_to_nlm4_holder() 435 fl->client.l_len = len; in fill_file_lock() 732 if (!regions_overlap(fl->client.l_offset, fl->client.l_len, in get_lock_matching_unlock() 733 ifl->client.l_offset, ifl->client.l_len)) in get_lock_matching_unlock() 738 fl->client.l_offset,fl->client.l_len, in get_lock_matching_unlock() 739 ifl->client.l_offset,ifl->client.l_len); in get_lock_matching_unlock() 811 if (!regions_overlap(fl->client.l_offset, fl->client.l_len, in test_nfslock() 812 ifl->client.l_offset, ifl->client.l_len)) in test_nfslock() 817 fl->client.l_offset,fl->client.l_len, in test_nfslock() [all …]
|
H A D | lock_proc.c | 390 arg4->l_len = arg->l_len; in nlmtonlm4() 452 res.stat.nlm_testrply_u.holder.l_len = holder->l_len; in nlm_test_1_svc() 484 res.stat.nlm_testrply_u.holder.l_len = holder->l_len; in nlm_test_msg_1_svc() 896 (unsigned long long)arg->alock.l_len); in nlm4_test_4_svc() 991 (unsigned long long)arg->alock.l_len); in nlm4_lock_4_svc()
|
/freebsd/sys/contrib/openzfs/cmd/zed/ |
H A D | zed_file.c | 43 lock.l_len = 0; in zed_file_lock() 70 lock.l_len = 0; in zed_file_unlock() 96 lock.l_len = 0; in zed_file_is_locked()
|
/freebsd/include/rpcsvc/ |
H A D | nlm_prot.x | 31 unsigned l_len; member 61 unsigned l_len; member 162 u_int64_t l_len; member 171 u_int64_t l_len; member
|
H A D | klm_prot.x | 61 unsigned l_len; /* byte length of the lock; member 72 unsigned l_len; /* byte length of the lock; member
|
/freebsd/sys/nlm/ |
H A D | nlm_advlock.c | 270 KASSERT(fl->l_start == 0 && fl->l_len == 0, in nlm_advlock_internal() 544 dst->l_len = src->l_len; in nlm_convert_to_nlm_lock() 555 dst->l_len = src->l_len; in nlm_convert_to_nlm4_holder() 711 newfl.l_len = fl->l_len; in nlm_record_lock() 1097 fl->l_len = h->l_len; in nlm_getlock() 1239 if (fl->l_len < 0) { in nlm_init_lock() 1240 len = -fl->l_len; in nlm_init_lock() 1245 len = fl->l_len; in nlm_init_lock() 1269 lock->l_len = len; in nlm_init_lock()
|
H A D | nlm_prot_impl.c | 602 granted.alock.l_len = in nlm_lock_callback() 603 af->af_granted.alock.l_len; in nlm_lock_callback() 1892 fl.l_len = argp->alock.l_len; in nlm_do_test() 1936 result->stat.nlm4_testrply_u.holder.l_len = fl.l_len; in nlm_do_test() 1999 fl.l_len = argp->alock.l_len; in nlm_do_lock() 2030 && af->af_fl.l_len == fl.l_len in nlm_do_lock() 2069 af->af_granted.alock.l_len = argp->alock.l_len; in nlm_do_lock() 2178 fl.l_len = argp->alock.l_len; in nlm_do_cancel() 2195 && af->af_fl.l_len == fl.l_len in nlm_do_cancel() 2267 fl.l_len = argp->alock.l_len; in nlm_do_unlock() [all …]
|
H A D | nlm_prot_server.c | 56 dst->l_len = src->l_len; in nlm_convert_to_nlm4_lock() 78 dst->l_len = src->l_len; in nlm_convert_to_nlm_holder() 89 dst->l_len = src->l_len; in nlm_convert_to_nlm4_holder()
|
H A D | nlm_prot_xdr.c | 32 if (!xdr_u_int(xdrs, &objp->l_len)) in xdr_nlm_holder() 99 if (!xdr_u_int(xdrs, &objp->l_len)) in xdr_nlm_lock() 264 if (!xdr_uint64_t(xdrs, &objp->l_len)) in xdr_nlm4_holder() 283 if (!xdr_uint64_t(xdrs, &objp->l_len)) in xdr_nlm4_lock()
|
H A D | nlm_prot.h | 33 u_int l_len; member 68 u_int l_len; member 177 uint64_t l_len; member 187 uint64_t l_len; member
|
/freebsd/contrib/netbsd-tests/fs/vfs/ |
H A D | t_vnops.c | 760 l.l_start = l.l_len = 1024; in fcntl_lock() 840 if (l.l_len == 0) /* does l spans until the end? */ in fcntl_getlocks() 844 rv += fcntl_getlocks(fildes, l.l_start + l.l_len, len, lock, end); in fcntl_getlocks() 845 } else if (l.l_start + l.l_len < start + len) { in fcntl_getlocks() 846 len -= l.l_start + l.l_len - start; in fcntl_getlocks() 847 rv += fcntl_getlocks(fildes, l.l_start + l.l_len, len, lock, end); in fcntl_getlocks() 937 ATF_CHECK_EQ(result[j].l_len, expect[j].l_len ); in fcntl_getlock_pids()
|
/freebsd/sys/sys/ |
H A D | fcntl.h | 305 off_t l_len; /* len = 0 means until end of file */ member 319 off_t l_len; /* len = 0 means until end of file */ member
|
/freebsd/contrib/nvi/common/ |
H A D | log.c | 104 ep->l_len = 0; in log_init() 139 ep->l_len = 0; in log_end() 187 BINC_RETC(sp, ep->l_lp, ep->l_len, sizeof(u_char) + sizeof(MARK)); in log_cursor1() 262 ep->l_lp, ep->l_len, in log_line() 333 ep->l_len, sizeof(u_char) + sizeof(LMARK)); in log_mark()
|
H A D | exf.h | 27 size_t l_len; /* Log buffer length. */ member
|
/freebsd/contrib/capsicum-test/ |
H A D | fcntl.cc | 202 fl.l_len = 1; in TEST() 229 fl.l_len = 1; in TEST() 239 fl.l_len = 1; in TEST() 253 fl.l_len = 1; in TEST()
|
/freebsd/lib/libc/sys/ |
H A D | lockf.c | 47 fl.l_len = size; in lockf()
|
/freebsd/tests/sys/cddl/zfs/bin/ |
H A D | randfree_file.c | 90 fl.l_len = off_len; in main()
|
/freebsd/sys/compat/linux/ |
H A D | linux_file.c | 1196 l_off_t l_len; member 1223 bsd_flock->l_len = (off_t)linux_flock->l_len; in linux_to_bsd_flock() 1244 linux_flock->l_len = (l_off_t)bsd_flock->l_len; in bsd_to_linux_flock() 1253 l_loff_t l_len; member 1280 bsd_flock->l_len = (off_t)linux_flock->l_len; in linux_to_bsd_flock64() 1301 linux_flock->l_len = (l_loff_t)bsd_flock->l_len; in bsd_to_linux_flock64()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/profile/ |
H A D | InstrProfilingUtil.c | 142 s_flock.l_len = 0; /* Until EOF. */ in lprofLockFd() 167 s_flock.l_len = 0; /* Until EOF. */ in lprofUnlockFd()
|