Home
last modified time | relevance | path

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

12345678910>>...85

/freebsd/contrib/libcbor/test/
H A Dcopy_test.c12 cbor_item_t *item, *copy, *tmp; variable
16 assert_uint8(copy = cbor_copy(item), 10); in test_uints()
18 cbor_decref(&copy); in test_uints()
21 assert_uint16(copy = cbor_copy(item), 10); in test_uints()
23 cbor_decref(&copy); in test_uints()
26 assert_uint32(copy = cbor_copy(item), 10); in test_uints()
28 cbor_decref(&copy); in test_uints()
31 assert_uint64(copy = cbor_copy(item), 10); in test_uints()
33 cbor_decref(&copy); in test_uints()
38 assert_true(cbor_get_uint8(copy = cbor_copy(item)) == 10); in test_negints()
[all …]
/freebsd/usr.bin/rctl/
H A Drctl.c114 char *copy, *expanded, *tofree; in expand_amount() local
117 tofree = copy = strdup(rule); in expand_amount()
118 if (copy == NULL) { in expand_amount()
123 subject = strsep(&copy, ":"); in expand_amount()
124 subject_id = strsep(&copy, ":"); in expand_amount()
125 resource = strsep(&copy, ":"); in expand_amount()
126 action = strsep(&copy, "=/"); in expand_amount()
127 amount = strsep(&copy, "/"); in expand_amount()
128 per = copy; in expand_amount()
135 copy = strdup(rule); in expand_amount()
[all …]
/freebsd/sys/contrib/zlib/
H A Dinflate.c368 local int updatewindow(z_streamp strm, const Bytef *end, unsigned copy) { in updatewindow() argument
390 if (copy >= state->wsize) { in updatewindow()
397 if (dist > copy) dist = copy; in updatewindow()
398 zmemcpy(state->window + state->wnext, end - copy, dist); in updatewindow()
399 copy -= dist; in updatewindow()
400 if (copy) { in updatewindow()
401 zmemcpy(state->window, end - copy, copy); in updatewindow()
402 state->wnext = copy; in updatewindow()
598 unsigned copy; /* number of stored or match bytes to copy */ in inflate() local
727 copy = state->length; in inflate()
[all …]
H A Dinfback.c250 unsigned copy; /* number of stored or match bytes to copy */ in inflateBack() local
329 copy = state->length; in inflateBack()
332 if (copy > have) copy = have; in inflateBack()
333 if (copy > left) copy = left; in inflateBack()
334 zmemcpy(put, next, copy); in inflateBack()
335 have -= copy; in inflateBack()
336 next += copy; in inflateBack()
337 left -= copy; in inflateBack()
338 put += copy; in inflateBack()
339 state->length -= copy; in inflateBack()
[all …]
/freebsd/sys/contrib/dev/iwlwifi/pcie/
H A Dtx-gen2.c94 * To work around it, copy the data elsewhere and make in iwl_pcie_gen2_enqueue_hcmd()
237 * This will copy the SNAP as well which will be considered in iwl_pcie_gen2_enqueue_hcmd()
1238 int copy = IWL_FIRST_TB_SIZE - copy_size;
1240 if (copy > cmdlen[i])
1241 copy = cmdlen[i];
1242 cmdlen[i] -= copy;
1243 cmddata[i] += copy;
1244 copy_size += copy;
1330 /* and copy the data that needs to be copied */
1332 int copy;
59 int copy = IWL_FIRST_TB_SIZE - copy_size; iwl_pcie_gen2_enqueue_hcmd() local
153 int copy; iwl_pcie_gen2_enqueue_hcmd() local
[all...]
/freebsd/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
96 cmp ${COPY} ${DIR}/copy || fail "corrupted copy"
102 cmp ${COPY} ${DIR}/copy || fail "corrupted copy"
108 cmp ${COPY} ${DIR}/copy || fail "corrupted copy"
118 cp ${DATA} ${DIR}/copy
125 cp ${DATA} ${DIR}/copy
142 cp ${DATA} ${DIR}/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/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/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.c40 char *copy; in strdup() local
43 if ((copy = malloc(len)) == NULL) in strdup()
45 memcpy(copy, str, len); in strdup()
46 return (copy); in strdup()
/freebsd/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/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/contrib/kyua/utils/config/
H A Dnodes_test.cpp88 config::bool_node* copy = static_cast< config::bool_node* >(raw_copy); in ATF_TEST_CASE_BODY() local
89 ATF_REQUIRE(copy->value()); in ATF_TEST_CASE_BODY()
90 copy->set(false); in ATF_TEST_CASE_BODY()
92 ATF_REQUIRE(!copy->value()); in ATF_TEST_CASE_BODY()
93 delete copy; in ATF_TEST_CASE_BODY()
195 config::int_node* copy = static_cast< config::int_node* >(raw_copy); in ATF_TEST_CASE_BODY() local
196 ATF_REQUIRE_EQ(5, copy->value()); in ATF_TEST_CASE_BODY()
197 copy->set(10); in ATF_TEST_CASE_BODY()
199 ATF_REQUIRE_EQ(10, copy->value()); in ATF_TEST_CASE_BODY()
200 delete copy; in ATF_TEST_CASE_BODY()
[all …]
/freebsd/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
252 MALLOC(sp, copy, (len + 1) * sizeof(CHAR_T));
253 if (copy == NULL)
255 MEMCPY(copy, str, len);
[all …]
/freebsd/sys/netgraph/
H A Dng_message.h417 #define NG_COPYMESSAGE(copy, msg, how) \ argument
419 (copy) = malloc(sizeof(struct ng_mesg) \
421 if ((copy) == NULL) \
423 (copy)->header.version = NG_VERSION; \
424 (copy)->header.arglen = (msg)->header.arglen; \
425 (copy)->header.token = (msg)->header.token; \
426 (copy)->header.typecookie = (msg)->header.typecookie; \
427 (copy)->header.cmd = (msg)->header.cmd; \
428 (copy)->header.flags = (msg)->header.flags; \
429 bcopy((msg)->header.cmdstr, (copy)->header.cmdstr, \
[all …]
/freebsd/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()
398 if (FASTLZ_UNEXPECT_CONDITIONAL(copy == MAX_COPY)) { in FASTLZ_COMPRESSOR()
399 copy = 0; in FASTLZ_COMPRESSOR()
408 copy++; in FASTLZ_COMPRESSOR()
409 if (copy == MAX_COPY) { in FASTLZ_COMPRESSOR()
[all …]
/freebsd/sys/libkern/
H A Dstrndup.c41 char *copy; in strndup() local
44 copy = malloc(len, type, M_WAITOK); in strndup()
45 memcpy(copy, string, len); in strndup()
46 copy[len - 1] = '\0'; in strndup()
47 return (copy); in strndup()
H A Dstrdup.c43 char *copy; in strdup_flags() local
46 copy = malloc(len, type, flags); in strdup_flags()
47 if (copy == NULL) in strdup_flags()
49 memcpy(copy, string, len); in strdup_flags()
50 return (copy); in strdup_flags()
/freebsd/usr.bin/units/
H A Dunits.c16 * I would appreciate (though I do not require) receiving a copy of any
482 char *copy; in lookupunit() local
490 copy = dupstr(unit); in lookupunit()
491 copy[strlen(copy) - 1] = 0; in lookupunit()
493 if (!strcmp(unittable[i].uname, copy)) { in lookupunit()
494 strlcpy(buffer, copy, sizeof(buffer)); in lookupunit()
495 free(copy); in lookupunit()
499 free(copy); in lookupunit()
501 copy in lookupunit()
[all...]
/freebsd/crypto/openssl/util/
H A Dmerge-err-lines23 my $copy = $_;
24 chop($copy);
25 $copy =~ s/ +$//;
28 $_ = $copy . ' ' . $next;
/freebsd/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/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/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/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()
382 struct Block_byref *copy = (struct Block_byref *)_Block_allocator(src->size, false, isWeak); in _Block_byref_assign_copy() local
383copy->flags = src->flags | _Byref_flag_initial_value; // non-GC one for caller, one for stack in _Block_byref_assign_copy()
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()
[all …]
/freebsd/usr.sbin/bhyve/
H A Dconfig.c51 char *copy, *name, *tofree; in _lookup_config_node() local
54 copy = strdup(path); in _lookup_config_node()
55 if (copy == NULL) in _lookup_config_node()
57 tofree = copy; in _lookup_config_node()
59 while ((name = strsep(&copy, ".")) != NULL) { in _lookup_config_node()
78 for (copy = tofree; copy < name; copy++) in _lookup_config_node()
79 if (*copy == '\0') in _lookup_config_node()
80 *copy = '.'; in _lookup_config_node()

12345678910>>...85