HomeSort by: relevance | last modified time | path
    Searched defs:copy (Results 1 - 25 of 132) sorted by relevancy

1 2 3 4 5 6

  /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(&copy, len, sizeof(*copy));
43 return wmemcpy(copy, str, len);
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(&copy, 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);
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);
  /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);
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
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(&copy->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(&copy->cwdi_lock);
71 cwdi->cwdi_cmask = copy->cwdi_cmask;
vfs_cwd.c 52 struct cwdinfo *copy; local in function:cwdinit
57 copy = curproc->p_cwdi;
59 rw_enter(&copy->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(&copy->cwdi_lock);
71 cwdi->cwdi_cmask = copy->cwdi_cmask;
  /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
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
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;
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
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);
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);

Completed in 25 milliseconds

1 2 3 4 5 6