Home
last modified time | relevance | path

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

12345678910>>...49

/dragonfly/lib/libkvm/
HDkvm_vm_map.c47 kreadent(kvm_t *kd, const void *kaddr, vm_map_entry_t copy) in kreadent() argument
51 nb = sizeof(*copy); in kreadent()
53 if (kvm_read(kd, (u_long)kaddr, (char *)copy, nb) == (ssize_t)nb) in kreadent()
63 kvm_vm_map_entry_first(kvm_t *kd, vm_map_t map, vm_map_entry_t copy) in kvm_vm_map_entry_first() argument
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()
84 kvm_vm_map_entry_next(kvm_t *kd, vm_map_entry_t ken, vm_map_entry_t copy) in kvm_vm_map_entry_next() argument
88 if (copy->rb_entry.rbe_right) { in kvm_vm_map_entry_next()
[all …]
/dragonfly/contrib/zlib-1.2/
HDinflate.c98 unsigned copy));
396 local int updatewindow(strm, end, copy) in updatewindow() argument
399 unsigned copy;
422 if (copy >= state->wsize) {
429 if (dist > copy) dist = copy;
430 zmemcpy(state->window + state->wnext, end - copy, dist);
431 copy -= dist;
432 if (copy) {
433 zmemcpy(state->window, end - copy, copy);
434 state->wnext = copy;
[all …]
HDinfback.c263 unsigned copy; /* number of stored or match bytes to copy */ local
342 copy = state->length;
345 if (copy > have) copy = have;
346 if (copy > left) copy = left;
347 zmemcpy(put, next, copy);
348 have -= copy;
349 next += copy;
350 left -= copy;
351 put += copy;
352 state->length -= copy;
[all …]
/dragonfly/sbin/hammer2/zlib/
HDhammer2_zlib_inflate.c104 unsigned copy);
361 updatewindow(z_streamp strm, const Bytef *end, unsigned copy) in updatewindow() argument
376 if (copy >= state->wsize) { in updatewindow()
383 if (dist > copy) dist = copy; in updatewindow()
384 zmemcpy(state->window + state->wnext, end - copy, dist); in updatewindow()
385 copy -= dist; in updatewindow()
386 if (copy) { in updatewindow()
387 zmemcpy(state->window, end - copy, copy); in updatewindow()
388 state->wnext = copy; in updatewindow()
560 unsigned copy; /* number of stored or match bytes to copy */ in inflate() local
[all …]
/dragonfly/usr.sbin/makefs/hammer2/zlib/
HDhammer2_zlib_inflate.c109 unsigned copy);
366 updatewindow(z_streamp strm, const Bytef *end, unsigned copy) in updatewindow() argument
381 if (copy >= state->wsize) { in updatewindow()
388 if (dist > copy) dist = copy; in updatewindow()
389 zmemcpy(state->window + state->wnext, end - copy, dist); in updatewindow()
390 copy -= dist; in updatewindow()
391 if (copy) { in updatewindow()
392 zmemcpy(state->window, end - copy, copy); in updatewindow()
393 state->wnext = copy; in updatewindow()
565 unsigned copy; /* number of stored or match bytes to copy */ in inflate() local
[all …]
/dragonfly/sys/vfs/hammer2/zlib/
HDhammer2_zlib_inflate.c109 unsigned copy);
366 updatewindow(z_streamp strm, const Bytef *end, unsigned copy) in updatewindow() argument
381 if (copy >= state->wsize) { in updatewindow()
388 if (dist > copy) dist = copy; in updatewindow()
389 zmemcpy(state->window + state->wnext, end - copy, dist); in updatewindow()
390 copy -= dist; in updatewindow()
391 if (copy) { in updatewindow()
392 zmemcpy(state->window, end - copy, copy); in updatewindow()
393 state->wnext = copy; in updatewindow()
565 unsigned copy; /* number of stored or match bytes to copy */ in inflate() local
[all …]
/dragonfly/gnu/usr.bin/rcs/lib/
HDrcskeys.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/
HDdsa_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/
HDhammer_rebalance.c406 elm = &base_item->copy->elms[base_count]; in rebalance_node()
422 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()
[all …]
/dragonfly/contrib/nvi2/common/
HDutil.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 …]
/dragonfly/usr.bin/units/
HDunits.c468 char *copy; in lookupunit() local
476 copy = dupstr(unit); in lookupunit()
477 copy[strlen(copy) - 1] = 0; in lookupunit()
479 if (!strcmp(unittable[i].uname, copy)) { in lookupunit()
480 strlcpy(buffer, copy, sizeof(buffer)); in lookupunit()
481 free(copy); in lookupunit()
485 free(copy); in lookupunit()
488 copy = dupstr(unit); in lookupunit()
489 copy[strlen(copy) - 1] = 0; in lookupunit()
491 if (!strcmp(unittable[i].uname, copy)) { in lookupunit()
[all …]
/dragonfly/sys/netgraph7/
HDng_message.h429 #define NG_COPYMESSAGE(copy, msg, how) \ argument
431 (copy) = kmalloc(sizeof(struct ng_mesg) + (msg)->header.arglen,\
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, \
[all …]
/dragonfly/contrib/cvs-1.12/contrib/
HDintro.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.)
25 When you are satisfied with the changes you have made in your copy of
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
[all …]
/dragonfly/lib/libc/string/
HDstrndup.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()
HDstrdup.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/
HDmonitor.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/
HDargv.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/
HDstack.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()
93 copy->array = a->array == NULL ? NULL : array_dup(a->array); 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
[all …]
/dragonfly/crypto/libressl/crypto/rsa/
HDrsa_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.27/gas/
HDsb.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.34/gas/
HDsb.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/stand/lib/
HDstrdup.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/contrib/gcc-4.7/gcc/
HDsese.c465 rename_uses (gimple copy, htab_t rename_map, gimple_stmt_iterator *gsi_tgt, in rename_uses() argument
473 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()
485 FOR_EACH_SSA_USE_OPERAND (use_p, copy, op_iter, SSA_OP_ALL_USES) 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()
[all …]
/dragonfly/contrib/gcc-8.0/gcc/
HDdata-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/
HDgo-exp.y1054 char *copy; in lex_one_token() local
1301 copy = copy_name (yylval.sval); in lex_one_token()
1303 if (strcmp (copy, ident_tokens[i].operator) == 0) in lex_one_token()
1387 char *copy = copy_name (function_name); in classify_unsafe_function() local
1389 if (strcmp (copy, "Sizeof") == 0) in classify_unsafe_function()
1395 error (_("Unknown function in `unsafe' package: %s"), copy); in classify_unsafe_function()
1407 char *copy; in classify_packaged_name() local
1411 copy = copy_name (yylval.sval); in classify_packaged_name()
1413 sym = lookup_symbol (copy, block, VAR_DOMAIN, &is_a_field_of_this); in classify_packaged_name()
1437 char *copy; in classify_name() local
[all …]

12345678910>>...49