Home
last modified time | relevance | path

Searched refs:tmpbuf (Results 26 – 50 of 90) sorted by relevance

1234

/illumos-gate/usr/src/cmd/backup/restore/
H A Dtape.c430 #define tmpbuf tmpspcl.s_spcl in getvol() macro
572 if (readhdr(&tmpbuf) == FAIL) { in getvol()
580 tmpbuf.c_volume); in getvol()
618 if (tmpbuf.c_type == TS_TAPE && (tmpbuf.c_flags & DR_NEWHEADER)) { in getvol()
623 recsread = tmpbuf.c_firstrec; in getvol()
624 tapea = tmpbuf.c_tapea; in getvol()
627 tmpbuf.c_count); in getvol()
628 for (i = tmpbuf.c_count; i > 0; i--) in getvol()
630 } else if (tmpbuf.c_firstrec != 0) { in getvol()
640 i = tapea - tmpbuf.c_tapea - 2; in getvol()
[all …]
/illumos-gate/usr/src/lib/nsswitch/files/common/
H A Dnetmasks.c91 char tmpbuf[NSS_LINELEN_NETMASKS]; local
98 argp->buf.buffer = tmpbuf;
/illumos-gate/usr/src/cmd/dlmgmtd/
H A Ddlmgmt_db.c882 char tmpbuf[MAXLINELEN]; in process_link_line() local
891 (void) strlcpy(tmpbuf, buf, MAXLINELEN); in process_link_line()
896 len = strlen(tmpbuf); in process_link_line()
898 if (!isspace(tmpbuf[i])) in process_link_line()
901 if (i == len || tmpbuf[i] == '#') in process_link_line()
904 str = tmpbuf + i; in process_link_line()
930 if (str >= tmpbuf + len) in process_link_line()
1272 char tmpbuf[MAXLINELEN]; in generate_link_line() local
1273 char *ptr = tmpbuf; in generate_link_line()
1274 char *lim = tmpbuf + MAXLINELEN; in generate_link_line()
[all …]
/illumos-gate/usr/src/cmd/tsol/tnctl/
H A Dtnctl.c137 char tmpbuf[20]; in translate_inet_addr() local
139 (void) snprintf(tmpbuf, sizeof (tmpbuf), "/%d", rhentp->rh_prefix); in translate_inet_addr()
146 if (strlcat(abuf, tmpbuf, abuflen) >= abuflen) in translate_inet_addr()
157 if (strlcat(abuf, tmpbuf, abuflen) >= abuflen) in translate_inet_addr()
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_fsinfo.c160 char *encode_str, *tmpbuf; in smb_com_trans2_query_fs_information() local
214 tmpbuf = smb_srm_zalloc(sr, buflen); in smb_com_trans2_query_fs_information()
215 smb_msgbuf_init(&mb, (uint8_t *)tmpbuf, buflen, in smb_com_trans2_query_fs_information()
221 length, length, tmpbuf); in smb_com_trans2_query_fs_information()
/illumos-gate/usr/src/cmd/cmd-inet/common/
H A Dkcmd.c729 char tmpbuf[KCMD_BUFSIZ + 8]; in deswrite_compat() local
731 unsigned char *len_buf = (unsigned char *)tmpbuf; in deswrite_compat()
734 unsigned char *lenbuf2 = (unsigned char *)tmpbuf; in deswrite_compat()
735 if (len + 4 > sizeof (tmpbuf)) in deswrite_compat()
741 (void) memcpy(tmpbuf + 4, buf, len); in deswrite_compat()
743 inputd.data = (krb5_pointer)tmpbuf; in deswrite_compat()
/illumos-gate/usr/src/cmd/make/bin/
H A Dimplicit.cc228 char *tmpbuf; in find_suffix_rule() local
230 tmpbuf = getmem(source->hash.length + 8); in find_suffix_rule()
232 memset(tmpbuf,0,source->hash.length + 8); in find_suffix_rule()
242 strncpy(tmpbuf, source->string_mb, p - source->string_mb + 1); in find_suffix_rule()
243 strcat(tmpbuf, "s."); in find_suffix_rule()
244 strcat(tmpbuf, p+1); in find_suffix_rule()
246 source->string_mb = tmpbuf; in find_suffix_rule()
249 strcpy(tmpbuf, "s."); in find_suffix_rule()
250 strcat(tmpbuf, source->string_mb); in find_suffix_rule()
252 source->string_mb = tmpbuf; in find_suffix_rule()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetut.c307 struct utmp tmpbuf; in _compat_pututline() local
315 tmpbuf = *entry; in _compat_pututline()
340 if (_compat_getutid(&tmpbuf) == NULL) { in _compat_pututline()
345 if (_compat_getutid(&tmpbuf) == NULL) { in _compat_pututline()
/illumos-gate/usr/src/cmd/stmsboot/
H A Dstmsboot_util.c1438 char *buf, *tmpbuf; in update_vfstab() local
1457 tmpbuf = calloc(1, MAXPATHLEN); in update_vfstab()
1458 if (buf == NULL || tmpbuf == NULL) in update_vfstab()
1516 (void) snprintf(tmpbuf, MAXPATHLEN, in update_vfstab()
1518 (void) fprintf(fdout, "%s", tmpbuf); in update_vfstab()
1537 (void) snprintf(tmpbuf, MAXPATHLEN, in update_vfstab()
1542 (void) snprintf(tmpbuf, MAXPATHLEN, in update_vfstab()
1549 (void) fprintf(fdout, "%s", tmpbuf); in update_vfstab()
1566 free(tmpbuf); in update_vfstab()
/illumos-gate/usr/src/lib/libdladm/common/
H A Dlibdlether.c234 char tmpbuf[DLADM_STRSIZE]; in dladm_ether_spdx2str() local
261 (void) snprintf(tmpbuf, DLADM_STRSIZE, "%d%c", in dladm_ether_spdx2str()
265 (void) strncat(buf, tmpbuf, buflen); in dladm_ether_spdx2str()
H A Dpropfuncs.c69 char tmpbuf[MAXLINELEN]; in generate_prop_line() local
70 char *ptr, *lim = tmpbuf + MAXLINELEN; in generate_prop_line()
82 ptr = tmpbuf; in generate_prop_line()
102 (void) snprintf(buf, MAXLINELEN, "%s\n", tmpbuf); in generate_prop_line()
H A Dsecobj.c325 char tmpbuf[MAXLINELEN]; in process_secobj_set() local
327 char *ptr = tmpbuf, *lim = tmpbuf + MAXLINELEN; in process_secobj_set()
345 (void) snprintf(buf, MAXLINELEN, "%s\n", tmpbuf); in process_secobj_set()
/illumos-gate/usr/src/lib/libipadm/common/
H A Dipadm_persist.c158 char tmpbuf[IPADM_STRSIZE]; in i_ipadm_ip_addhostname2dbline() local
168 (void) snprintf(tmpbuf, sizeof (tmpbuf), ","); in i_ipadm_ip_addhostname2dbline()
170 (void) snprintf(tmpbuf, sizeof (tmpbuf), ",%s", cp); in i_ipadm_ip_addhostname2dbline()
172 return (strlcat(buf, tmpbuf, buflen)); in i_ipadm_ip_addhostname2dbline()
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/
H A Dfme.c511 char tmpbuf[OBBUFNMSZ]; in serialize_observation() local
523 (void) snprintf(tmpbuf, in serialize_observation()
566 char tmpbuf[OBBUFNMSZ]; in destroy_fme_bufs() local
597 char *tmpbuf = alloca(OBBUFNMSZ); in reconstitute_observations() local
609 tmpbuf); in reconstitute_observations()
621 tmpbuf, estr); in reconstitute_observations()
633 tmpbuf, sepptr + 1); in reconstitute_observations()
662 fmep->fmcase, tmpbuf, pkd, pkdlen); in reconstitute_observations()
703 char *tmpbuf = alloca(OBBUFNMSZ); in fme_restart() local
782 tmpbuf); in fme_restart()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/
H A Dppcontrol.c592 p5 = strcpy(pp.tmpbuf, p5); in ppcontrol()
1317 strcpy(pp.tmpbuf, pp.token); in ppcontrol()
1322 assert(directive, pp.tmpbuf, pp.args); in ppcontrol()
1325 assert(directive, pp.tmpbuf, NiL); in ppcontrol()
1395 p = pp.tmpbuf; in ppcontrol()
1397 if (p + strlen(pp.token) < &pp.tmpbuf[MAXTOKEN]) in ppcontrol()
1403 p = *pp.tmpbuf ? pp.tmpbuf : ((directive == WARNING) ? "user warning" : "user error"); in ppcontrol()
1439 else c = sfsprintf(pp.tmpbuf, MAXTOKEN, "%ld", n1); in ppcontrol()
1445 strcpy(mac->value, pp.tmpbuf); in ppcontrol()
1885 hashput(pp.dirtab, pp.tmpbuf, c); in ppcontrol()
[all …]
H A Dppsearch.c197 …variant = sfsprintf(pp.tmpbuf, MAXTOKEN, "%c%s%c%s:archive", VDB_DELIMITER, VDB_MAGIC, VDB_DELIMIT… in search()
198 if (!(s = sfgetr(sp, '\n', 1)) || !strneq(s, pp.tmpbuf, variant)) in search()
755 if ((pp.option & PLUSPLUS) && file != pp.tmpbuf) in ppsearch()
761 sfsprintf(pp.tmpbuf, MAXTOKEN, "%s.h", file); in ppsearch()
762 file = pp.tmpbuf; in ppsearch()
/illumos-gate/usr/src/cmd/mdb/common/modules/fctl/
H A Dfctl.c976 char *tmpbuf; /* for tokenising the buffer */ in fc_dump_logmsg() local
1007 tmpbuf = strchr(tmppkt, '='); in fc_dump_logmsg()
1008 *tmpbuf = 0; in fc_dump_logmsg()
1039 char *tmpbuf; /* for tokenising the buffer */ in fc_dump_old_logmsg() local
1069 tmpbuf = strchr(tmppkt, '='); in fc_dump_old_logmsg()
1070 *tmpbuf = 0; in fc_dump_old_logmsg()
/illumos-gate/usr/src/cmd/syslogd/
H A Dsyslogd.c684 char tmpbuf[MAXLINE+1]; in getkmsg() local
706 tmpbuf[len] = '\0'; in getkmsg()
1735 char tmpbuf[MAXLINE+1]; in writemsg() local
1816 len = copy_frwd(tmpbuf + hlen, sizeof (tmpbuf) - hlen, in writemsg()
1820 mythreadno, tmpbuf); in writemsg()
1828 ud.udata.buf = tmpbuf; in writemsg()
2337 char tmpbuf[MAXLINE + 1]; in logerror_format() local
2351 MAXLINE, tmpbuf); in logerror_format()
2357 tmpbuf, errstr); in logerror_format()
2378 char tmpbuf[MAXLINE + 1]; in logerror_to_console() local
[all …]
/illumos-gate/usr/src/cmd/kbd/
H A Dkbd.c884 char *tmpbuf; in get_layouts() local
897 if ((tmpbuf = strdup(result)) != NULL) { in get_layouts()
898 layout_names[i] = tmpbuf; in get_layouts()
906 if (strcmp(tmpbuf, "US-English") == 0) in get_layouts()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dcmds.c445 char *cp, *tp2, tmpbuf[MAXPATHLEN]; in mput() local
465 tp2 = tmpbuf; in mput()
479 tp = tmpbuf; in mput()
651 char *tp = argv[1], *tp2, tmpbuf[MAXPATHLEN]; in getit() local
662 tp2 = tmpbuf; in getit()
673 argv[2] = tmpbuf; in getit()
702 char *cp, *tp, *tp2, tmpbuf[MAXPATHLEN]; in mget() local
732 strcpy(tmpbuf, cp); in mget()
733 tp = tmpbuf; in mget()
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/
H A Ddid_props.c854 char *tmpbuf; in maybe_di_chars_copy() local
862 if ((tmpbuf = topo_mod_alloc(mp, sz + 1)) == NULL) in maybe_di_chars_copy()
865 bcopy(typbuf, tmpbuf, sz); in maybe_di_chars_copy()
866 tmpbuf[sz] = 0; in maybe_di_chars_copy()
868 tpgrp, tpnm, TOPO_PROP_IMMUTABLE, tmpbuf, &err); in maybe_di_chars_copy()
869 topo_mod_free(mp, tmpbuf, sz + 1); in maybe_di_chars_copy()
/illumos-gate/usr/src/cmd/vi/port/
H A Dex_vget.c688 unsigned char tmpbuf[BUFSIZE]; in macpush() local
700 strcpy(tmpbuf, vmacp); in macpush()
706 strcat(vmacbuf, tmpbuf); in macpush()
/illumos-gate/usr/src/cmd/svc/configd/
H A Dconfigd.c528 regularize_path(const char *dir, const char *base, char *tmpbuf) in regularize_path() argument
535 if (snprintf(tmpbuf, PATH_MAX, "%s/%s", dir, base) >= PATH_MAX) { in regularize_path()
541 return (tmpbuf); in regularize_path()
/illumos-gate/usr/src/lib/pam_modules/krb5/
H A Dkrb5_authenticate.c390 char tmpbuf[PAM_MAX_MSG_SIZE]; in pam_krb5_prompter() local
433 if (snprintf(tmpbuf, sizeof (tmpbuf), "%s: ", in pam_krb5_prompter()
437 msgs[i].msg = strdup(tmpbuf); in pam_krb5_prompter()
/illumos-gate/usr/src/uts/common/io/usb/usba/
H A Dusba.c2804 char *tmpbuf, *str; in usba_get_dev_string_descrs() local
2815 tmpbuf = kmem_zalloc(USB_MAXSTRINGLEN, KM_SLEEP); in usba_get_dev_string_descrs()
2820 usb_dev_descr->iManufacturer, tmpbuf, USB_MAXSTRINGLEN) == in usba_get_dev_string_descrs()
2823 l = strlen(tmpbuf); in usba_get_dev_string_descrs()
2828 (void) strcpy(ud->usb_mfg_str, tmpbuf); in usba_get_dev_string_descrs()
2836 tmpbuf, USB_MAXSTRINGLEN) == in usba_get_dev_string_descrs()
2839 l = strlen(tmpbuf); in usba_get_dev_string_descrs()
2844 (void) strcpy(ud->usb_product_str, tmpbuf); in usba_get_dev_string_descrs()
2855 l = strlen(tmpbuf); in usba_get_dev_string_descrs()
2860 (void) strcpy(ud->usb_serialno_str, tmpbuf); in usba_get_dev_string_descrs()
[all …]

1234