Home
last modified time | relevance | path

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

12345678910>>...49

/dragonfly/lib/libkvm/
H A Dkvm_vm_map.c51 nb = sizeof(*copy); in kreadent()
70 if (!kreadent(kd, ken, copy)) in kvm_vm_map_entry_first()
72 while (copy->rb_entry.rbe_left) { in kvm_vm_map_entry_first()
73 ken = copy->rb_entry.rbe_left; in kvm_vm_map_entry_first()
74 if (!kreadent(kd, ken, copy)) in kvm_vm_map_entry_first()
88 if (copy->rb_entry.rbe_right) { in kvm_vm_map_entry_next()
89 ken = copy->rb_entry.rbe_right; in kvm_vm_map_entry_next()
90 if (!kreadent(kd, ken, copy)) in kvm_vm_map_entry_next()
93 ken = copy->rb_entry.rbe_left; in kvm_vm_map_entry_next()
94 if (!kreadent(kd, ken, copy)) in kvm_vm_map_entry_next()
[all …]
/dragonfly/contrib/zlib-1.2/
H A Dinflate.c399 unsigned copy;
429 if (dist > copy) dist = copy;
433 zmemcpy(state->window, end - copy, copy);
759 if (copy > have) copy = have;
906 if (copy > have) copy = have;
907 if (copy > left) copy = left;
1150 copy = state->offset - copy;
1161 if (copy > left) copy = left;
1177 if (copy > state->length) copy = state->length;
1183 if (copy > left) copy = left;
[all …]
H A Dinfback.c345 if (copy > have) copy = have;
346 if (copy > left) copy = left;
348 have -= copy;
349 next += copy;
350 left -= copy;
351 put += copy;
591 copy = left - copy;
595 copy = left;
597 if (copy > state->length) copy = state->length;
599 left -= copy;
[all …]
/dragonfly/sys/vfs/hammer2/zlib/
H A Dhammer2_zlib_inflate.c388 if (dist > copy) dist = copy; in updatewindow()
390 copy -= dist; in updatewindow()
391 if (copy) { in updatewindow()
392 zmemcpy(state->window, end - copy, copy); in updatewindow()
687 if (copy > have) copy = have; in inflate()
688 if (copy > left) copy = left; in inflate()
931 copy = state->offset - copy; in inflate()
941 if (copy > state->length) copy = state->length; in inflate()
942 if (copy > left) copy = left; in inflate()
958 if (copy > state->length) copy = state->length; in inflate()
[all …]
/dragonfly/usr.sbin/makefs/hammer2/zlib/
H A Dhammer2_zlib_inflate.c388 if (dist > copy) dist = copy; in updatewindow()
390 copy -= dist; in updatewindow()
391 if (copy) { in updatewindow()
392 zmemcpy(state->window, end - copy, copy); in updatewindow()
687 if (copy > have) copy = have; in inflate()
688 if (copy > left) copy = left; in inflate()
931 copy = state->offset - copy; in inflate()
941 if (copy > state->length) copy = state->length; in inflate()
942 if (copy > left) copy = left; in inflate()
958 if (copy > state->length) copy = state->length; in inflate()
[all …]
/dragonfly/sbin/hammer2/zlib/
H A Dhammer2_zlib_inflate.c383 if (dist > copy) dist = copy; in updatewindow()
385 copy -= dist; in updatewindow()
386 if (copy) { in updatewindow()
387 zmemcpy(state->window, end - copy, copy); in updatewindow()
687 if (copy > have) copy = have; in inflate()
688 if (copy > left) copy = left; in inflate()
939 copy = state->offset - copy; in inflate()
949 if (copy > state->length) copy = state->length; in inflate()
950 if (copy > left) copy = left; in inflate()
966 if (copy > state->length) copy = state->length; in inflate()
[all …]
/dragonfly/gnu/usr.bin/rcs/lib/
H A Drcskeys.c126 char *copy, *next; local
129 copy = strdup(arg);
130 next = copy;
139 free(copy);
155 free(copy);
165 char *copy, *next, *key; local
167 copy = strdup(string);
168 next = copy;
186 free(copy);
/dragonfly/crypto/libressl/crypto/dsa/
H A Ddsa_meth.c55 DSA_METHOD *copy; in DSA_meth_dup() local
57 if ((copy = calloc(1, sizeof(*copy))) == NULL) in DSA_meth_dup()
59 memcpy(copy, meth, sizeof(*copy)); in DSA_meth_dup()
60 if ((copy->name = strdup(meth->name)) == NULL) { in DSA_meth_dup()
61 free(copy); in DSA_meth_dup()
65 return copy; in DSA_meth_dup()
/dragonfly/sys/vfs/hammer/
H A Dhammer_rebalance.c422 if (base_item->copy->mirror_tid < tid) { in rebalance_node()
423 base_item->copy->mirror_tid = tid; in rebalance_node()
424 if (lockroot.copy->mirror_tid < tid) { in rebalance_node()
425 lockroot.copy->mirror_tid = tid; in rebalance_node()
429 if (lockroot.copy->elms[root_count]. in rebalance_node()
431 lockroot.copy->elms[root_count]. in rebalance_node()
478 if (lockroot.copy->count != root_count) { in rebalance_node()
479 lockroot.copy->count = root_count; in rebalance_node()
480 lockroot.copy->elms[root_count] = *elm; in rebalance_node()
499 base_item->copy->count = 0; in rebalance_node()
[all …]
/dragonfly/contrib/nvi2/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 …]
/dragonfly/usr.bin/units/
H A Dunits.c468 char *copy; in lookupunit() local
476 copy = dupstr(unit); in lookupunit()
477 copy[strlen(copy) - 1] = 0; in lookupunit()
481 free(copy); in lookupunit()
485 free(copy); in lookupunit()
489 copy[strlen(copy) - 1] = 0; in lookupunit()
493 free(copy); in lookupunit()
497 if (copy[strlen(copy) - 1] == 'e') { in lookupunit()
498 copy[strlen(copy) - 1] = 0; in lookupunit()
502 free(copy); in lookupunit()
[all …]
/dragonfly/sys/netgraph7/
H A Dng_message.h429 #define NG_COPYMESSAGE(copy, msg, how) \ argument
433 if ((copy) == NULL) \
435 (copy)->header.version = NG_VERSION; \
436 (copy)->header.arglen = (msg)->header.arglen; \
437 (copy)->header.token = (msg)->header.token; \
438 (copy)->header.typecookie = (msg)->header.typecookie; \
439 (copy)->header.cmd = (msg)->header.cmd; \
440 (copy)->header.flags = (msg)->header.flags; \
441 bcopy((msg)->header.cmdstr, (copy)->header.cmdstr, \
442 sizeof((copy)->header.cmdstr)); \
[all …]
/dragonfly/contrib/cvs-1.12/contrib/
H A Dintro.doc13 of the files. You may at any time create a personal copy of these
15 repository, you can 'update' your copy.
17 You may edit your copy of the files freely. If new versions of the
19 merges the changes in the central copy into your copy.
21 central copy clash with changes you have made in your own
22 copy. In this case cvs warns you, and you have to resolve the
23 clash in your copy.)
43 Suppose you want a copy of the files in repository 'views' to be
45 copy of the directory, and do a 'checkout' of the directory you
59 This will update your copy with any changes from the central
[all …]
/dragonfly/lib/libc/string/
H A Dstrndup.c42 char *copy; in strndup() local
45 if ((copy = malloc(len + 1)) == NULL) in strndup()
47 memcpy(copy, str, len); in strndup()
48 copy[len] = '\0'; in strndup()
49 return (copy); in strndup()
H A Dstrdup.c41 char *copy; in strdup() local
44 if ((copy = malloc(len)) == NULL) in strdup()
46 memcpy(copy, str, len); in strdup()
47 return (copy); in strdup()
/dragonfly/usr.bin/dsynth/
H A Dmonitor.c143 worker_t copy; in MonitorUpdate() local
148 copy = *work; in MonitorUpdate()
149 copy.pkg = NULL; /* safety */ in MonitorUpdate()
154 rs->slots[i].work = copy; in MonitorUpdate()
200 monitor_file_t copy; in MonitorDirective() local
204 bzero(&copy, sizeof(copy)); in MonitorDirective()
267 copy.slots[i].work = rs->slots[i].work; in MonitorDirective()
268 NCursesRunStats.update(&copy.slots[i].work, in MonitorDirective()
/dragonfly/contrib/gcc-4.7/libiberty/
H A Dargv.c68 char **copy; in dupargv() local
75 copy = (char **) malloc ((argc + 1) * sizeof (char *)); in dupargv()
76 if (copy == NULL) in dupargv()
83 copy[argc] = (char *) malloc (len + 1); in dupargv()
84 if (copy[argc] == NULL) in dupargv()
86 freeargv (copy); in dupargv()
89 strcpy (copy[argc], argv[argc]); in dupargv()
91 copy[argc] = NULL; in dupargv()
92 return copy; in dupargv()
/dragonfly/usr.bin/dc/
H A Dstack.c76 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()
108 struct value copy; in stack_dup() local
115 stack_push(stack, stack_dup_value(value, &copy)); in stack_dup()
121 struct value copy; in stack_swap() local
127 copy = stack->stack[stack->sp]; in stack_swap()
[all …]
/dragonfly/stand/lib/
H A Dstrdup.c41 char *copy = NULL; in strdup() local
45 if ((copy = malloc(len)) == NULL) in strdup()
47 memcpy(copy, str, len); in strdup()
49 return (copy); in strdup()
/dragonfly/crypto/libressl/crypto/rsa/
H A Drsa_meth.c55 RSA_METHOD *copy; in RSA_meth_dup() local
57 if ((copy = calloc(1, sizeof(*copy))) == NULL) in RSA_meth_dup()
59 memcpy(copy, meth, sizeof(*copy)); in RSA_meth_dup()
60 if ((copy->name = strdup(meth->name)) == NULL) { in RSA_meth_dup()
61 free(copy); in RSA_meth_dup()
65 return copy; in RSA_meth_dup()
/dragonfly/contrib/binutils-2.34/gas/
H A Dsb.c98 size_t copy; in scrub_from_sb() local
99 copy = sb_to_scrub->len - (scrub_position - sb_to_scrub->ptr); in scrub_from_sb()
100 if (copy > buflen) in scrub_from_sb()
101 copy = buflen; in scrub_from_sb()
102 memcpy (buf, scrub_position, copy); in scrub_from_sb()
103 scrub_position += copy; in scrub_from_sb()
104 return copy; in scrub_from_sb()
/dragonfly/contrib/binutils-2.27/gas/
H A Dsb.c98 size_t copy; in scrub_from_sb() local
99 copy = sb_to_scrub->len - (scrub_position - sb_to_scrub->ptr); in scrub_from_sb()
100 if (copy > buflen) in scrub_from_sb()
101 copy = buflen; in scrub_from_sb()
102 memcpy (buf, scrub_position, copy); in scrub_from_sb()
103 scrub_position += copy; in scrub_from_sb()
104 return copy; in scrub_from_sb()
/dragonfly/contrib/gcc-4.7/gcc/
H A Dsese.c473 if (is_gimple_debug (copy)) in rename_uses()
475 if (gimple_debug_bind_p (copy)) in rename_uses()
476 gimple_debug_bind_reset_value (copy); in rename_uses()
477 else if (gimple_debug_source_bind_p (copy)) in rename_uses()
554 && is_gimple_assign (copy)) in rename_uses()
556 tree rhs = gimple_assign_rhs1 (copy); in rename_uses()
587 gimple copy; in graphite_copy_stmts_from_block() local
605 copy = gimple_copy (stmt); in graphite_copy_stmts_from_block()
609 maybe_duplicate_eh_stmt (copy, stmt); in graphite_copy_stmts_from_block()
624 gcc_assert (gsi_stmt (gsi_tgt) == copy); in graphite_copy_stmts_from_block()
[all …]
/dragonfly/contrib/gcc-8.0/gcc/
H A Ddata-streamer-out.c355 size_t copy; in streamer_write_data_stream() local
363 copy = len; in streamer_write_data_stream()
365 copy = obs->left_in_block; in streamer_write_data_stream()
368 memcpy (obs->current_pointer, data, copy); in streamer_write_data_stream()
369 obs->current_pointer += copy; in streamer_write_data_stream()
370 obs->total_size += copy; in streamer_write_data_stream()
371 obs->left_in_block -= copy; in streamer_write_data_stream()
372 data = (const char *) data + copy; in streamer_write_data_stream()
373 len -= copy; in streamer_write_data_stream()
/dragonfly/contrib/gdb-7/gdb/
H A Dgo-exp.y1054 char *copy; in lex_one_token() local
1301 copy = copy_name (yylval.sval); in lex_one_token()
1407 char *copy; in classify_packaged_name() local
1411 copy = copy_name (yylval.sval); in classify_packaged_name()
1437 char *copy; in classify_name() local
1440 copy = copy_name (yylval.sval); in classify_name()
1444 parse_gdbarch, copy); in classify_name()
1478 copy, strlen (copy)); in classify_name()
1496 if ((copy[0] >= 'a' && copy[0] < 'a' + input_radix - 10) in classify_name()
1497 || (copy[0] >= 'A' && copy[0] < 'A' + input_radix - 10)) in classify_name()
[all …]

12345678910>>...49