Home
last modified time | relevance | path

Searched refs:newstr (Results 1 – 25 of 35) sorted by relevance

12

/freebsd/cddl/contrib/opensolaris/tools/ctf/common/
H A Dmemory.c86 char *newstr; in xstrdup() local
88 if ((newstr = strdup(str)) == NULL) in xstrdup()
91 return (newstr); in xstrdup()
97 char *newstr; in xstrndup() local
99 if ((newstr = malloc(len + 1)) == NULL) in xstrndup()
102 (void) strncpy(newstr, str, len); in xstrndup()
103 newstr[len] = '\0'; in xstrndup()
105 return (newstr); in xstrndup()
/freebsd/usr.bin/env/
H A Denvopts.c167 char *dest, **newargv, *newstr, **nextarg, **oldarg; in split_spaces() local
179 newstr = malloc(strlen(str) + 1); in split_spaces()
194 for (src = str, dest = newstr; *src != '\0'; src++) { in split_spaces()
392 char *newstr, *vname; in expand_vars() local
458 newstr = malloc(newlen); in expand_vars()
459 strcpy(newstr, *thisarg_p); in expand_vars()
460 *thisarg_p = newstr; in expand_vars()
462 newstr = malloc(newlen); in expand_vars()
463 *newstr = '\0'; in expand_vars()
465 *dest_p = strchr(newstr, '\0'); in expand_vars()
/freebsd/contrib/libfido2/openbsd-compat/
H A Dbsd-asprintf.c39 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()
/freebsd/crypto/openssh/openbsd-compat/
H A Dbsd-asprintf.c45 char *string, *newstr; in vasprintf() local
60 if ((newstr = realloc(string, len)) == NULL) { in vasprintf()
66 ret = vsnprintf(newstr, len, fmt, ap2); in vasprintf()
68 *str = newstr; in vasprintf()
70 free(newstr); in vasprintf()
/freebsd/usr.sbin/pw/
H A Dpw_conf.c227 newstr(char const * p) in newstr() function
282 ? NULL : newstr(q); in read_userconfig()
286 ? NULL : newstr(q); in read_userconfig()
290 ? NULL : newstr(q); in read_userconfig()
294 ? NULL : newstr(q); in read_userconfig()
298 ? "/home" : newstr(q); in read_userconfig()
308 ? "/bin" : newstr(q); in read_userconfig()
312 system_shells[i] = newstr(q); in read_userconfig()
319 ? (char *) bourne_shell : newstr(q); in read_userconfig()
324 ? NULL : newstr(q); in read_userconfig()
[all …]
H A Dpw.h105 char *newstr(char const * p);
/freebsd/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(p);
[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); in sun_init_domain()
951 return newstr(autodomain); in sun_init_domain()
1321 map->map_file = newstr(p);
1441 map->map_app = newstr(map->map_app);
[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(&optarg[1]);
[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(map->map_app);
[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 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 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(p);
[all …]
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 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/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/usr.bin/patch/
H A Dbackupfile.c160 char *newstr; in concat() local
162 if (asprintf(&newstr, "%s%s", str1, str2) == -1) in concat()
164 return newstr; in concat()
/freebsd/usr.sbin/inetd/
H A Dinetd.c235 static char *newstr(const char *);
1634 policy = newstr(p); in getconfigent()
1707 sep->se_service = newstr(c); in getconfigent()
1709 sep->se_service = newstr(arg); in getconfigent()
1728 sep->se_proto = newstr(strsep(&arg, "/")); in getconfigent()
1739 sep->se_proto = newstr(arg); in getconfigent()
1909 sep->se_user = newstr(sskip(&cp)); in getconfigent()
1913 sep->se_class = newstr(s + 1); in getconfigent()
1915 sep->se_class = newstr(RESOURCE_RC); in getconfigent()
1919 sep->se_group = newstr(s + 1); in getconfigent()
[all …]
/freebsd/contrib/less/
H A Dfilename.c142 char *newstr; in shell_quote() local
188 newstr = p = (char *) ecalloc(len, sizeof(char)); in shell_quote()
191 SNPRINTF3(newstr, len, "%c%s%c", openquote, s, closequote); in shell_quote()
208 return (newstr); in shell_quote()
/freebsd/usr.bin/sdiff/
H A Dsdiff.c931 char *newstr; in astrcat() local
965 newstr = realloc(*s, newsiz); in astrcat()
966 if (newstr == NULL) in astrcat()
968 *s = newstr; in astrcat()
/freebsd/contrib/file/src/
H A Dfuncs.c136 char *buf, *newstr; in file_vprintf() local
159 len = asprintf(&newstr, "%s%s", ms->o.buf, buf); in file_vprintf()
164 buf = newstr; in file_vprintf()
/freebsd/contrib/libxo/libxo/
H A Dlibxo.c3166 const char *newstr = NULL; in xo_format_gettext() local
3194 newstr = xo_dngettext(xop, cp, two, n); in xo_format_gettext()
3197 newstr = (n == 1) ? cp : two; in xo_format_gettext()
3204 if (newstr == cp) { in xo_format_gettext()
3216 newstr = xo_dgettext(xop, cp); in xo_format_gettext()
3218 if (newstr == cp) { in xo_format_gettext()
3229 ssize_t nlen = strlen(newstr); in xo_format_gettext()
3231 memcpy(newcopy, newstr, nlen + 1); in xo_format_gettext()
4129 char *newstr = alloca(vlen + 1); in xo_format_title() local
4130 memcpy(newstr, value, vlen); in xo_format_title()
[all …]
/freebsd/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) in pmc_debugflags_parse() argument
461 for (p = newstr; p < fence && (c = *p); p++) { in pmc_debugflags_parse()
581 char *fence, *newstr; in pmc_debugflags_sysctl_handler() local
586 newstr = malloc(n, M_PMC, M_WAITOK | M_ZERO); in pmc_debugflags_sysctl_handler()
587 strlcpy(newstr, pmc_debugstr, n); in pmc_debugflags_sysctl_handler()
589 error = sysctl_handle_string(oidp, newstr, n, req); in pmc_debugflags_sysctl_handler()
593 fence = newstr + (n < req->newlen ? n : req->newlen + 1); in pmc_debugflags_sysctl_handler()
594 error = pmc_debugflags_parse(newstr, fence); in pmc_debugflags_sysctl_handler()
596 strlcpy(pmc_debugstr, newstr, sizeof(pmc_debugstr)); in pmc_debugflags_sysctl_handler()
[all …]
/freebsd/contrib/sendmail/include/sm/
H A Dconf.h2844 # ifdef newstr
2845 # undef newstr

12