Home
last modified time | relevance | path

Searched refs:cbuf (Results 1 – 25 of 74) sorted by path

123

/illumos-gate/usr/src/cmd/audio/audioctl/
H A Daudioctl.c394 char cbuf[COL_MAX_SZ + 1]; in print_control_line() local
419 (void) snprintf(cbuf, sizeof (cbuf), "%- *s", in print_control_line()
423 (void) strlcat(line, cbuf, sizeof (line)); in print_control_line()
/illumos-gate/usr/src/cmd/audio/utilities/
H A Dhdr_misc.c216 char cbuf[AUDIO_MAX_ENCODE_INFO]; in audio_enc_to_str() local
236 (void) sprintf(cbuf, "%u-channel", hdrp->channels); break; in audio_enc_to_str()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dsys-solaris.c2898 struct strbuf cbuf, dbuf; local
2920 cbuf.buf = (caddr_t)&req;
2921 cbuf.len = sizeof (req);
2923 if (putmsg(ipfd, &cbuf, NULL, 0) == -1) {
2929 cbuf.buf = (caddr_t)&ack;
2930 cbuf.maxlen = sizeof (ack);
2934 r = getmsg(ipfd, &cbuf, &dbuf, &flags);
2940 if (cbuf.len < sizeof (struct T_optmgmt_ack) ||
2945 cbuf.len, ack.ack.PRIM_type);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dtable.c1342 struct strbuf cbuf, dbuf; in sync_kern() local
1377 cbuf.buf = (caddr_t)&req; in sync_kern()
1378 cbuf.len = sizeof (req); in sync_kern()
1380 if (putmsg(ipfd, &cbuf, NULL, 0) == -1) { in sync_kern()
1386 cbuf.buf = (caddr_t)&ack; in sync_kern()
1387 cbuf.maxlen = sizeof (ack); in sync_kern()
1391 r = getmsg(ipfd, &cbuf, &dbuf, &flags); in sync_kern()
1397 if (cbuf.len < sizeof (struct T_optmgmt_ack) || in sync_kern()
1402 "flags=%d optlen=%d", cbuf.len, ack.ack.PRIM_type, in sync_kern()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/
H A Dipsecconf.c155 static char cbuf[CBUF_LEN]; /* Command buffer */ variable
3766 (void) strcpy(cbuf + cbuf_offset, ibuf); in parse_action()
3897 (void) strcpy(cbuf + cbuf_offset, ibuf); in parse_pattern_or_prop()
5126 *(cbuf + cbuf_offset) = '\0'; in print_cmd_buf()
5130 warnx(gettext("Malformed command (fatal):\n%s"), cbuf); in print_cmd_buf()
5136 warnx(gettext("Duplicate policy entry (ignored):\n%s"), cbuf); in print_cmd_buf()
5138 if (fprintf(fp, "%s", cbuf) == -1) { in print_cmd_buf()
5444 if (*(cbuf + cbuf_offset - 1) == '\n') { in ipsec_conf_add()
/illumos-gate/usr/src/cmd/connstat/
H A Dconnstat_mib.c55 struct strbuf cbuf, dbuf; in conn_walk() local
68 bzero(&cbuf, sizeof (cbuf)); in conn_walk()
80 cbuf.buf = (caddr_t)&req; in conn_walk()
81 cbuf.len = sizeof (req); in conn_walk()
83 if (putmsg(fd, &cbuf, NULL, 0) == -1) { in conn_walk()
95 cbuf.buf = (caddr_t)&ack; in conn_walk()
96 cbuf.maxlen = sizeof (ack); in conn_walk()
105 r = getmsg(fd, &cbuf, NULL, &flags); in conn_walk()
118 if (cbuf.len < sizeof (struct T_optmgmt_ack) || in conn_walk()
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/
H A Dri_init.c841 char cbuf[CFGA_INFO_LEN]; in cpu_rcm_qpass() local
844 assert(sscanf(cfga_ldata->ap_info, CPU_INFO_FMT, &cbuf, &speed, in cpu_rcm_qpass()
847 for (cpustr = (char *)strtok_r(cbuf, CPUID_SEP, &lasts); in cpu_rcm_qpass()
/illumos-gate/usr/src/cmd/fmt/
H A Dfmt.c171 char cbuf[BUFSIZ]; /* stores wchar_t string as char string */ in fmt() local
249 wcstombs(cbuf, cp, (BUFSIZ - 1)); in fmt()
250 if (is_headline(cbuf) == B_TRUE) { in fmt()
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dsmfcfg.c283 fs_smf_get_prop(smf_fstype_t fstype, char *prop_name, char *cbuf, in fs_smf_get_prop() argument
351 len = scf_value_get_astring(val, cbuf, *bufsz); in fs_smf_get_prop()
364 length = snprintf(cbuf, *bufsz, "%lld", valint); in fs_smf_get_prop()
377 length = snprintf(cbuf, *bufsz, "%s", "true"); in fs_smf_get_prop()
379 length = snprintf(cbuf, *bufsz, "%s", "false"); in fs_smf_get_prop()
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Didmapd.c538 char cbuf[CBUFSIZ]; in idmapdlog() local
546 ctime_r(&ts, cbuf, sizeof (cbuf))); in idmapdlog()
/illumos-gate/usr/src/cmd/mail/
H A Dgendeliv.c36 char buf[1024], cbuf[256], ybuf[10]; local
174 cbuf[0] = '\0';
177 getcomment(hptr->value, cbuf);
181 thissys, name, cbuf, buf);
190 ((p == (char *)NULL) ? cbuf : ""));
230 fprintf(outfile, "En-Route-To: %s %s\n", name, cbuf);
/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_promif.c328 char *cbuf = buf; in kmdb_prom_read() local
332 if (cbuf[i] == '\r') in kmdb_prom_read()
333 cbuf[i] = '\n'; in kmdb_prom_read()
/illumos-gate/usr/src/cmd/mdb/common/libstand/
H A Dctime.c157 __posix_asctime_r(const struct tm *t, char *cbuf) in __posix_asctime_r() argument
169 cp = cbuf; in __posix_asctime_r()
173 cp = cbuf; in __posix_asctime_r()
197 return (cbuf); in __posix_asctime_r()
205 asctime_r(const struct tm *t, char *cbuf, int buflen) in asctime_r() argument
211 return (__posix_asctime_r(t, cbuf)); in asctime_r()
224 static char cbuf[CBUFSIZ]; in asctime() local
226 return (asctime_r(t, cbuf, CBUFSIZ)); in asctime()
/illumos-gate/usr/src/cmd/more/
H A Dmore.c1610 char cbuf; in ttyin() local
1667 cbuf = ch; in ttyin()
1669 write (2, &cbuf, 1); in ttyin()
1743 char cbuf; in show() local
1750 cbuf = ch; in show()
1751 write (2, &cbuf, 1); in show()
/illumos-gate/usr/src/cmd/nscd/
H A Dcache.c1217 copy_result(void *rbuf, void *cbuf) in copy_result() argument
1220 nss_pheader_t *cphdr = (nss_pheader_t *)cbuf; in copy_result()
/illumos-gate/usr/src/cmd/oawk/
H A Dawk.lx.l53 wchar_t cbuf[CBUFLEN]; variable
185 <str>\" { wchar_t *s; BEGIN A; cbuf[clen]=0; s = tostring(cbuf);
186 cbuf[clen] = ' '; cbuf[++clen] = 0;
190 <str>"\\\"" { cbuf[clen++]='"'; }
191 <str>"\\"n { cbuf[clen++]='\n'; }
192 <chc>"\\"n { cbuf[clen++]='\n'; }
193 <str>"\\"t { cbuf[clen++]='\t'; }
194 <chc>"\\"t { cbuf[clen++]='\t'; }
195 <str>"\\"b { cbuf[clen++]='\b'; }
196 <chc>"\\"b { cbuf[clen++]='\b'; }
[all …]
/illumos-gate/usr/src/cmd/picl/plugins/common/devtree/
H A Dpicldevtree.h138 uint32_t cbuf:1; member
/illumos-gate/usr/src/cmd/prtconf/
H A Dpdevinfo.c948 uchar_t *cbuf = NULL; in walk() local
959 error = nvlist_lookup_byte_array(nvl, "@child", &cbuf, &csize); in walk()
960 if ((error == ENOENT) || (cbuf == NULL)) in walk()
963 if (error || nvlist_unpack((char *)cbuf, csize, &cnvl, 0)) in walk()
/illumos-gate/usr/src/cmd/refer/
H A Dmkey3.c23 static char cbuf[COMNUM*9]; variable
49 cbp = cbuf; in cominit()
/illumos-gate/usr/src/cmd/rpcsvc/
H A Drusers.c533 char *cbuf; in putline_2() local
559 cbuf = (char *)ctime(&up->ut_time); in putline_2()
560 (void) printf(" %.12s ", cbuf+4); in putline_2()
576 char *cbuf; in putline_3() local
585 cbuf = (char *)ctime((time_t *)&rup->ut_time); in putline_3()
586 (void) printf(" %.12s ", cbuf+4); in putline_3()
/illumos-gate/usr/src/cmd/savecore/
H A Dsavecore.c534 char *cbuf = Zalloc(pagesize); in CopyPages() local
554 Fread(cbuf, csize, in); in CopyPages()
555 Fwrite(cbuf, csize, out); in CopyPages()
/illumos-gate/usr/src/cmd/sendmail/src/
H A Ddeliver.c1334 char cbuf[MAXPATHLEN]; local
2534 expand(m->m_rootdir, cbuf, sizeof(cbuf), e);
2537 cbuf);
2538 if (chroot(cbuf) < 0)
2541 cbuf);
2671 expand(p, cbuf, sizeof(cbuf), e);
2676 cbuf);
2677 if (cbuf[0] != '\0' &&
2678 chdir(cbuf) >= 0)
H A Dmap.c914 char cbuf[];
921 cbuf[0] = '\0';
934 if (cbuf[0] == '\0' ||
937 (void) sm_strlcpy(cbuf, p, cbuflen);
950 if (found && strchr(cbuf, '.') == NULL)
958 p = &cbuf[i];
2809 char cbuf[MAXNAME]; local
2863 if (!extract_canonname(nbuf, NULL, host_record, cbuf, sizeof(cbuf)))
2869 if (sm_strlcpy(name, cbuf, hbsize) >= hbsize)
5893 char cbuf[MAXNAME + 1]; local
[all …]
H A Dparseaddr.c1469 char cbuf[MAXKEY]; local
1574 cataddr(key_rvp, NULL, cbuf, sizeof(cbuf),
1577 argvect[0] = cbuf;
1578 replac = map_lookup(map, cbuf, argvect, &rstat, e);
1585 cataddr(default_rvp, NULL, cbuf, sizeof(cbuf),
1587 replac = cbuf;
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_syslog.c37 char cbuf[CBUFSIZ]; in smb_svc_log() local
51 ctime_r(&ts, cbuf, sizeof (cbuf))); in smb_svc_log()

123