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

12

/freebsd-current/cddl/contrib/opensolaris/tools/ctf/common/
H A Dmemory.c86 char *newstr; local
88 if ((newstr = strdup(str)) == NULL)
91 return (newstr);
97 char *newstr; local
99 if ((newstr = malloc(len + 1)) == NULL)
102 (void) strncpy(newstr, str, len);
103 newstr[len] = '\0';
105 return (newstr);
/freebsd-current/crypto/openssh/openbsd-compat/
H A Dbsd-asprintf.c45 char *string, *newstr; local
60 if ((newstr = realloc(string, len)) == NULL) {
66 ret = vsnprintf(newstr, len, fmt, ap2);
68 *str = newstr;
70 free(newstr);
/freebsd-current/contrib/libfido2/openbsd-compat/
H A Dbsd-asprintf.c39 char *string, *newstr; local
55 if ((newstr = realloc(string, len)) == NULL) {
60 ret = vsnprintf(newstr, len, fmt, ap2);
63 free(newstr);
66 *str = newstr;
/freebsd-current/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-current/usr.bin/patch/
H A Dbackupfile.c160 char *newstr; local
162 if (asprintf(&newstr, "%s%s", str1, str2) == -1)
164 return newstr;
/freebsd-current/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-current/contrib/sendmail/src/
H A Dreadcf.c722 Priorities[NumPriorities].pri_name = newstr(&bp[1]);
1061 mn = newstr(macname(class));
1291 mn = newstr(macname(class));
1345 dynmap->s_dynclass.map_mname = newstr(mn);
1366 dynmap->s_dynclass.map_tag = newstr(tag);
1493 m->m_name = newstr(mname);
1565 m->m_name = newstr(line);
1602 m->m_mailer = newstr(p);
1647 m->m_eol = newstr(p);
1682 m->m_execdir = newstr(
[all...]
H A Dmap.c455 map->map_app = newstr(map->map_app);
457 map->map_tapp = newstr(map->map_tapp);
459 map->map_keycolnm = newstr(map->map_keycolnm);
461 map->map_valcolnm = newstr(map->map_valcolnm);
470 map->map_file = newstr(map->map_file);
476 map->map_rebuild = newstr(p);
949 return newstr(buf);
951 return newstr(autodomain);
1321 map->map_file = newstr(p);
1441 map->map_app = newstr(ma
[all...]
H A Dmain.c612 SaveArgv[i++] = newstr(*av);
711 FullName = newstr(FullName);
879 BlankEnvelope.e_bodytype = newstr(optarg);
885 conffile = newstr(optarg);
906 fromaddr = newstr("<>");
908 fromaddr = newstr(denlstring(optarg, true, true));
915 FullName = newstr(optarg);
1022 quarantining = newstr(optarg);
1066 queuegroup = newstr(&optarg[1]);
1071 new->queue_match = newstr(
[all...]
H A Ddaemon.c819 RealHostName = newstr(p);
1916 Daemons[NDaemons].d_inputfilterlist = newstr(Daemons[NDaemons].d_inputfilterlist);
1920 Daemons[NDaemons].d_name = newstr(Daemons[NDaemons].d_name);
1926 Daemons[NDaemons].d_name = newstr(num);
1989 ClientSettings[family].d_name = newstr(d.d_name);
1995 ClientSettings[family].d_name = newstr(num);
3080 mci->mci_heloname = newstr(name);
3097 mci->mci_heloname = newstr(HeloName);
3658 RealHostName = newstr(hostnamebyanyaddr(&RealHostAddr));
4471 map->map_app = newstr(ma
[all...]
H A Dqueue.c2754 w->w_name = newstr(d->d_name);
2779 w->w_name = newstr(d->d_name);
2886 w->w_host = newstr(&p[1]);
6309 qg->qg_qdir = newstr(basedir);
6401 newstr(relpath);
6404 newstr(d->d_name);
6461 qg->qg_qpaths[0].qp_name = newstr(qg->qg_qdir + blen);
6465 qg->qg_qpaths[0].qp_name = newstr(".");
7579 qg->qg_name = newstr(line);
7615 qg->qg_qdir = newstr(
[all...]
H A Dmilter.c148 response = newstr(default); \
160 response = newstr(default); \
1244 m->mf_name = newstr(line);
1290 m->mf_conn = newstr(p);
1511 p = newstr(val);
3047 addheader(newstr(response), mh_value, H_USER, e,
3133 insheader(idx, newstr(field), mh_value, H_USER, e,
3256 addheader(newstr(field), mh_value, H_USER, e,
4553 response = newstr("");
H A Denvelope.c1115 FullName = newstr(FullName);
1149 FullName = newstr(user.mbdb_fullname);
H A Dmci.c1050 mci->mci_status = newstr(&buf[1]);
1054 mci->mci_rstatus = newstr(&buf[1]);
H A Dsrvrsmtp.c1395 nullserver = newstr(response);
1445 nullserver = newstr(response);
1611 smtp.sm_quarmsg = newstr(e->e_quarmsg);
2240 auth_type = newstr(p);
2483 nullserver = newstr(MsgBuf);
2719 nullserver = newstr(response);
2758 smtp.sm_quarmsg = newstr(e->e_quarmsg);
5609 *user = newstr(auth_identity);
H A Dalias.c1013 ForwardPath = newstr("\201z/.forward");
H A Dconf.c306 DefUser = newstr(pw->pw_name);
357 PidFile = newstr(_PATH_SENDMAILPID);
374 AuthMechanisms = newstr(AUTH_MECHANISMS);
1078 p = newstr(p);
2536 environ[i] = newstr(envp[i]);
/freebsd-current/usr.sbin/pw/
H A Dpw.h105 char *newstr(char const * p);
/freebsd-current/usr.sbin/inetd/
H A Dinetd.c235 static char *newstr(const char *);
1634 policy = newstr(p);
1707 sep->se_service = newstr(c);
1709 sep->se_service = newstr(arg);
1728 sep->se_proto = newstr(strsep(&arg, "/"));
1739 sep->se_proto = newstr(arg);
1909 sep->se_user = newstr(sskip(&cp));
1913 sep->se_class = newstr(s + 1);
1915 sep->se_class = newstr(RESOURCE_RC);
1919 sep->se_group = newstr(
2072 newstr(const char *cp) function
[all...]
/freebsd-current/contrib/less/
H A Dfilename.c142 char *newstr; local
188 newstr = p = (char *) ecalloc(len, sizeof(char));
191 SNPRINTF3(newstr, len, "%c%s%c", openquote, s, closequote);
208 return (newstr);
/freebsd-current/usr.bin/sdiff/
H A Dsdiff.c931 char *newstr; local
965 newstr = realloc(*s, newsiz);
966 if (newstr == NULL)
968 *s = newstr;
/freebsd-current/contrib/file/src/
H A Dfuncs.c136 char *buf, *newstr; local
159 len = asprintf(&newstr, "%s%s", ms->o.buf, buf);
164 buf = newstr;
/freebsd-current/sys/dev/hwpmc/
H A Dhwpmc_mod.c198 static int pmc_debugflags_parse(char *newstr, char *fence);
450 pmc_debugflags_parse(char *newstr, char *fence) argument
461 for (p = newstr; p < fence && (c = *p); p++) {
581 char *fence, *newstr; local
586 newstr = malloc(n, M_PMC, M_WAITOK | M_ZERO);
587 strlcpy(newstr, pmc_debugstr, n);
589 error = sysctl_handle_string(oidp, newstr, n, req);
593 fence = newstr + (n < req->newlen ? n : req->newlen + 1);
594 error = pmc_debugflags_parse(newstr, fence);
596 strlcpy(pmc_debugstr, newstr, sizeo
[all...]
/freebsd-current/contrib/libxo/libxo/
H A Dlibxo.c3166 const char *newstr = NULL; local
3194 newstr = xo_dngettext(xop, cp, two, n);
3197 newstr = (n == 1) ? cp : two;
3204 if (newstr == cp) {
3216 newstr = xo_dgettext(xop, cp);
3218 if (newstr == cp) {
3229 ssize_t nlen = strlen(newstr);
3231 memcpy(newcopy, newstr, nlen + 1);
4129 char *newstr = alloca(vlen + 1); local
4130 memcpy(newstr, valu
[all...]
/freebsd-current/contrib/sendmail/include/sm/
H A Dconf.h2844 # ifdef newstr
2845 # undef newstr macro

Completed in 305 milliseconds

12