/src/lib/libc/string/ |
strdup.c | 56 char *copy; local in function:__weak_alias 61 if (!(copy = malloc(len))) 63 memcpy(copy, str, len); 64 return (copy);
|
strndup.c | 61 char *copy; local in function:__weak_alias 68 if (!(copy = malloc(len + 1))) 70 memcpy(copy, str, len); 71 copy[len] = '\0'; 72 return (copy);
|
wcsdup.c | 9 * Permission to use or copy this software for any purpose is hereby granted 31 wchar_t *copy; local in function:__weak_alias 38 copy = NULL; 39 errno = reallocarr(©, len, sizeof(*copy)); 43 return wmemcpy(copy, str, len);
|
/src/sys/arch/ia64/stand/common/ |
strdup.c | 53 char *copy = NULL; local in function:strdup 57 if ((copy = alloc(len)) == NULL) 59 memcpy(copy, str, len); 61 return (copy);
|
environment.c | 65 * If the EV_VOLATILE flag is set, a copy of the variable is made. 168 char *value, *copy; local in function:putenv 171 copy = strdup(string); 172 if ((value = strchr(copy, '=')) != NULL) 174 result = setenv(copy, value, 1); 175 free(copy);
|
interp_parse.c | 60 free(copy); \ 86 char *val, *p, *q, *copy = NULL; local in function:parse 93 if (!str || (p = copy = backslash(str)) == NULL) 174 free(copy);
|
/src/lib/libc/compat/stdlib/ |
compat_putenv.c | 64 char *copy; local in function:__weak_alias 75 if ((copy = strdup(name)) == NULL) 77 copy[l_name++] = '\0'; 79 rv = setenv(copy, copy + l_name, 1); 81 free(copy);
|
/src/distrib/common/ |
parselist.awk | 78 # IMP COPY src dest [perm] copy src to dest. perm defaults to 0444 80 # IMP COPYDIR src dest recursively copy files under src to 163 $1 == "COPY" \ 166 err("Usage: COPY src dest [perm]"); 168 copy($2, $3, $4); 193 copy(srcdir "/" srcfile, destdir "/" srcfile, ""); 224 copy(ENVIRON["OBJDIR"] "/" ENVIRON["CRUNCHBIN"], 303 function copy (src, dest, perm) \ function
|
/src/sys/kern/ |
vfs_cwd.c | 52 struct cwdinfo *copy; local in function:cwdinit 57 copy = curproc->p_cwdi; 59 rw_enter(©->cwdi_lock, RW_READER); 60 cwdi->cwdi_cdir = copy->cwdi_cdir; 63 cwdi->cwdi_rdir = copy->cwdi_rdir; 66 cwdi->cwdi_edir = copy->cwdi_edir; 69 rw_exit(©->cwdi_lock); 71 cwdi->cwdi_cmask = copy->cwdi_cmask;
|
kern_todr.c | 499 struct timeval copy = *tvp; local in function:todr_settime 500 copy.tv_sec -= rtc_offset * 60; 502 rv = tch->todr_settime(tch, ©);
|
/src/sys/arch/x68k/stand/common/ |
execkern.S | 49 | copy image 57 jbsr copy 118 | copy %d0 bytes from higher (%a0) to lower (%a1) address 120 copy: subql #1,%d0 label
|
/src/usr.bin/resize/ |
Makefile | 17 .if make(copy) 20 copy:: ${.CURDIR}/${i} target
|
/src/usr.bin/man/ |
manconf.c | 75 char *copy; local in function:xstrdup 78 copy = malloc(len); 79 if (!copy) 81 (void)memcpy(copy, str, len); 84 return copy;
|
/src/sys/arch/powerpc/powerpc/ |
ofwreal.S | 209 bl copy 215 copy: label 338 bl copy 342 bl copy
|
/src/usr.bin/audio/common/ |
decode.c | 80 char *copy = strdup(arg); local in function:decode_time 83 if (copy == NULL) 84 err(1, "could not allocate a copy of %s", arg); 87 s = copy; 120 free(copy);
|
/src/sys/external/bsd/drm2/drm/ |
drm_sysctl.c | 145 char copy[256], *n, *nn; local in function:drm_sysctl_init 146 strlcpy(copy, p->name, sizeof(copy)); 148 for (n = copy; (nn = strchr(n, '.')) != NULL; n = nn) {
|
/src/usr.bin/tset/ |
map.c | 78 char *copy, *p, *termp; local in function:add_mapping 80 copy = strdup(arg); 82 if (copy == NULL || mapp == NULL) 159 badmopt: errx(1, "illegal -m option format: %s", copy); 180 free(copy);
|
/src/common/dist/zlib/ |
gzwrite.c | 193 /* for small len, copy to input buffer, otherwise compress directly */ 195 /* copy to input buffer, compress when full */ 197 unsigned have, copy; local in function:gz_write 203 copy = state->size - have; 204 if (copy > len) 205 copy = (unsigned)len; 206 memcpy(state->in + have, buf, copy); 207 state->strm.avail_in += copy; 208 state->x.pos += copy; 209 buf = (const char *)buf + copy; [all...] |
infback.c | 252 unsigned copy; /* number of stored or match bytes to copy */ local in function:inflateBack 253 unsigned char FAR *from; /* where to copy match bytes from */ 256 unsigned len; /* length to copy for repeats, bits to drop */ 329 /* copy stored block from input to output */ 331 copy = state->length; 334 if (copy > have) copy = have; 335 if (copy > left) copy = left [all...] |
/src/bin/mv/ |
mv.c | 72 static int copy(char *, char *); 265 fastcopy(from, to, &sb) : copy(from, to)); 378 copy(char *from, char *to) function in typeref:typename:int
|
/src/sys/external/bsd/drm2/dist/drm/ |
drm_print.c | 7 * copy of this software and associated documentation files (the "Software"), 9 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 110 ssize_t copy; local in function:__drm_puts_coredump 119 copy = len - (iterator->start - iterator->offset); 121 if (copy > iterator->remain) 122 copy = iterator->remain; 124 /* Copy out the bit of the string that we need */ 126 str + (iterator->start - iterator->offset), copy); 128 iterator->offset = iterator->start + copy; 129 iterator->remain -= copy; [all...] |
/src/usr.bin/dc/ |
stack.c | 7 * Permission to use, copy, modify, and distribute this software for any 72 /* Copy number or string content into already allocated target */ 74 stack_dup_value(const struct value *a, struct value *copy) 76 copy->type = a->type; 82 copy->u.num = dup_number(a->u.num); 85 copy->u.string = strdup(a->u.string); 86 if (copy->u.string == NULL) 91 copy->array = a->array == NULL ? NULL : array_dup(a->array); 93 return copy; 106 struct value copy; local in function:stack_dup 119 struct value copy; local in function:stack_swap [all...] |
/src/usr.sbin/acpitools/aml/ |
aml_evalobj.c | 189 struct aml_environ *copy; local in function:aml_eval_name 201 copy = memman_alloc(aml_memman, memid_aml_environ); 202 if (copy == NULL) { 240 *copy = *env; 241 copy->curname = aname; 242 copy->dp = aname->property->meth.from; 243 copy->end = aname->property->meth.to; 244 copy->stat = aml_stat_none; 258 AML_DEBUGGER(env, copy); 260 tmp = aml_execute_method(copy); [all...] |
/src/tests/lib/libc/gen/ |
t_arc4random.c | 167 struct arc4random_prng *prng, copy; local in function:ATF_TC_BODY 191 * Save a copy and update the state with arc4random_addrandom. 193 copy = *prng; 199 ATF_CHECK(memcmp(&prng->arc4_prng, ©.arc4_prng, 200 sizeof(copy.arc4_prng)) != 0); 203 * Save a copy and update the state with arc4random_stir. 205 copy = *prng; 211 ATF_CHECK(memcmp(&prng->arc4_prng, ©.arc4_prng, 212 sizeof(copy.arc4_prng)) != 0);
|
/src/common/dist/zlib/contrib/blast/ |
blast.c | 268 * an instruction to copy previously uncompressed bytes to the output. The 269 * copy is from distance bytes back in the output stream, copying for length 278 * twelve copies the last four bytes three times. A simple forward copy 287 int len; /* length for copy */ 288 unsigned dist; /* distance for copy */ 289 int copy; /* copy counter */ local in function:decomp 290 unsigned char *from, *to; /* copy pointers */ 345 /* copy length bytes from distance bytes back */ 349 copy = MAXWIN [all...] |