/freebsd-9.3-release/cddl/contrib/opensolaris/tools/ctf/common/ |
H A D | memory.c | 72 char *newstr; local 74 if ((newstr = strdup(str)) == NULL) 77 return (newstr); 83 char *newstr; local 85 if ((newstr = malloc(len + 1)) == NULL) 88 (void) strncpy(newstr, str, len); 89 newstr[len] = '\0'; 91 return (newstr);
|
/freebsd-9.3-release/crypto/openssh/openbsd-compat/ |
H A D | bsd-asprintf.c | 47 char *string, *newstr; local 62 if ((newstr = realloc(string, len)) == NULL) { 68 ret = vsnprintf(newstr, len, fmt, ap2); 70 *str = newstr; 72 free(newstr);
|
/freebsd-9.3-release/contrib/binutils/libiberty/ |
H A D | concat.c | 154 char *newstr; local 159 newstr = XNEWVEC (char, vconcat_length (first, args) + 1); 165 vconcat_copy (newstr, first, args); 168 return newstr; 191 char *newstr; local 197 newstr = XNEWVEC (char, vconcat_length (first, args) + 1); 204 vconcat_copy (newstr, first, args); 209 return newstr;
|
/freebsd-9.3-release/contrib/gcclibs/libiberty/ |
H A D | concat.c | 154 char *newstr; local 159 newstr = XNEWVEC (char, vconcat_length (first, args) + 1); 165 vconcat_copy (newstr, first, args); 168 return newstr; 191 char *newstr; local 197 newstr = XNEWVEC (char, vconcat_length (first, args) + 1); 204 vconcat_copy (newstr, first, args); 209 return newstr;
|
/freebsd-9.3-release/usr.bin/env/ |
H A D | envopts.c | 167 char *dest, **newargv, *newstr, **nextarg, **oldarg; local 179 newstr = malloc(strlen(str) + 1); 194 for (src = str, dest = newstr; *src != '\0'; src++) { 392 char *newstr, *vname; local 458 newstr = malloc(newlen); 459 strcpy(newstr, *thisarg_p); 460 *thisarg_p = newstr; 462 newstr = malloc(newlen); 463 *newstr = '\0'; 465 *dest_p = strchr(newstr, '\ [all...] |
/freebsd-9.3-release/contrib/amd/amd/ |
H A D | am_ops.c | 313 char *newstr; /* new string to return (malloc'ed) */ local 323 newstr = xmalloc(len); 324 newstr[0] = '\0'; 340 if (newstr[0]) { 341 xstrlcat(newstr, ",", len); 342 xstrlcat(newstr, tmpstr, len); 344 xstrlcpy(newstr, tmpstr, len); 349 if (newstr[0]) { 350 xstrlcat(newstr, ",", len); 351 xstrlcat(newstr, opts [all...] |
/freebsd-9.3-release/gnu/usr.bin/patch/ |
H A D | backupfile.c | 215 char *newstr; local 218 newstr = malloc (str1_length + strlen (str2) + 1); 219 if (newstr == 0) 221 strcpy (newstr, str1); 222 strcpy (newstr + str1_length, str2); 223 return newstr;
|
/freebsd-9.3-release/contrib/gdb/gdb/ |
H A D | monitor.c | 69 static void monitor_printable_string (char *newstr, char *oldstr, int len); 177 monitor_printable_string (char *newstr, char *oldstr, int len) argument 192 *newstr++ = ch; 196 sprintf (newstr, "\\x%02x", ch & 0xff); 197 newstr += 4; 202 *newstr++ = '\\'; 203 *newstr++ = '\\'; 206 *newstr++ = '\\'; 207 *newstr++ = 'b'; 210 *newstr [all...] |
/freebsd-9.3-release/contrib/sendmail/rmail/ |
H A D | rmail.c | 74 #define newstr(s) strcpy(xalloc(strlen(s) + 1), s) macro 217 from_sys = newstr(p); 257 from_user = newstr(addrp); 296 args[i++] = newstr(buf); 301 args[i++] = newstr(buf);
|
/freebsd-9.3-release/usr.bin/systat/ |
H A D | ifstat.c | 313 char *newstr = NULL, *ptr = NULL; 322 newstr = ifp->if_name; 323 ptr = newstr + pad_len; 324 (void)memset((void *)newstr, (int)' ', IF_NAMESIZE); 312 char *newstr = NULL, *ptr = NULL; local
|
/freebsd-9.3-release/usr.sbin/inetd/ |
H A D | inetd.h | 127 char *newstr(const char *);
|
H A D | inetd.c | 1657 policy = newstr(p); 1725 sep->se_service = newstr(c); 1727 sep->se_service = newstr(arg); 1746 sep->se_proto = newstr(strsep(&arg, "/")); 1757 sep->se_proto = newstr(arg); 1925 sep->se_user = newstr(sskip(&cp)); 1929 sep->se_class = newstr(s + 1); 1931 sep->se_class = newstr(RESOURCE_RC); 1935 sep->se_group = newstr(s + 1); 1938 sep->se_server = newstr(sski 2096 newstr(const char *cp) function [all...] |
/freebsd-9.3-release/contrib/sendmail/src/ |
H A D | readcf.c | 635 Priorities[NumPriorities].pri_name = newstr(&bp[1]); 967 mn = newstr(macname(class)); 1235 m->m_name = newstr(line); 1269 m->m_mailer = newstr(p); 1316 m->m_eol = newstr(p); 1351 m->m_execdir = newstr(p); 1358 m->m_defcharset = newstr(p); 1377 m->m_mtatype = newstr(p); 1491 m->m_rootdir = newstr(p); 1814 argv[i++] = newstr( [all...] |
H A D | map.c | 267 map->map_app = newstr(map->map_app); 269 map->map_tapp = newstr(map->map_tapp); 271 map->map_keycolnm = newstr(map->map_keycolnm); 273 map->map_valcolnm = newstr(map->map_valcolnm); 282 map->map_file = newstr(map->map_file); 288 map->map_rebuild = newstr(p); 702 return newstr(buf); 704 return newstr(autodomain); 1156 map->map_file = newstr(p); 1170 map->map_app = newstr(ma [all...] |
H A D | main.c | 596 SaveArgv[i++] = newstr(*av); 679 FullName = newstr(FullName); 837 BlankEnvelope.e_bodytype = newstr(optarg); 843 conffile = newstr(optarg); 864 from = newstr("<>"); 866 from = newstr(denlstring(optarg, true, true)); 873 FullName = newstr(optarg); 980 quarantining = newstr(optarg); 1024 queuegroup = newstr(&optarg[1]); 1029 new->queue_match = newstr( [all...] |
H A D | daemon.c | 793 RealHostName = newstr(p); 1882 Daemons[NDaemons].d_inputfilterlist = newstr(Daemons[NDaemons].d_inputfilterlist); 1886 Daemons[NDaemons].d_name = newstr(Daemons[NDaemons].d_name); 1892 Daemons[NDaemons].d_name = newstr(num); 1955 ClientSettings[family].d_name = newstr(d.d_name); 1961 ClientSettings[family].d_name = newstr(num); 2864 mci->mci_heloname = newstr(name); 2881 mci->mci_heloname = newstr(HeloName); 3443 RealHostName = newstr(hostnamebyanyaddr(&RealHostAddr)); 4217 map->map_app = newstr(ma [all...] |
H A D | queue.c | 2689 w->w_name = newstr(d->d_name); 2714 w->w_name = newstr(d->d_name); 2820 w->w_host = newstr(&p[1]); 6187 qg->qg_qdir = newstr(basedir); 6280 newstr(relpath); 6283 newstr(d->d_name); 6340 qg->qg_qpaths[0].qp_name = newstr(qg->qg_qdir + blen); 6344 qg->qg_qpaths[0].qp_name = newstr("."); 7339 qg->qg_name = newstr(line); 7376 qg->qg_qdir = newstr( [all...] |
H A D | milter.c | 146 response = newstr(default); \ 158 response = newstr(default); \ 1245 m->mf_name = newstr(line); 1289 m->mf_conn = newstr(p); 1511 p = newstr(val); 3018 addheader(newstr(response), mh_value, H_USER, e, 3104 insheader(idx, newstr(field), mh_value, H_USER, e, 3226 addheader(newstr(field), mh_value, H_USER, e, 4495 response = newstr("");
|
/freebsd-9.3-release/usr.sbin/pw/ |
H A D | pw.h | 127 char *newstr(char const * p);
|
H A D | pw_user.c | 238 cnf->default_group = newstr(grp->gr_name); 253 cnf->groups[i++] = newstr(grp->gr_name); 347 a_name = addarg(args, 'n', newstr(pwd->pw_name));
|
H A D | pw_group.c | 246 members[i++] = newstr(pwd->pw_name);
|
/freebsd-9.3-release/contrib/file/src/ |
H A D | funcs.c | 60 char *buf, *newstr; local 69 len = asprintf(&newstr, "%s%s", ms->o.buf, buf); 74 buf = newstr;
|
/freebsd-9.3-release/contrib/less/ |
H A D | filename.c | 150 char *newstr; local 196 newstr = p = (char *) ecalloc(len, sizeof(char)); 199 SNPRINTF3(newstr, len, "%c%s%c", openquote, s, closequote); 216 return (newstr);
|
/freebsd-9.3-release/contrib/bind9/bin/named/ |
H A D | controlconf.c | 678 char *newstr = NULL; local 689 newstr = isc_mem_strdup(mctx, str); 690 if (newstr == NULL) 695 key->keyname = newstr; 700 newstr = NULL; 705 if (newstr != NULL) 706 isc_mem_free(mctx, newstr);
|
/freebsd-9.3-release/sys/dev/hwpmc/ |
H A D | hwpmc_mod.c | 177 static int pmc_debugflags_parse(char *newstr, char *fence); 346 pmc_debugflags_parse(char *newstr, char *fence) argument 355 p = newstr; 478 char *fence, *newstr; local 485 newstr = malloc(n, M_PMC, M_WAITOK|M_ZERO); 486 (void) strlcpy(newstr, pmc_debugstr, n); 488 error = sysctl_handle_string(oidp, newstr, n, req); 492 fence = newstr + (n < req->newlen ? n : req->newlen + 1); 493 if ((error = pmc_debugflags_parse(newstr, fence)) == 0) 494 (void) strlcpy(pmc_debugstr, newstr, [all...] |