/illumos-gate/usr/src/lib/libc/port/print/ |
H A D | asprintf.c | 40 char *newstr; in vasprintf() local 50 if ((newstr = malloc(len)) == NULL) in vasprintf() 58 (void) memcpy(newstr, string, len); in vasprintf() 59 *str = newstr; in vasprintf() 73 if ((newstr = malloc(len)) == NULL) in vasprintf() 75 ret = vsnprintf(newstr, len, format, ap); in vasprintf() 77 free(newstr); in vasprintf() 81 *str = newstr; in vasprintf() 84 free(newstr); in vasprintf()
|
/illumos-gate/usr/src/tools/ctf/common/ |
H A D | memory.c | 69 char *newstr; in xstrdup() local 71 if ((newstr = strdup(str)) == NULL) in xstrdup() 74 return (newstr); in xstrdup() 80 char *newstr; in xstrndup() local 82 if ((newstr = malloc(len + 1)) == NULL) in xstrndup() 85 (void) strncpy(newstr, str, len); in xstrndup() 86 newstr[len] = '\0'; in xstrndup() 88 return (newstr); in xstrndup()
|
/illumos-gate/usr/src/cmd/boot/bootadm/ |
H A D | bootadm_hyper.c | 69 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() 763 char *newstr; in cvt_to_hyper() local 904 newstr = append_str(kern_bargs, serial_config[0], " "); in cvt_to_hyper() 906 kern_bargs = newstr; in cvt_to_hyper() 910 newstr = append_str(kern_bargs, serial_config[1], " "); in cvt_to_hyper() 912 kern_bargs = newstr; in cvt_to_hyper() 917 newstr = append_str(kern_bargs, extra_args, " "); in cvt_to_hyper() [all …]
|
/illumos-gate/usr/src/test/smbsrv-tests/tests/smb_sid/ |
H A D | large_sids.c | 30 char newstr[1024]; in test_sid() local 40 smb_sid_tostr(sid, newstr); in test_sid() 42 if (strncmp(sidstr, newstr, sizeof (newstr)) != 0) { in test_sid() 44 sidstr, newstr); in test_sid()
|
/illumos-gate/usr/src/cmd/sgs/libconv/common/ |
H A D | config.c | 250 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()
|
/illumos-gate/usr/src/uts/sun4u/os/ |
H A D | mach_cpu_states.c | 166 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()
|
/illumos-gate/usr/src/lib/krb5/kadm5/srv/ |
H A D | server_misc.c | 65 static char newstr[80]; local 70 if (i >= sizeof(newstr)) 71 i = sizeof(newstr)-1; 73 q = newstr; 78 return(newstr);
|
/illumos-gate/usr/src/lib/libsecdb/common/ |
H A D | secdb.c | 329 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] = '\0'; in _argv_to_csl() 343 return (newstr); in _argv_to_csl()
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | readcf.c | 626 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 D | map.c | 272 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 D | main.c | 597 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 …]
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | dwarf_harmless.c | 203 char *newstr = in dwarf_harmless_init() local 205 dhp->dh_errors[i] = newstr; in dwarf_harmless_init() 206 if (!newstr) { in dwarf_harmless_init() 214 newstr[0] = 0; in dwarf_harmless_init()
|
/illumos-gate/usr/src/cmd/krb5/kadmin/kclient/ |
H A D | kconf.c | 85 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()
|
/illumos-gate/usr/src/cmd/sgs/libldmake/common/ |
H A D | ld_file.c | 63 char *newstr; in prepend_str() local 71 if (!(newstr = malloc(strlen(str) + 1))) { in prepend_str() 76 new->str = strcpy(newstr, str); in prepend_str()
|
/illumos-gate/usr/src/cmd/make/lib/makestate/ |
H A D | ld_file.c | 63 char *newstr; in prepend_str() local 70 if (!(newstr = malloc(strlen(str) + 1))) { in prepend_str() 75 new->str = strcpy(newstr, str); in prepend_str()
|
/illumos-gate/usr/src/cmd/sendmail/util/ |
H A D | mailcompat.c | 47 static char *newstr(); 95 homedir = newstr(pw->pw_dir); 204 return newstr(start); 246 newstr(s) in newstr() function
|
H A D | vacation.c | 99 static char *newstr(char *); 223 homedir = newstr(pw->pw_dir); 533 Subject = newstr(buf+9); 536 EncodedSubject = newstr(Subject); 537 decoded_subject = newstr(Subject); 965 newstr(s) in newstr() function
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/profile/ |
H A D | prof_get.c | 72 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()
|
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | str.c | 520 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 …]
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | getdgrp.c | 268 char *newstr; /* Space for the dgroup name */ in addtodgrplist() local 291 if (newstr = malloc(strlen(dgrp->name)+1)) { in addtodgrplist() 294 newnode->name = strcpy(newstr, dgrp->name); in addtodgrplist()
|
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | AudioHdrParse.cc | 44 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()
|
/illumos-gate/usr/src/tools/scripts/ |
H A D | validate_flg.pl | 51 my $newstr = $ENV{$1}; 52 $str =~ s/\$$1/$newstr/g;
|
/illumos-gate/usr/src/cmd/file/ |
H A D | magicutils.c | 116 char *newstr; in getstr() local 121 newstr = (char *)malloc((strlen(p) + 1) * sizeof (char)); in getstr() 122 if (newstr == NULL) { in getstr() 129 s = newstr; in getstr() 187 return (newstr); in getstr()
|
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | util.c | 936 char *newstr; in hal_util_strdup_valid_utf8() local 942 newstr = g_strdup (str); in hal_util_strdup_valid_utf8() 944 while (!g_utf8_validate (newstr, -1, (const char **) &endchar)) { in hal_util_strdup_valid_utf8() 949 if (strlen(newstr) == count) in hal_util_strdup_valid_utf8() 952 return newstr; in hal_util_strdup_valid_utf8()
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | ldap_val.c | 1688 char *newstr; in splitMappingItem() local 1709 newstr = strdup(&str[s]); in splitMappingItem() 1715 if (newstr == 0 || newval == 0) { in splitMappingItem() 1721 sfree(newstr); in splitMappingItem() 1724 val->val[val->numVals].value = newstr; in splitMappingItem() 1725 val->val[val->numVals].length = strlen(newstr) + 1; in splitMappingItem() 2267 char *newstr = 0; in extractMappingItem() local 2280 str = scanMappingFormat(f, n, nf, str, &newstr, 0, 0); in extractMappingItem() 2291 if (str == 0 || *str != '\0' || newstr == 0 || in extractMappingItem() 2300 sfree(newstr); in extractMappingItem() [all …]
|