HomeSort by relevance Sort by last modified time
    Searched refs:newstr (Results 1 - 25 of 45) sorted by null

1 2

  /onnv/onnv-gate/usr/src/tools/ctf/common/
memory.c 71 char *newstr; local
73 if ((newstr = strdup(str)) == NULL)
76 return (newstr);
82 char *newstr; local
84 if ((newstr = malloc(len + 1)) == NULL)
87 (void) strncpy(newstr, str, len);
88 newstr[len] = '\0';
90 return (newstr);
  /onnv/onnv-gate/usr/src/lib/libc/port/print/
asprintf.c 40 char *newstr; local
50 if ((newstr = malloc(len)) == NULL)
52 (void) strlcpy(newstr, string, len);
53 *str = newstr;
67 if ((newstr = malloc(len)) == NULL)
69 ret = vsnprintf(newstr, len, format, ap);
71 free(newstr);
75 *str = newstr;
78 free(newstr);
  /onnv/onnv-gate/usr/src/cmd/filebench/common/
utils.c 60 char *newstr; local
62 if ((newstr = malloc(strlen(str) + 1)) == NULL)
64 (void) strcpy(newstr, str);
65 return (newstr);
  /onnv/onnv-gate/usr/src/cmd/ssh/libopenbsd-compat/common/
bsd-asprintf.c 49 char *string, *newstr; local
64 if ((newstr = realloc(string, len)) == NULL) {
70 ret = vsnprintf(newstr, len, fmt, ap2);
72 *str = newstr;
74 free(newstr);
  /onnv/onnv-gate/usr/src/cmd/boot/bootadm/
bootadm_hyper.c 69 char *newstr; local
84 if ((newstr = malloc(len)) == NULL) {
89 (void) snprintf(newstr, len, "%s%s%s", orig, delim, str);
90 return (newstr);
760 char *newstr; local
894 newstr = append_str(kern_bargs, serial_config[0], " ");
896 kern_bargs = newstr;
900 newstr = append_str(kern_bargs, serial_config[1], " ");
902 kern_bargs = newstr;
907 newstr = append_str(kern_bargs, extra_args, " ")
1009 char *newstr; local
    [all...]
  /onnv/onnv-gate/usr/src/cmd/sgs/libconv/common/
config.c 250 char *newstr; local
261 newstr = (char *)curstr;
263 *(newstr++) = *(str++); /* copy up to */
266 *(newstr++) = *(new++); /* add new string and */
267 *(newstr++) = ':'; /* separator */
269 *(newstr++) = *(str++); /* add remaining */
270 *(newstr++) = '\0'; /* string */
  /onnv/onnv-gate/usr/src/cmd/sgs/libldmake/common/
ld_file.c 64 char *newstr; local
72 if (!(newstr = malloc(strlen(str) + 1))) {
77 new->str = strcpy(newstr, str);
  /onnv/onnv-gate/usr/src/lib/krb5/kadm5/srv/
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);
  /onnv/onnv-gate/usr/src/cmd/sendmail/aux/
mailcompat.c 48 static char *newstr();
96 homedir = newstr(pw->pw_dir);
205 return newstr(start);
234 ** NEWSTR -- copy a string
247 newstr(s) function
256 usrerr("newstr: cannot alloc memory");
vacation.c 104 static char *newstr(char *);
228 homedir = newstr(pw->pw_dir);
538 Subject = newstr(buf+9);
541 EncodedSubject = newstr(Subject);
542 decoded_subject = newstr(Subject);
806 usrerr("newstr: cannot alloc memory");
956 * NEWSTR -- copy a string
969 newstr(s) function
978 usrerr("newstr: cannot alloc memory");
  /onnv/onnv-gate/usr/src/lib/libsecdb/common/
secdb.c 311 char *newstr = (char *)NULL; local
318 if ((len > 0) && ((newstr = (char *)malloc(len + 1)) != NULL)) {
319 (void) memset(newstr, 0, len);
321 (void) strcat(newstr, strings[i]);
322 (void) strcat(newstr, ",");
324 newstr[len-1] = NULL;
325 return (newstr);
  /onnv/onnv-gate/usr/src/lib/libadm/common/
getdgrp.c 270 char *newstr; /* Space for the dgroup name */ local
293 if (newstr = malloc(strlen(dgrp->name)+1)) {
296 newnode->name = strcpy(newstr, dgrp->name);
  /onnv/onnv-gate/usr/src/lib/libshell/common/edit/
completion.c 72 * overwrites <str> to common prefix of <str> and <newstr>
73 * if <str> is equal to <newstr> returns <str>+strlen(<str>)+1
76 static char *overlaid(register char *str,register const char *newstr,int nocase)
79 while((c= *(unsigned char *)str) && ((d= *(unsigned char*)newstr++),charcmp(c,d,nocase)))
83 else if(*newstr==0)
  /onnv/onnv-gate/usr/src/cmd/sendmail/src/
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);
    [all...]
map.c 275 map->map_app = newstr(map->map_app);
277 map->map_tapp = newstr(map->map_tapp);
279 map->map_keycolnm = newstr(map->map_keycolnm);
281 map->map_valcolnm = newstr(map->map_valcolnm);
290 map->map_file = newstr(map->map_file);
296 map->map_rebuild = newstr(p);
710 return newstr(buf);
712 return newstr(autodomain);
1164 map->map_file = newstr(p);
1178 map->map_app = newstr(map->map_app)
    [all...]
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...]
  /onnv/onnv-gate/usr/src/lib/gss_mechs/mech_krb5/profile/
prof_get.c 77 char *newstr, **newlist; local
88 newstr = malloc(strlen(str)+1);
89 if (newstr == 0)
91 strcpy(newstr, str);
93 list->list[list->num++] = newstr;
  /onnv/onnv-gate/usr/src/tools/scripts/
validate_flg.pl 51 my $newstr = $ENV{$1};
52 $str =~ s/\$$1/$newstr/g;
  /onnv/onnv-gate/usr/src/cmd/audio/utilities/
AudioHdrParse.cc 44 unsigned char *newstr; local
48 newstr = new unsigned char [strlen(str) + 1];
51 newstr[i] = tolower(oldstr[i]);
53 newstr[i] = oldstr[i];
57 return ((char *)newstr);
  /onnv/onnv-gate/usr/src/cmd/sgs/elfedit/modules/common/
str.c 520 const char *newstr = argstate->argv[1]; local
525 len = strlen(newstr);
538 EC_WORD(ndx), newstr);
545 EC_WORD(ndx), newstr);
552 if ((ndx == 0) && (*newstr != '\0'))
555 EC_WORD(ndx), newstr);
560 if (newstr[i] != oldstr[i])
564 strsec->sec_shndx, strsec->sec_name, ndx, newstr);
596 newstr);
608 strsec->sec_shndx, strsec->sec_name, ndx, len, oldstr, newstr);
    [all...]
  /onnv/onnv-gate/usr/src/cmd/rpcsvc/nis/rpc.nisd/
nis_main.c 1103 char newstr[NIS_MAXNAMELEN]; local
1106 strcpy(newstr, LOG_FILE);
1107 if (rename(oldstr, newstr) == -1) {
1149 char newstr[NIS_MAXNAMELEN]; local
1177 strcpy(newstr, nis_data(NULL));
1178 if (rename(oldstr, newstr) == -1) {
1184 strcpy(newstr, LOG_FILE);
1185 if (rename(oldstr, newstr) == -1) {
    [all...]
  /onnv/onnv-gate/usr/src/cmd/file/
magicutils.c 118 char *newstr; local
123 newstr = (char *)malloc((strlen(p) + 1) * sizeof (char));
124 if (newstr == NULL) {
131 s = newstr;
189 return (newstr);
  /onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/
options.c 209 char *newstr; local
213 newstr = (char *)malloc(strlen(str) + 1);
214 if (newstr != NULL)
215 (void) strcpy(newstr, str);
216 return (newstr);
    [all...]
  /onnv/onnv-gate/usr/src/cmd/hal/hald/
util.c 935 char *newstr; local
941 newstr = g_strdup (str);
943 while (!g_utf8_validate (newstr, -1, (const char **) &endchar)) {
948 if (strlen(newstr) == count)
951 return newstr;
  /onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/
main.c 772 char *newstr = str; local
775 newstr = str + 1;
778 return (newstr);

Completed in 780 milliseconds

1 2