/netbsd-src/external/cddl/osnet/dist/tools/ctf/common/ |
H A D | memory.c | 76 char *newstr; in xstrdup() local 78 if ((newstr = strdup(str)) == NULL) in xstrdup() 81 return (newstr); in xstrdup() 87 char *newstr; in xstrndup() local 89 if ((newstr = malloc(len + 1)) == NULL) in xstrndup() 92 (void) strncpy(newstr, str, len); in xstrndup() 93 newstr[len] = '\0'; in xstrndup() 95 return (newstr); in xstrndup()
|
/netbsd-src/external/gpl3/binutils.old/dist/libiberty/ |
H A D | concat.c | 142 char *newstr; in concat() local 147 newstr = XNEWVEC (char, vconcat_length (first, args) + 1); in concat() 152 vconcat_copy (newstr, first, args); in concat() 155 return newstr; in concat() 179 char *newstr; in reconcat() local 184 newstr = XNEWVEC (char, vconcat_length (first, args) + 1); in reconcat() 189 vconcat_copy (newstr, first, args); in reconcat() 194 return newstr; in reconcat()
|
/netbsd-src/external/gpl3/gcc/dist/libiberty/ |
H A D | concat.c | 142 char *newstr; in concat() local 147 newstr = XNEWVEC (char, vconcat_length (first, args) + 1); in concat() 152 vconcat_copy (newstr, first, args); in concat() 155 return newstr; in concat() 179 char *newstr; in reconcat() local 184 newstr = XNEWVEC (char, vconcat_length (first, args) + 1); in reconcat() 189 vconcat_copy (newstr, first, args); in reconcat() 194 return newstr; in reconcat()
|
/netbsd-src/external/gpl3/gcc.old/dist/libiberty/ |
H A D | concat.c | 142 char *newstr; in concat() local 147 newstr = XNEWVEC (char, vconcat_length (first, args) + 1); in concat() 152 vconcat_copy (newstr, first, args); in concat() 155 return newstr; in concat() 179 char *newstr; in reconcat() local 184 newstr = XNEWVEC (char, vconcat_length (first, args) + 1); in reconcat() 189 vconcat_copy (newstr, first, args); in reconcat() 194 return newstr; in reconcat()
|
/netbsd-src/external/gpl3/binutils/dist/libiberty/ |
H A D | concat.c | 142 char *newstr; in concat() local 147 newstr = XNEWVEC (char, vconcat_length (first, args) + 1); in concat() 152 vconcat_copy (newstr, first, args); in concat() 155 return newstr; in concat() 179 char *newstr; in reconcat() local 184 newstr = XNEWVEC (char, vconcat_length (first, args) + 1); in reconcat() 189 vconcat_copy (newstr, first, args); in reconcat() 194 return newstr; in reconcat()
|
/netbsd-src/external/bsd/am-utils/dist/amd/ |
H A D | am_ops.c | 325 char *newstr; /* new string to return (malloc'ed) */ in merge_opts() local 335 newstr = xmalloc(len); in merge_opts() 336 newstr[0] = '\0'; in merge_opts() 352 if (newstr[0]) { in merge_opts() 353 xstrlcat(newstr, ",", len); in merge_opts() 354 xstrlcat(newstr, tmpstr, len); in merge_opts() 356 xstrlcpy(newstr, tmpstr, len); in merge_opts() 361 if (newstr[0]) { in merge_opts() 362 xstrlcat(newstr, ",", len); in merge_opts() 363 xstrlcat(newstr, opts2, len); in merge_opts() [all …]
|
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/src/ |
H A D | write-properties.c | 82 char *newstr = result; in conv_to_java() local 95 *newstr++ = uc; in conv_to_java() 99 sprintf (newstr, "\\u%c%c%c%c", in conv_to_java() 102 newstr += 6; in conv_to_java() 109 sprintf (newstr, "\\u%c%c%c%c", in conv_to_java() 112 newstr += 6; in conv_to_java() 113 sprintf (newstr, "\\u%c%c%c%c", in conv_to_java() 116 newstr += 6; in conv_to_java() 119 *newstr = '\0'; in conv_to_java()
|
/netbsd-src/external/bsd/libfido2/dist/openbsd-compat/ |
H A D | bsd-asprintf.c | 39 char *string, *newstr; in vasprintf() local 55 if ((newstr = realloc(string, len)) == NULL) { in vasprintf() 60 ret = vsnprintf(newstr, len, fmt, ap2); in vasprintf() 63 free(newstr); in vasprintf() 66 *str = newstr; in vasprintf()
|
/netbsd-src/usr.sbin/inetd/ |
H A D | parse.c | 440 policy = newstr(p); in getconfigent() 481 sep->se_hostaddr = newstr(arg + 1); in getconfigent() 483 sep->se_hostaddr = newstr(arg); in getconfigent() 508 sep->se_service = newstr(c); in getconfigent() 510 sep->se_service = newstr(arg); in getconfigent() 579 sep->se_hostaddr = newstr(defhost); in getconfigent() 595 sep->se_proto = newstr(arg); in getconfigent() 755 sep->se_group = newstr(separator + 1); in getconfigent() 758 sep->se_user = newstr(arg); in getconfigent() 775 sep->se_argv[argc++] = newstr(arg); in getconfigent() [all …]
|
H A D | parse_v2.c | 213 sep->se_hostaddr = newstr(defhost); in fill_default_values() 676 sep->se_hostaddr = newstr(val); in bind_handler() 765 sep->se_proto = newstr(val); in protocol_handler() 1021 sep->se_user = newstr(name); in user_handler() 1042 sep->se_group = newstr(name); in group_handler() 1103 sep->se_argv[argc++] = newstr(val); in args_handler() 1140 sep->se_policy = policy != NULL ? newstr(ipsecstr) : newstr(""); in ipsec_handler()
|
H A D | inetd.h | 259 char *newstr(const char *);
|
/netbsd-src/external/gpl3/binutils/dist/libctf/ |
H A D | ctf-string.c | 165 char *newstr = NULL; in ctf_str_add_ref_internal() local 195 if ((newstr = strdup (str)) == NULL) in ctf_str_add_ref_internal() 198 if (ctf_dynhash_insert (fp->ctf_str_atoms, newstr, atom) < 0) in ctf_str_add_ref_internal() 201 atom->csa_str = newstr; in ctf_str_add_ref_internal() 229 if (newstr) in ctf_str_add_ref_internal() 230 ctf_dynhash_remove (fp->ctf_str_atoms, newstr); in ctf_str_add_ref_internal() 233 free (newstr); in ctf_str_add_ref_internal()
|
/netbsd-src/external/gpl3/binutils.old/dist/libctf/ |
H A D | ctf-string.c | 165 char *newstr = NULL; in ctf_str_add_ref_internal() local 193 if ((newstr = strdup (str)) == NULL) in ctf_str_add_ref_internal() 196 if (ctf_dynhash_insert (fp->ctf_str_atoms, newstr, atom) < 0) in ctf_str_add_ref_internal() 199 atom->csa_str = newstr; in ctf_str_add_ref_internal() 227 if (newstr) in ctf_str_add_ref_internal() 228 ctf_dynhash_remove (fp->ctf_str_atoms, newstr); in ctf_str_add_ref_internal() 231 free (newstr); in ctf_str_add_ref_internal()
|
/netbsd-src/external/gpl3/binutils.old/dist/bfd/ |
H A D | vms-misc.c | 144 char *newstr; in _bfd_vms_save_sized_string() local 151 newstr = bfd_alloc (abfd, size + 1); in _bfd_vms_save_sized_string() 152 if (newstr == NULL) in _bfd_vms_save_sized_string() 154 memcpy (newstr, str, size); in _bfd_vms_save_sized_string() 155 newstr[size] = 0; in _bfd_vms_save_sized_string() 157 return newstr; in _bfd_vms_save_sized_string()
|
/netbsd-src/external/gpl3/binutils/dist/bfd/ |
H A D | vms-misc.c | 144 char *newstr; in _bfd_vms_save_sized_string() local 151 newstr = bfd_alloc (abfd, size + 1); in _bfd_vms_save_sized_string() 152 if (newstr == NULL) in _bfd_vms_save_sized_string() 154 memcpy (newstr, str, size); in _bfd_vms_save_sized_string() 155 newstr[size] = 0; in _bfd_vms_save_sized_string() 157 return newstr; in _bfd_vms_save_sized_string()
|
/netbsd-src/usr.bin/patch/ |
H A D | backupfile.c | 170 char *newstr; in concat() local 172 if (asprintf(&newstr, "%s%s", str1, str2) == -1) in concat() 174 return newstr; in concat()
|
/netbsd-src/crypto/external/bsd/netpgp/dist/src/lib/ |
H A D | packet-show.c | 472 char *newstr; in add_bitmap_entry() local 473 if (asprintf(&newstr, "Unknown bit(0x%x)", bit) == -1) { in add_bitmap_entry() 477 if (!add_str(&map->unknown, newstr)) { in add_bitmap_entry() 480 free(newstr); in add_bitmap_entry()
|
/netbsd-src/usr.bin/sdiff/ |
H A D | sdiff.c | 788 char *newstr; in astrcat() local 823 newstr = realloc(*s, newsiz); in astrcat() 824 if (newstr == NULL) in astrcat() 826 *s = newstr; in astrcat()
|
/netbsd-src/external/bsd/less/dist/ |
H A D | filename.c | 144 char *newstr; in shell_quote() local 190 newstr = p = (char *) ecalloc(len, sizeof(char)); in shell_quote() 193 SNPRINTF3(newstr, len, "%c%s%c", openquote, s, closequote); in shell_quote() 210 return (newstr); in shell_quote()
|
/netbsd-src/external/gpl3/binutils.old/dist/gprofng/libcollector/ |
H A D | envmgmt.c | 234 char * newstr = env_prepend (envvar, str, separator, old_str); in putenv_prepend() local 235 if (newstr) in putenv_prepend() 237 if (CALL_UTIL (putenv)(newstr) != 0) in putenv_prepend() 239 TprintfT (DBG_LT2, "putenv_prepend(): ERROR %s is not set!\n", newstr); in putenv_prepend()
|
/netbsd-src/external/gpl3/binutils/dist/gprofng/libcollector/ |
H A D | envmgmt.c | 234 char * newstr = env_prepend (envvar, str, separator, old_str); in putenv_prepend() local 235 if (newstr) in putenv_prepend() 237 if (CALL_UTIL (putenv)(newstr) != 0) in putenv_prepend() 239 TprintfT (DBG_LT2, "putenv_prepend(): ERROR %s is not set!\n", newstr); in putenv_prepend()
|
/netbsd-src/external/bsd/file/dist/src/ |
H A D | funcs.c | 142 char *buf, *newstr; in file_vprintf() local 165 len = asprintf(&newstr, "%s%s", ms->o.buf, buf); in file_vprintf() 170 buf = newstr; in file_vprintf()
|
/netbsd-src/external/gpl3/gcc.old/dist/gcc/ |
H A D | opts-common.c | 905 char *newstr, *end; in opts_concat() local 914 newstr = XOBNEWVEC (&opts_obstack, char, length + 1); in opts_concat() 919 for (arg = first, end = newstr; arg; arg = va_arg (ap, const char *)) in opts_concat() 927 return newstr; in opts_concat()
|
/netbsd-src/external/gpl2/xcvs/dist/src/ |
H A D | subr.c | 83 bool newstr = !*lenp; in xrealloc_and_strcat() local 84 expand_string (str, lenp, (newstr ? 0 : strlen (*str)) + strlen (src) + 1); in xrealloc_and_strcat() 85 if (newstr) in xrealloc_and_strcat()
|
/netbsd-src/external/gpl3/gcc/dist/gcc/ |
H A D | opts-common.cc | 969 char *newstr, *end; in opts_concat() local 978 newstr = XOBNEWVEC (&opts_obstack, char, length + 1); in opts_concat() 983 for (arg = first, end = newstr; arg; arg = va_arg (ap, const char *)) in opts_concat() 991 return newstr; in opts_concat()
|