Searched refs:newstr (Results 1 - 25 of 38) sorted by relevance

12

/freebsd-10-stable/cddl/contrib/opensolaris/tools/ctf/common/
H A Dmemory.c72 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-10-stable/crypto/openssh/openbsd-compat/
H A Dbsd-asprintf.c35 char *string, *newstr; local
50 if ((newstr = realloc(string, len)) == NULL) {
56 ret = vsnprintf(newstr, len, fmt, ap2);
58 *str = newstr;
60 free(newstr);
/freebsd-10-stable/contrib/binutils/libiberty/
H A Dconcat.c154 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-10-stable/contrib/gcclibs/libiberty/
H A Dconcat.c154 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-10-stable/usr.bin/env/
H A Denvopts.c167 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-10-stable/contrib/amd/amd/
H A Dam_ops.c323 char *newstr; /* new string to return (malloc'ed) */ local
333 newstr = xmalloc(len);
334 newstr[0] = '\0';
350 if (newstr[0]) {
351 xstrlcat(newstr, ",", len);
352 xstrlcat(newstr, tmpstr, len);
354 xstrlcpy(newstr, tmpstr, len);
359 if (newstr[0]) {
360 xstrlcat(newstr, ",", len);
361 xstrlcat(newstr, opts
[all...]
/freebsd-10-stable/contrib/serf/buckets/
H A Dbuckets.c132 char *newstr = serf_bucket_mem_alloc(allocator, size + 1); local
133 memcpy(newstr, str, size);
134 newstr[size] = '\0';
135 return newstr;
153 char *newstr = serf_bucket_mem_alloc(allocator, size); local
154 memcpy(newstr, str, size);
155 return newstr;
163 char *c, *newstr; local
170 newstr = serf_bucket_mem_alloc(allocator, new_len);
172 c = newstr;
[all...]
/freebsd-10-stable/usr.bin/patch/
H A Dbackupfile.c162 char *newstr; local
164 if (asprintf(&newstr, "%s%s", str1, str2) == -1)
166 return newstr;
/freebsd-10-stable/contrib/gdb/gdb/
H A Dmonitor.c69 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-10-stable/contrib/sendmail/rmail/
H A Drmail.c74 #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-10-stable/usr.sbin/inetd/
H A Dinetd.h127 char *newstr(const char *);
H A Dinetd.c1646 policy = newstr(p);
1714 sep->se_service = newstr(c);
1716 sep->se_service = newstr(arg);
1735 sep->se_proto = newstr(strsep(&arg, "/"));
1746 sep->se_proto = newstr(arg);
1912 sep->se_user = newstr(sskip(&cp));
1916 sep->se_class = newstr(s + 1);
1918 sep->se_class = newstr(RESOURCE_RC);
1922 sep->se_group = newstr(s + 1);
1925 sep->se_server = newstr(sski
2083 newstr(const char *cp) function
[all...]
/freebsd-10-stable/contrib/sendmail/src/
H A Dreadcf.c685 Priorities[NumPriorities].pri_name = newstr(&bp[1]);
1022 mn = newstr(macname(class));
1337 m->m_name = newstr(mname);
1410 m->m_name = newstr(line);
1447 m->m_mailer = newstr(p);
1492 m->m_eol = newstr(p);
1527 m->m_execdir = newstr(p);
1534 m->m_defcharset = newstr(p);
1553 m->m_mtatype = newstr(p);
1672 m->m_rootdir = newstr(
[all...]
H A Dmain.c594 SaveArgv[i++] = newstr(*av);
688 FullName = newstr(FullName);
846 BlankEnvelope.e_bodytype = newstr(optarg);
852 conffile = newstr(optarg);
873 from = newstr("<>");
875 from = newstr(denlstring(optarg, true, true));
882 FullName = newstr(optarg);
989 quarantining = newstr(optarg);
1033 queuegroup = newstr(&optarg[1]);
1038 new->queue_match = newstr(
[all...]
H A Dmap.c281 map->map_app = newstr(map->map_app);
283 map->map_tapp = newstr(map->map_tapp);
285 map->map_keycolnm = newstr(map->map_keycolnm);
287 map->map_valcolnm = newstr(map->map_valcolnm);
296 map->map_file = newstr(map->map_file);
302 map->map_rebuild = newstr(p);
716 return newstr(buf);
718 return newstr(autodomain);
1170 map->map_file = newstr(p);
1184 map->map_app = newstr(ma
[all...]
H A Ddaemon.c791 RealHostName = newstr(p);
1887 Daemons[NDaemons].d_inputfilterlist = newstr(Daemons[NDaemons].d_inputfilterlist);
1891 Daemons[NDaemons].d_name = newstr(Daemons[NDaemons].d_name);
1897 Daemons[NDaemons].d_name = newstr(num);
1960 ClientSettings[family].d_name = newstr(d.d_name);
1966 ClientSettings[family].d_name = newstr(num);
2867 mci->mci_heloname = newstr(name);
2884 mci->mci_heloname = newstr(HeloName);
3446 RealHostName = newstr(hostnamebyanyaddr(&RealHostAddr));
4219 map->map_app = newstr(ma
[all...]
H A Dqueue.c2686 w->w_name = newstr(d->d_name);
2711 w->w_name = newstr(d->d_name);
2817 w->w_host = newstr(&p[1]);
6186 qg->qg_qdir = newstr(basedir);
6279 newstr(relpath);
6282 newstr(d->d_name);
6339 qg->qg_qpaths[0].qp_name = newstr(qg->qg_qdir + blen);
6343 qg->qg_qpaths[0].qp_name = newstr(".");
7339 qg->qg_name = newstr(line);
7376 qg->qg_qdir = newstr(
[all...]
H A Dmilter.c146 response = newstr(default); \
158 response = newstr(default); \
1245 m->mf_name = newstr(line);
1289 m->mf_conn = newstr(p);
1511 p = newstr(val);
3025 addheader(newstr(response), mh_value, H_USER, e,
3111 insheader(idx, newstr(field), mh_value, H_USER, e,
3233 addheader(newstr(field), mh_value, H_USER, e,
4504 response = newstr("");
H A Denvelope.c1115 FullName = newstr(FullName);
1149 FullName = newstr(user.mbdb_fullname);
H A Dmci.c1004 mci->mci_status = newstr(&buf[1]);
1008 mci->mci_rstatus = newstr(&buf[1]);
/freebsd-10-stable/usr.bin/systat/
H A Difstat.c350 char *newstr = NULL, *ptr = NULL; local
359 newstr = ifp->if_name;
360 ptr = newstr + pad_len;
361 (void)memset((void *)newstr, (int)' ', IF_NAMESIZE);
/freebsd-10-stable/usr.sbin/pw/
H A Dpw.h106 char *newstr(char const * p);
/freebsd-10-stable/contrib/less/
H A Dfilename.c146 char *newstr; local
192 newstr = p = (char *) ecalloc(len, sizeof(char));
195 SNPRINTF3(newstr, len, "%c%s%c", openquote, s, closequote);
212 return (newstr);
/freebsd-10-stable/contrib/file/src/
H A Dfuncs.c60 char *buf, *newstr; local
69 len = asprintf(&newstr, "%s%s", ms->o.buf, buf);
74 buf = newstr;
/freebsd-10-stable/sys/dev/hwpmc/
H A Dhwpmc_mod.c178 static int pmc_debugflags_parse(char *newstr, char *fence);
353 pmc_debugflags_parse(char *newstr, char *fence) argument
362 p = newstr;
485 char *fence, *newstr; local
492 newstr = malloc(n, M_PMC, M_WAITOK|M_ZERO);
493 (void) strlcpy(newstr, pmc_debugstr, n);
495 error = sysctl_handle_string(oidp, newstr, n, req);
499 fence = newstr + (n < req->newlen ? n : req->newlen + 1);
500 if ((error = pmc_debugflags_parse(newstr, fence)) == 0)
501 (void) strlcpy(pmc_debugstr, newstr,
[all...]

Completed in 318 milliseconds

12