/illumos-gate/usr/src/cmd/grpck/ |
H A D | grpck.c | 109 char *buf_off, *tmpbuf; local 166 tmpbuf = realloc(buf, (bufsize + MYBUFSIZE)); 167 if (tmpbuf == NULL) { 172 buf = tmpbuf; 193 if ((tmpbuf = strdup(buf)) == NULL) { 197 tmpbuf[buf_len - 1] = ','; 199 if ((tmpbuf = malloc(buf_len + 2)) == NULL) { 203 (void) strcpy(tmpbuf, buf); 204 tmpbuf[buf_len++] = ','; 205 tmpbuf[buf_le [all...] |
/illumos-gate/usr/src/cmd/tsol/tnctl/ |
H A D | tnctl.c | 137 char tmpbuf[20]; local 139 (void) snprintf(tmpbuf, sizeof (tmpbuf), "/%d", rhentp->rh_prefix); 146 if (strlcat(abuf, tmpbuf, abuflen) >= abuflen) 157 if (strlcat(abuf, tmpbuf, abuflen) >= abuflen)
|
/illumos-gate/usr/src/stand/lib/inet/ |
H A D | mac.c | 86 char tmpbuf[MAXNAMELEN]; local 99 (void) snprintf(tmpbuf, sizeof (tmpbuf), 101 prom_panic(tmpbuf); 121 bzero(tmpbuf, sizeof (tmpbuf)); 127 len < sizeof (tmpbuf)) { 128 (void) prom_getprop(node, netiftype, tmpbuf); 130 len < sizeof (tmpbuf)) { 131 (void) prom_getprop(node, chosen_net, tmpbuf); [all...] |
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | libdlether.c | 207 char tmpbuf[DLADM_STRSIZE]; local 234 (void) snprintf(tmpbuf, DLADM_STRSIZE, "%d%c", 238 (void) strncat(buf, tmpbuf, buflen);
|
H A D | propfuncs.c | 69 char tmpbuf[MAXLINELEN]; local 70 char *ptr, *lim = tmpbuf + MAXLINELEN; 82 ptr = tmpbuf; 102 (void) snprintf(buf, MAXLINELEN, "%s\n", tmpbuf);
|
H A D | secobj.c | 326 char tmpbuf[MAXLINELEN]; local 328 char *ptr = tmpbuf, *lim = tmpbuf + MAXLINELEN; 346 (void) snprintf(buf, MAXLINELEN, "%s\n", tmpbuf);
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_fsinfo.c | 160 char *encode_str, *tmpbuf; local 214 tmpbuf = smb_srm_zalloc(sr, buflen); 215 smb_msgbuf_init(&mb, (uint8_t *)tmpbuf, buflen, 221 length, length, tmpbuf);
|
/illumos-gate/usr/src/lib/pam_modules/krb5/ |
H A D | krb5_authenticate.c | 390 char tmpbuf[PAM_MAX_MSG_SIZE]; local 433 if (snprintf(tmpbuf, sizeof (tmpbuf), "%s: ", 437 msgs[i].msg = strdup(tmpbuf);
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | str_conv.c | 302 char tmpbuf[MAX_CHARS_FOR_INT_TYPE(int) * 4 + 8]; 311 memset (tmpbuf, 0, sizeof (tmpbuf)); 321 if (tmpbuf[sizeof(tmpbuf)-1] != 0) 325 if (strlen (tmpbuf) > buflen) 328 strncpy (buffer, tmpbuf, buflen); 300 char tmpbuf[MAX_CHARS_FOR_INT_TYPE(int) * 4 + 8]; local
|
/illumos-gate/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/ |
H A D | NS.c | 163 char tmpbuf[BUFSIZ]; local 167 while (fgets(tmpbuf, BUFSIZ - 1, 170 strlen(tmpbuf)) > BUFSIZ - 1) { 173 (void) strcat(glob_stderr, tmpbuf);
|
/illumos-gate/usr/src/cmd/csplit/ |
H A D | csplit.c | 58 char tmpbuf[BUFSIZ]; /* Temporary buffer for stdin */ variable 137 while (fread(tmpbuf, 1, BUFSIZ, stdin) != 0) { 138 if (fwrite(tmpbuf, 1, BUFSIZ, infile) == 0) 154 (void) memset(tmpbuf, '\0', sizeof (tmpbuf));
|
/illumos-gate/usr/src/cmd/mdb/common/modules/fctl/ |
H A D | fctl.c | 973 char *tmpbuf; /* for tokenising the buffer */ local 1004 tmpbuf = strchr(tmppkt, '='); 1005 *tmpbuf = 0; 1036 char *tmpbuf; /* for tokenising the buffer */ local 1066 tmpbuf = strchr(tmppkt, '='); 1067 *tmpbuf = 0;
|
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_subr2.c | 216 char tmpbuf[256]; local 225 * Build the search string, either in tmpbuf or 226 * in allocated memory if larger than tmpbuf. 232 if (rplen < sizeof (tmpbuf)) { 233 /* use tmpbuf */ 235 rpath = tmpbuf;
|
/illumos-gate/usr/src/cmd/make/bin/ |
H A D | implicit.cc | 226 char *tmpbuf; local 228 tmpbuf = getmem(source->hash.length + 8); 230 memset(tmpbuf,0,source->hash.length + 8); 240 strncpy(tmpbuf, source->string_mb, p - source->string_mb + 1); 241 strcat(tmpbuf, "s."); 242 strcat(tmpbuf, p+1); 244 source->string_mb = tmpbuf; 247 strcpy(tmpbuf, "s."); 248 strcat(tmpbuf, source->string_mb); 250 source->string_mb = tmpbuf; [all...] |
/illumos-gate/usr/src/lib/libipadm/common/ |
H A D | ipadm_persist.c | 145 char tmpbuf[IPADM_STRSIZE]; local 155 (void) snprintf(tmpbuf, sizeof (tmpbuf), ","); 157 (void) snprintf(tmpbuf, sizeof (tmpbuf), ",%s", cp); 159 return (strlcat(buf, tmpbuf, buflen));
|
/illumos-gate/usr/src/cmd/cmd-inet/common/ |
H A D | kcmd.c | 722 char tmpbuf[KCMD_BUFSIZ + 8]; local 724 unsigned char *len_buf = (unsigned char *)tmpbuf; 727 unsigned char *lenbuf2 = (unsigned char *)tmpbuf; 728 if (len + 4 > sizeof (tmpbuf)) 734 (void) memcpy(tmpbuf + 4, buf, len); 736 inputd.data = (krb5_pointer)tmpbuf;
|
/illumos-gate/usr/src/cmd/kbd/ |
H A D | kbd.c | 825 char *tmpbuf; local 838 if ((tmpbuf = strdup(result)) != NULL) { 839 layout_names[i] = tmpbuf; 847 if (strcmp(tmpbuf, "US-English") == 0)
|
/illumos-gate/usr/src/cmd/svc/configd/ |
H A D | configd.c | 527 regularize_path(const char *dir, const char *base, char *tmpbuf) argument 534 if (snprintf(tmpbuf, PATH_MAX, "%s/%s", dir, base) >= PATH_MAX) { 540 return (tmpbuf);
|
/illumos-gate/usr/src/lib/libast/common/port/ |
H A D | astlicense.c | 394 char tmpbuf[COMLINE]; local 402 tmp.end = (tmp.buf = tmp.nxt = tmpbuf) + sizeof(tmpbuf); 646 x = &tmpbuf[sizeof(tmpbuf)];
|
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | getipnodeby.c | 469 char tmpbuf[64]; local 510 (void) memcpy(tmpbuf, addr6, sizeof (*addr6)); 511 tmpbuf[10] = 0xffU; 512 tmpbuf[11] = 0xffU; 513 nssin.arg.nss.host.addr = (const char *)tmpbuf;
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/ |
H A D | did_props.c | 799 char *tmpbuf; local 807 if ((tmpbuf = topo_mod_alloc(mp, sz + 1)) == NULL) 810 bcopy(typbuf, tmpbuf, sz); 811 tmpbuf[sz] = 0; 813 tpgrp, tpnm, TOPO_PROP_IMMUTABLE, tmpbuf, &err); 814 topo_mod_free(mp, tmpbuf, sz + 1);
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | sendto_kdc.c | 135 char tmpbuf[max(NI_MAXHOST + NI_MAXSERV + 30, 200)]; local 145 #define putf(FMT,X) (sprintf(tmpbuf,FMT,X),putstr(tmpbuf)) 163 sprintf(tmpbuf, "%lu/", (unsigned long) kerr); 164 putstr(tmpbuf); 176 if (strerror_r(err, tmpbuf, sizeof(tmpbuf)) == 0) 177 p = tmpbuf; 215 sprintf(tmpbuf, "%ld.%06ld", 217 putstr(tmpbuf); [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/support/ |
H A D | fake-addrinfo.c | 958 char tmpbuf[20]; local 961 sprintf(tmpbuf, "%d.%d.%d.%d", uc[0], uc[1], uc[2], uc[3]); 962 strncpy(host, tmpbuf, hlen);
|
/illumos-gate/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_debug.c | 1054 static char tmpbuf[sizeof local 1075 ascii = tmpbuf;
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | irpmarshall.c | 240 char tmpbuf[24]; local 241 char *tb = &tmpbuf[0]; 262 tb = tmpbuf; 263 if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL || 267 t = strtol(tmpbuf, &tb, 10); 279 tb = tmpbuf; 280 if (getfield(&tb, sizeof tmpbuf, &p, fieldsep) == NULL || 284 t = strtol(tmpbuf, &tb, 10); 304 tb = tmpbuf; 305 if (getfield(&tb, sizeof tmpbuf, 484 char tmpbuf[24]; local 650 char tmpbuf[24]; local 803 char tmpbuf[24]; local 1001 char tmpbuf[24]; local 1387 char tmpbuf[24]; local 1561 char tmpbuf[24]; local [all...] |