Home
last modified time | relevance | path

Searched refs:copy (Results 1 – 25 of 2754) sorted by relevance

12345678910>>...111

/freebsd-14.2/contrib/libcbor/test/
H A Dcopy_test.c18 cbor_decref(&copy); in test_uints()
23 cbor_decref(&copy); in test_uints()
28 cbor_decref(&copy); in test_uints()
33 cbor_decref(&copy); in test_uints()
40 cbor_decref(&copy); in test_negints()
45 cbor_decref(&copy); in test_negints()
50 cbor_decref(&copy); in test_negints()
55 cbor_decref(&copy); in test_negints()
63 cbor_decref(&copy); in test_def_bytestring()
78 cbor_decref(&copy); in test_indef_bytestring()
[all …]
/freebsd-14.2/usr.bin/rctl/
H A Drctl.c119 if (copy == NULL) { in expand_amount()
129 per = copy; in expand_amount()
141 return (copy); in expand_amount()
184 if (copy == NULL) { in expand_rule()
195 if (copy != NULL) in expand_rule()
196 rest = copy; in expand_rule()
314 if (copy == NULL) in humanize_amount()
322 per = copy; in humanize_amount()
467 if (copy == NULL) in humanize_usage_amount()
471 amount = copy; in humanize_usage_amount()
[all …]
/freebsd-14.2/sys/contrib/zlib/
H A Dinflate.c397 if (dist > copy) dist = copy; in updatewindow()
400 if (copy) { in updatewindow()
401 zmemcpy(state->window, end - copy, copy); in updatewindow()
728 if (copy > have) copy = have; in inflate()
884 if (copy > have) copy = have; in inflate()
885 if (copy > left) copy = left; in inflate()
1136 copy = state->offset - copy; in inflate()
1147 if (copy > left) copy = left; in inflate()
1163 if (copy > state->length) copy = state->length; in inflate()
1169 if (copy > left) copy = left; in inflate()
[all …]
H A Dinfback.c332 if (copy > have) copy = have; in inflateBack()
333 if (copy > left) copy = left; in inflateBack()
335 have -= copy; in inflateBack()
336 next += copy; in inflateBack()
337 left -= copy; in inflateBack()
338 put += copy; in inflateBack()
579 copy = left - copy; in inflateBack()
583 copy = left; in inflateBack()
585 if (copy > state->length) copy = state->length; in inflateBack()
587 left -= copy; in inflateBack()
[all …]
/freebsd-14.2/sys/contrib/dev/iwlwifi/pcie/
H A Dtx-gen2.c61 if (copy > cmdlen[i]) in iwl_pcie_gen2_enqueue_hcmd()
62 copy = cmdlen[i]; in iwl_pcie_gen2_enqueue_hcmd()
63 cmdlen[i] -= copy; in iwl_pcie_gen2_enqueue_hcmd()
64 cmddata[i] += copy; in iwl_pcie_gen2_enqueue_hcmd()
65 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd()
153 int copy; in iwl_pcie_gen2_enqueue_hcmd() local
161 copy = cmd->len[i]; in iwl_pcie_gen2_enqueue_hcmd()
164 cmd_pos += copy; in iwl_pcie_gen2_enqueue_hcmd()
165 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd()
177 cmd_pos += copy; in iwl_pcie_gen2_enqueue_hcmd()
[all …]
/freebsd-14.2/lib/libc/string/
H A Dstrndup.c26 char *copy; in strndup() local
30 copy = malloc(len + 1); in strndup()
31 if (copy != NULL) { in strndup()
32 (void)memcpy(copy, str, len); in strndup()
33 copy[len] = '\0'; in strndup()
36 return copy; in strndup()
H A Dstrdup.c43 char *copy; in strdup() local
46 if ((copy = malloc(len)) == NULL) in strdup()
48 memcpy(copy, str, len); in strdup()
49 return (copy); in strdup()
/freebsd-14.2/crypto/openssh/regress/
H A Dscp.sh11 COPY3=${OBJ}/copy.glob[123]
37 cp ${DATA} ${DIR}/copy
38 ln -s ${DIR}/copy ${DIR}/copy-sym
40 cp ${DATA} ${DIR}/subdir/copy
118 cp ${DATA} ${DIR}/copy
125 cp ${DATA} ${DIR}/copy
142 cp ${DATA} ${DIR}/copy
163 cp -p ${DATA} ${DIR}/copy
165 cp ${DATA} ${DIR2}/copy
166 chmod 660 ${DIR2}/copy
[all …]
H A Dsftp-uri.sh33 cmp ${COPY} ${DIR}/copy || fail "corrupted copy"
40 put ${DATA} copy
46 cmp ${DATA} ${DIR}/copy || fail "corrupted copy"
54 put ${DATA} copy
60 cmp ${DATA} ${DIR}/copy || fail "corrupted copy"
/freebsd-14.2/crypto/openssl/crypto/asn1/
H A Dd2i_pu.c32 EVP_PKEY *copy = NULL; in d2i_PublicKey() local
45 if (!evp_pkey_copy_downgraded(&copy, ret)) in d2i_PublicKey()
51 if ((type != EVP_PKEY_get_id(ret) || copy != NULL) in d2i_PublicKey()
74 if (copy != NULL) { in d2i_PublicKey()
76 ret->pkey.ec = copy->pkey.ec; in d2i_PublicKey()
77 copy->pkey.ec = NULL; in d2i_PublicKey()
91 EVP_PKEY_free(copy); in d2i_PublicKey()
96 EVP_PKEY_free(copy); in d2i_PublicKey()
/freebsd-14.2/contrib/mandoc/
H A Dcompat_strndup.c29 char *copy; in strndup() local
35 copy = malloc(len + 1); in strndup()
36 if (copy != NULL) { in strndup()
37 (void)memcpy(copy, str, len); in strndup()
38 copy[len] = '\0'; in strndup()
41 return copy; in strndup()
/freebsd-14.2/crypto/openssh/openbsd-compat/
H A Dstrndup.c30 char *copy; in strndup() local
34 copy = malloc(len + 1); in strndup()
35 if (copy != NULL) { in strndup()
36 (void)memcpy(copy, str, len); in strndup()
37 copy[len] = '\0'; in strndup()
40 return copy; in strndup()
/freebsd-14.2/contrib/nvi/common/
H A Dutil.c231 char *copy; local
233 MALLOC(sp, copy, len + 1);
234 if (copy == NULL)
236 memcpy(copy, str, len);
237 copy[len] = '\0';
238 return (copy);
250 CHAR_T *copy; local
253 if (copy == NULL)
255 MEMCPY(copy, str, len);
256 copy[len] = '\0';
[all …]
/freebsd-14.2/contrib/kyua/utils/config/
H A Dnodes_test.cpp89 ATF_REQUIRE(copy->value()); in ATF_TEST_CASE_BODY()
90 copy->set(false); in ATF_TEST_CASE_BODY()
93 delete copy; in ATF_TEST_CASE_BODY()
197 copy->set(10); in ATF_TEST_CASE_BODY()
200 delete copy; in ATF_TEST_CASE_BODY()
308 copy->set(10); in ATF_TEST_CASE_BODY()
311 delete copy; in ATF_TEST_CASE_BODY()
424 copy->set("second"); in ATF_TEST_CASE_BODY()
427 delete copy; in ATF_TEST_CASE_BODY()
529 copy->set(value); in ATF_TEST_CASE_BODY()
[all …]
/freebsd-14.2/sys/libkern/
H A Dstrndup.c42 char *copy; in strndup() local
45 copy = malloc(len, type, M_WAITOK); in strndup()
46 bcopy(string, copy, len); in strndup()
47 copy[len - 1] = '\0'; in strndup()
48 return (copy); in strndup()
H A Dstrdup.c44 char *copy; in strdup_flags() local
47 copy = malloc(len, type, flags); in strdup_flags()
48 if (copy == NULL) in strdup_flags()
50 bcopy(string, copy, len); in strdup_flags()
51 return (copy); in strdup_flags()
/freebsd-14.2/sys/netgraph/
H A Dng_message.h414 #define NG_COPYMESSAGE(copy, msg, how) \ argument
416 (copy) = malloc(sizeof(struct ng_mesg) \
418 if ((copy) == NULL) \
420 (copy)->header.version = NG_VERSION; \
421 (copy)->header.arglen = (msg)->header.arglen; \
422 (copy)->header.token = (msg)->header.token; \
423 (copy)->header.typecookie = (msg)->header.typecookie; \
424 (copy)->header.cmd = (msg)->header.cmd; \
425 (copy)->header.flags = (msg)->header.flags; \
426 bcopy((msg)->header.cmdstr, (copy)->header.cmdstr, \
[all …]
/freebsd-14.2/sys/dev/cxgbe/cudbg/
H A Dfastlz.c194 unsigned int copy; in FASTLZ_COMPRESSOR() local
214 copy = 2; in FASTLZ_COMPRESSOR()
317 if (copy) in FASTLZ_COMPRESSOR()
319 *(op - copy - 1) = copy - 1; in FASTLZ_COMPRESSOR()
325 copy = 0; in FASTLZ_COMPRESSOR()
397 copy++; in FASTLZ_COMPRESSOR()
399 copy = 0; in FASTLZ_COMPRESSOR()
408 copy++; in FASTLZ_COMPRESSOR()
410 copy = 0; in FASTLZ_COMPRESSOR()
416 if (copy) in FASTLZ_COMPRESSOR()
[all …]
/freebsd-14.2/usr.bin/units/
H A Dunits.c482 char *copy; in lookupunit() local
490 copy = dupstr(unit); in lookupunit()
491 copy[strlen(copy) - 1] = 0; in lookupunit()
495 free(copy); in lookupunit()
499 free(copy); in lookupunit()
503 copy[strlen(copy) - 1] = 0; in lookupunit()
507 free(copy); in lookupunit()
511 if (copy[strlen(copy) - 1] == 'e') { in lookupunit()
512 copy[strlen(copy) - 1] = 0; in lookupunit()
516 free(copy); in lookupunit()
[all …]
/freebsd-14.2/crypto/openssl/util/
H A Dmerge-err-lines23 my $copy = $_;
24 chop($copy);
25 $copy =~ s/ +$//;
28 $_ = $copy . ' ' . $next;
/freebsd-14.2/contrib/tcpdump/missing/
H A Dstrdup.c45 char *copy; local
48 if ((copy = malloc(len)) == NULL)
50 memcpy(copy, str, len);
51 return (copy);
/freebsd-14.2/stand/libsa/
H A Dstrdup.c38 char *copy = NULL; in strdup() local
42 if ((copy = malloc(len)) == NULL) in strdup()
44 memcpy(copy, str, len); in strdup()
46 return (copy); in strdup()
/freebsd-14.2/crypto/openssh/contrib/cygwin/
H A DMakefile66 install-copy-id: $(copyidsrcdir)/ssh-copy-id $(copyidsrcdir)/ssh-copy-id.1
67 $(INSTALL) -m 755 $(copyidsrcdir)/ssh-copy-id $(DESTDIR)$(bindir)/ssh-copy-id
68 $(INSTALL) -m 644 $(copyidsrcdir)/ssh-copy-id.1 $(DESTDIR)$(mandir)/man1/ssh-copy-id.1
77 …es remove-empty-dir install-inetd-config install-doc install-scripts install-copy-id gzip-man-pages
/freebsd-14.2/usr.bin/dc/
H A Dstack.c75 stack_dup_value(const struct value *a, struct value *copy) in stack_dup_value() argument
78 copy->type = a->type; in stack_dup_value()
84 copy->u.num = dup_number(a->u.num); in stack_dup_value()
87 copy->u.string = strdup(a->u.string); in stack_dup_value()
88 if (copy->u.string == NULL) in stack_dup_value()
95 return (copy); in stack_dup_value()
109 struct value copy; in stack_dup() local
116 stack_push(stack, stack_dup_value(value, &copy)); in stack_dup()
122 struct value copy; in stack_swap() local
128 copy = stack->stack[stack->sp]; in stack_swap()
[all …]
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/BlocksRuntime/
H A Druntime.c323 (*aBlock->descriptor->copy)(result, aBlock); // do fixup in _Block_copy_internal()
345 (*aBlock->descriptor->copy)(result, aBlock); // do fixup in _Block_copy_internal()
384 copy->forwarding = copy; // patch heap copy to point to itself (skip write-barrier) in _Block_byref_assign_copy()
385 src->forwarding = copy; // patch stack to point to heap copy in _Block_byref_assign_copy()
386 copy->size = src->size; in _Block_byref_assign_copy()
388 copy->isa = &_NSConcreteWeakBlockVariable; // mark isa field so it gets weak scanning in _Block_byref_assign_copy()
393 copy->byref_keep = src->byref_keep; in _Block_byref_assign_copy()
394 copy->byref_destroy = src->byref_destroy; in _Block_byref_assign_copy()
395 (*src->byref_keep)(copy, src); in _Block_byref_assign_copy()
400 (void *)&copy->byref_keep, in _Block_byref_assign_copy()
[all …]

12345678910>>...111