Home
last modified time | relevance | path

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

12

/titanic_50/usr/src/lib/libc/port/print/
H A Dasprintf.c40 char *newstr; in vasprintf() local
50 if ((newstr = malloc(len)) == NULL) in vasprintf()
52 (void) strlcpy(newstr, string, len); in vasprintf()
53 *str = newstr; in vasprintf()
67 if ((newstr = malloc(len)) == NULL) in vasprintf()
69 ret = vsnprintf(newstr, len, format, ap); in vasprintf()
71 free(newstr); in vasprintf()
75 *str = newstr; in vasprintf()
78 free(newstr); in vasprintf()
/titanic_50/usr/src/tools/ctf/common/
H A Dmemory.c71 char *newstr; in xstrdup() local
73 if ((newstr = strdup(str)) == NULL) in xstrdup()
76 return (newstr); in xstrdup()
82 char *newstr; in xstrndup() local
84 if ((newstr = malloc(len + 1)) == NULL) in xstrndup()
87 (void) strncpy(newstr, str, len); in xstrndup()
88 newstr[len] = '\0'; in xstrndup()
90 return (newstr); in xstrndup()
/titanic_50/usr/src/cmd/boot/bootadm/
H A Dbootadm_hyper.c69 char *newstr; in append_str() local
84 if ((newstr = malloc(len)) == NULL) { in append_str()
89 (void) snprintf(newstr, len, "%s%s%s", orig, delim, str); in append_str()
90 return (newstr); in append_str()
759 char *newstr; in cvt_to_hyper() local
893 newstr = append_str(kern_bargs, serial_config[0], " "); in cvt_to_hyper()
895 kern_bargs = newstr; in cvt_to_hyper()
899 newstr = append_str(kern_bargs, serial_config[1], " "); in cvt_to_hyper()
901 kern_bargs = newstr; in cvt_to_hyper()
906 newstr = append_str(kern_bargs, extra_args, " "); in cvt_to_hyper()
[all …]
/titanic_50/usr/src/cmd/ssh/libopenbsd-compat/common/
H A Dbsd-asprintf.c49 char *string, *newstr; in vasprintf() local
64 if ((newstr = realloc(string, len)) == NULL) { in vasprintf()
70 ret = vsnprintf(newstr, len, fmt, ap2); in vasprintf()
72 *str = newstr; in vasprintf()
74 free(newstr); in vasprintf()
/titanic_50/usr/src/cmd/sgs/libconv/common/
H A Dconfig.c250 char *newstr; in conv_config_upm() local
261 newstr = (char *)curstr; in conv_config_upm()
263 *(newstr++) = *(str++); /* copy up to */ in conv_config_upm()
266 *(newstr++) = *(new++); /* add new string and */ in conv_config_upm()
267 *(newstr++) = ':'; /* separator */ in conv_config_upm()
269 *(newstr++) = *(str++); /* add remaining */ in conv_config_upm()
270 *(newstr++) = '\0'; /* string */ in conv_config_upm()
/titanic_50/usr/src/uts/sun4u/os/
H A Dmach_cpu_states.c166 char *newstr = kmem_alloc(strlen( in mdboot() local
168 if (newstr != NULL) { in mdboot()
170 (void) strcpy(newstr, bootstr); in mdboot()
171 (void) strcat(newstr, " -f "); in mdboot()
176 &(newstr[newstrlen])); in mdboot()
177 newstr[newstrlen + dllen] = in mdboot()
179 bootstr = newstr; in mdboot()
/titanic_50/usr/src/lib/krb5/kadm5/srv/
H A Dserver_misc.c65 static char newstr[80]; local
70 if (i >= sizeof(newstr))
71 i = sizeof(newstr)-1;
73 q = newstr;
78 return(newstr);
/titanic_50/usr/src/lib/libsecdb/common/
H A Dsecdb.c329 char *newstr = NULL; in _argv_to_csl() local
336 if ((len > 0) && ((newstr = (char *)malloc(len + 1)) != NULL)) { in _argv_to_csl()
337 (void) memset(newstr, 0, len); in _argv_to_csl()
339 (void) strcat(newstr, strings[i]); in _argv_to_csl()
340 (void) strcat(newstr, ","); in _argv_to_csl()
342 newstr[len-1] = NULL; in _argv_to_csl()
343 return (newstr); in _argv_to_csl()
/titanic_50/usr/src/cmd/krb5/kadmin/kclient/
H A Dkconf.c85 char *newstr, **newlist; in add_to_list() local
96 newstr = strdup(str); in add_to_list()
97 if (newstr == NULL) in add_to_list()
100 list->list[list->num++] = newstr; in add_to_list()
/titanic_50/usr/src/lib/libdwarf/common/
H A Ddwarf_harmless.c197 char *newstr = in dwarf_harmless_init() local
199 dhp->dh_errors[i] = newstr; in dwarf_harmless_init()
200 if(!newstr) { in dwarf_harmless_init()
208 newstr[0] = 0; in dwarf_harmless_init()
/titanic_50/usr/src/cmd/sgs/libldmake/common/
H A Dld_file.c64 char *newstr; in prepend_str() local
72 if (!(newstr = malloc(strlen(str) + 1))) { in prepend_str()
77 new->str = strcpy(newstr, str); in prepend_str()
/titanic_50/usr/src/cmd/sendmail/src/
H A Dreadcf.c626 Priorities[NumPriorities].pri_name = newstr(&bp[1]);
958 mn = newstr(macname(class));
1226 m->m_name = newstr(line);
1260 m->m_mailer = newstr(p);
1307 m->m_eol = newstr(p);
1342 m->m_execdir = newstr(p);
1349 m->m_defcharset = newstr(p);
1368 m->m_mtatype = newstr(p);
1482 m->m_rootdir = newstr(p);
1805 argv[i++] = newstr(q);
[all …]
H A Dmap.c272 map->map_app = newstr(map->map_app);
274 map->map_tapp = newstr(map->map_tapp);
276 map->map_keycolnm = newstr(map->map_keycolnm);
278 map->map_valcolnm = newstr(map->map_valcolnm);
287 map->map_file = newstr(map->map_file);
293 map->map_rebuild = newstr(p);
707 return newstr(buf); in sun_init_domain()
709 return newstr(autodomain); in sun_init_domain()
1161 map->map_file = newstr(p);
1175 map->map_app = newstr(map->map_app);
[all …]
H A Dmain.c597 SaveArgv[i++] = newstr(*av);
680 FullName = newstr(FullName);
838 BlankEnvelope.e_bodytype = newstr(optarg);
844 conffile = newstr(optarg);
865 from = newstr("<>");
867 from = newstr(denlstring(optarg, true, true));
874 FullName = newstr(optarg);
981 quarantining = newstr(optarg);
1025 queuegroup = newstr(&optarg[1]);
1030 new->queue_match = newstr(&optarg[1]);
[all …]
/titanic_50/usr/src/cmd/make/lib/makestate/
H A Dld_file.c65 char * newstr; in prepend_str() local
72 if (!(newstr = malloc(strlen(str) + 1))) { in prepend_str()
77 new->str = strcpy(newstr, str); in prepend_str()
/titanic_50/usr/src/cmd/sendmail/aux/
H A Dmailcompat.c47 static char *newstr();
95 homedir = newstr(pw->pw_dir);
204 return newstr(start);
246 newstr(s) in newstr() function
H A Dvacation.c104 static char *newstr(char *);
228 homedir = newstr(pw->pw_dir);
538 Subject = newstr(buf+9);
541 EncodedSubject = newstr(Subject);
542 decoded_subject = newstr(Subject);
969 newstr(s) in newstr() function
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/profile/
H A Dprof_get.c72 char *newstr, **newlist; in add_to_list() local
83 newstr = malloc(strlen(str)+1); in add_to_list()
84 if (newstr == 0) in add_to_list()
86 strcpy(newstr, str); in add_to_list()
88 list->list[list->num++] = newstr; in add_to_list()
/titanic_50/usr/src/cmd/sgs/elfedit/modules/common/
H A Dstr.c520 const char *newstr = argstate->argv[1]; in cmd_body_set() local
525 len = strlen(newstr); in cmd_body_set()
538 EC_WORD(ndx), newstr); in cmd_body_set()
545 EC_WORD(ndx), newstr); in cmd_body_set()
552 if ((ndx == 0) && (*newstr != '\0')) in cmd_body_set()
555 EC_WORD(ndx), newstr); in cmd_body_set()
560 if (newstr[i] != oldstr[i]) in cmd_body_set()
564 strsec->sec_shndx, strsec->sec_name, ndx, newstr); in cmd_body_set()
596 newstr); in cmd_body_set()
608 strsec->sec_shndx, strsec->sec_name, ndx, len, oldstr, newstr); in cmd_body_set()
[all …]
/titanic_50/usr/src/lib/libadm/common/
H A Dgetdgrp.c270 char *newstr; /* Space for the dgroup name */ in addtodgrplist() local
293 if (newstr = malloc(strlen(dgrp->name)+1)) { in addtodgrplist()
296 newnode->name = strcpy(newstr, dgrp->name); in addtodgrplist()
/titanic_50/usr/src/cmd/audio/utilities/
H A DAudioHdrParse.cc44 unsigned char *newstr; in to_lowercase() local
48 newstr = new unsigned char [strlen(str) + 1]; in to_lowercase()
51 newstr[i] = tolower(oldstr[i]); in to_lowercase()
53 newstr[i] = oldstr[i]; in to_lowercase()
57 return ((char *)newstr); in to_lowercase()
/titanic_50/usr/src/tools/scripts/
H A Dvalidate_flg.pl51 my $newstr = $ENV{$1};
52 $str =~ s/\$$1/$newstr/g;
/titanic_50/usr/src/cmd/file/
H A Dmagicutils.c118 char *newstr; in getstr() local
123 newstr = (char *)malloc((strlen(p) + 1) * sizeof (char)); in getstr()
124 if (newstr == NULL) { in getstr()
131 s = newstr; in getstr()
189 return (newstr); in getstr()
/titanic_50/usr/src/lib/libshell/common/edit/
H A Dcompletion.c76 static char *overlaid(register char *str,register const char *newstr,int nocase) in overlaid() argument
79 while((c= *(unsigned char *)str) && ((d= *(unsigned char*)newstr++),charcmp(c,d,nocase))) in overlaid()
83 else if(*newstr==0) in overlaid()
/titanic_50/usr/src/cmd/hal/hald/
H A Dutil.c935 char *newstr; in hal_util_strdup_valid_utf8() local
941 newstr = g_strdup (str); in hal_util_strdup_valid_utf8()
943 while (!g_utf8_validate (newstr, -1, (const char **) &endchar)) { in hal_util_strdup_valid_utf8()
948 if (strlen(newstr) == count) in hal_util_strdup_valid_utf8()
951 return newstr; in hal_util_strdup_valid_utf8()

12