Home
last modified time | relevance | path

Searched refs:l_len (Results 1 – 25 of 57) sorted by relevance

123

/freebsd/sys/libkern/
H A Dmemmem.c34 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 Dliteral.c66 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 Dliteral.h43 size_t l_len; /* max allocated */ member
/freebsd/tests/sys/file/
H A Dflock_helper.c161 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 Dlocks.cc228 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 Dkern.c279 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 Dlockd_lock.c336 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 Dlock_proc.c390 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 Dzed_file.c43 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 Dnlm_prot.x31 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 Dklm_prot.x61 unsigned l_len; /* byte length of the lock; member
72 unsigned l_len; /* byte length of the lock; member
/freebsd/sys/nlm/
H A Dnlm_advlock.c270 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 Dnlm_prot_impl.c602 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 Dnlm_prot_server.c56 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 Dnlm_prot_xdr.c32 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 Dnlm_prot.h33 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 Dt_vnops.c760 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 Dfcntl.h305 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 Dlog.c104 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 Dexf.h27 size_t l_len; /* Log buffer length. */ member
/freebsd/contrib/capsicum-test/
H A Dfcntl.cc202 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 Dlockf.c47 fl.l_len = size; in lockf()
/freebsd/tests/sys/cddl/zfs/bin/
H A Drandfree_file.c90 fl.l_len = off_len; in main()
/freebsd/sys/compat/linux/
H A Dlinux_file.c1196 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 DInstrProfilingUtil.c142 s_flock.l_len = 0; /* Until EOF. */ in lprofLockFd()
167 s_flock.l_len = 0; /* Until EOF. */ in lprofUnlockFd()

123