Home
last modified time | relevance | path

Searched refs:cbuf (Results 1 – 25 of 84) sorted by relevance

1234

/freebsd-12-stable/contrib/opie/
Dftpcmd.y147 char cbuf[512]; variable
219 cbuf, remotehost);
963 if (getline(cbuf, sizeof(cbuf)-1, stdin) == NULL) {
969 if (strncasecmp(cbuf, "PASS", 4) != NULL)
970 setproctitle("%s: %s", proctitle, cbuf);
972 if ((cp = strchr(cbuf, '\r'))) {
976 if ((cp = strpbrk(cbuf, " \n")))
977 cpos = cp - cbuf;
980 c = cbuf[cpos];
981 cbuf[cpos] = '\0';
[all …]
/freebsd-12-stable/sys/netgraph/
Dng_parse.c108 const u_char *data, int *off, char *cbuf, int cbuflen,
158 const u_char *data, char *cbuf, int cbuflen) in ng_unparse() argument
162 return INVOKE(type, unparse)(type, data, &off, cbuf, cbuflen); in ng_unparse()
193 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_struct_unparse() argument
195 return ng_unparse_composite(type, data, off, cbuf, cbuflen, CT_STRUCT); in ng_struct_unparse()
248 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_fixedarray_unparse() argument
251 data, off, cbuf, cbuflen, CT_FIXEDARRAY); in ng_fixedarray_unparse()
296 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_array_unparse() argument
298 return ng_unparse_composite(type, data, off, cbuf, cbuflen, CT_ARRAY); in ng_array_unparse()
354 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_int8_unparse() argument
[all …]
/freebsd-12-stable/crypto/heimdal/lib/roken/
Dnet_write.c47 const char *cbuf = (const char *)buf; in net_write() local
52 count = write (fd, cbuf, rem); in net_write()
59 cbuf += count; in net_write()
70 const char *cbuf = (const char *)buf; in net_write() local
80 count = _write (sock, cbuf, rem); in net_write()
82 count = send (sock, cbuf, rem, 0); in net_write()
90 count = _write (sock, cbuf, rem); in net_write()
93 count = send (sock, cbuf, rem, 0); in net_write()
101 cbuf += count; in net_write()
Dnet_read.c47 char *cbuf = (char *)buf; in net_read() local
52 count = read (fd, cbuf, rem); in net_read()
61 cbuf += count; in net_read()
72 char *cbuf = (char *)buf; in net_read() local
83 count = _read (sock, cbuf, rem); in net_read()
85 count = recv (sock, cbuf, rem, 0); in net_read()
93 count = _read (sock, cbuf, rem); in net_read()
96 count = recv (sock, cbuf, rem, 0); in net_read()
112 cbuf += count; in net_read()
/freebsd-12-stable/crypto/heimdal/appl/ftp/ftpd/
Dftpcmd.y56 char cbuf[64*1024]; variable
1135 if (ftpd_getline(cbuf, sizeof(cbuf)-1) == NULL) {
1141 if (strncasecmp(cbuf, "PASS", 4) != 0)
1142 setproctitle("%s: %s", proctitle, cbuf);
1144 if ((cp = strchr(cbuf, '\r'))) {
1148 if ((cp = strpbrk(cbuf, " \n")))
1149 cpos = cp - cbuf;
1152 c = cbuf[cpos];
1153 cbuf[cpos] = '\0';
1154 strupr(cbuf);
[all …]
Dftpcmd.c255 char cbuf[64*1024]; variable
3188 if (ftpd_getline(cbuf, sizeof(cbuf)-1) == NULL) {
3194 if (strncasecmp(cbuf, "PASS", 4) != 0)
3195 setproctitle("%s: %s", proctitle, cbuf);
3197 if ((cp = strchr(cbuf, '\r'))) {
3201 if ((cp = strpbrk(cbuf, " \n")))
3202 cpos = cp - cbuf;
3205 c = cbuf[cpos];
3206 cbuf[cpos] = '\0';
3207 strupr(cbuf);
[all …]
/freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
Dddt_zap.c61 uchar_t cbuf[sizeof (dde->dde_phys) + 1]; in ddt_zap_lookup() local
71 ASSERT(csize <= sizeof (cbuf)); in ddt_zap_lookup()
74 DDT_KEY_WORDS, 1, csize, cbuf); in ddt_zap_lookup()
78 ddt_decompress(cbuf, dde->dde_phys, csize, sizeof (dde->dde_phys)); in ddt_zap_lookup()
93 uchar_t cbuf[sizeof (dde->dde_phys) + 1]; in ddt_zap_update() local
96 csize = ddt_compress(dde->dde_phys, cbuf, in ddt_zap_update()
97 sizeof (dde->dde_phys), sizeof (cbuf)); in ddt_zap_update()
100 DDT_KEY_WORDS, 1, csize, cbuf, tx)); in ddt_zap_update()
130 uchar_t cbuf[sizeof (dde->dde_phys) + 1]; in ddt_zap_walk() local
134 DDT_KEY_WORDS, 1, csize, cbuf); in ddt_zap_walk()
[all …]
/freebsd-12-stable/usr.bin/tip/libacu/
Dbiz22.c66 char cbuf[40]; in biz_dialer() local
78 (void)strlcpy(cbuf, "\02.\r", sizeof cbuf); in biz_dialer()
79 cbuf[1] = *mod; in biz_dialer()
80 if (cmd(cbuf)) { in biz_dialer()
84 (void)snprintf(cbuf, sizeof(cbuf), "\02D%s\r", num); in biz_dialer()
85 write(FD, cbuf, strlen(cbuf)); in biz_dialer()
/freebsd-12-stable/contrib/ntp/libntp/
Ddolfptoa.c23 u_char cbuf[24]; in dolfptoa() local
34 ZERO(cbuf); in dolfptoa()
42 cp = cpend = cpdec = &cbuf[10]; in dolfptoa()
43 for (dec = (int)(cp - cbuf); dec > 0 && fpi != 0; dec--) { in dolfptoa()
64 if ((size_t)dec > sizeof(cbuf) - (cpend - cbuf)) in dolfptoa()
65 dec = (int)(sizeof(cbuf) - (cpend - cbuf)); in dolfptoa()
98 for (dec = (int)(tp - cbuf); carry && dec > 0; dec--) { in dolfptoa()
Ddofptoa.c23 u_char cbuf[12]; in dofptoa() local
36 ZERO(cbuf); in dofptoa()
42 cp = cpend = &cbuf[5]; in dofptoa()
69 cpdec = &cbuf[8]; in dofptoa()
/freebsd-12-stable/sys/dev/ocs_fc/
Docs_utils.c445 ocs_cbuf_t *cbuf; in ocs_cbuf_alloc() local
447 cbuf = ocs_malloc(os, sizeof(*cbuf), OCS_M_NOWAIT | OCS_M_ZERO); in ocs_cbuf_alloc()
448 if (cbuf == NULL) { in ocs_cbuf_alloc()
452 cbuf->os = os; in ocs_cbuf_alloc()
453 cbuf->entry_count = entry_count; in ocs_cbuf_alloc()
454 cbuf->pidx = 0; in ocs_cbuf_alloc()
455 cbuf->cidx = 0; in ocs_cbuf_alloc()
457 ocs_lock_init(NULL, &cbuf->cbuf_clock, "cbuf_c:%p", cbuf); in ocs_cbuf_alloc()
458 ocs_lock_init(NULL, &cbuf->cbuf_plock, "cbuf_p:%p", cbuf); in ocs_cbuf_alloc()
459 ocs_sem_init(&cbuf->cbuf_csem, 0, "cbuf:%p", cbuf); in ocs_cbuf_alloc()
[all …]
/freebsd-12-stable/libexec/bootpd/
Dgetether.c195 struct strbuf cbuf; local
231 cbuf.buf = tmpbuf;
232 cbuf.len = DL_ATTACH_REQ_SIZE;
233 if (putmsg(fd, &cbuf, NULL, 0) < 0) {
238 cbuf.buf = tmpbuf;
239 cbuf.maxlen = sizeof(tmpbuf);
241 if (getmsg(fd, &cbuf, NULL, &flags) < 0) {
273 cbuf.buf = tmpbuf;
274 cbuf.len = DL_BIND_REQ_SIZE;
275 if (putmsg(fd, &cbuf, NULL, 0) < 0) {
[all …]
/freebsd-12-stable/contrib/ntp/ntpd/
Drefclock_bancomm.c489 char cbuf[7]; in get_datumtime() local
543 snprintf(cbuf, sizeof(cbuf), "%3.3x", in get_datumtime()
546 time_vme->day = (unsigned short)atoi(cbuf); in get_datumtime()
549 snprintf(cbuf, sizeof(cbuf), "%2.2x", in get_datumtime()
551 time_vme->hr = (unsigned short)atoi(cbuf); in get_datumtime()
554 snprintf(cbuf, sizeof(cbuf), "%2.2x", in get_datumtime()
556 time_vme->mn = (unsigned short)atoi(cbuf); in get_datumtime()
559 snprintf(cbuf, sizeof(cbuf), "%2.2x", in get_datumtime()
561 time_vme->sec = (unsigned short)atoi(cbuf); in get_datumtime()
566 snprintf(cbuf, sizeof(cbuf), "%4.4x%2.2x", in get_datumtime()
[all …]
/freebsd-12-stable/libexec/ftpd/
Dftpcmd.y85 char cbuf[512]; variable
1287 n = get_line(cbuf, sizeof(cbuf)-1, stdin);
1298 if (strncasecmp(cbuf, "PASS", 4) != 0)
1299 setproctitle("%s: %s", proctitle, cbuf);
1301 if ((cp = strchr(cbuf, '\r'))) {
1305 if ((cp = strpbrk(cbuf, " \n")))
1306 cpos = cp - cbuf;
1309 c = cbuf[cpos];
1310 cbuf[cpos] = '\0';
1311 upper(cbuf);
[all …]
/freebsd-12-stable/stand/libofw/
Dofw_console.c75 char cbuf; in ofw_cons_putchar() local
78 cbuf = '\r'; in ofw_cons_putchar()
79 OF_write(stdout, &cbuf, 1); in ofw_cons_putchar()
82 cbuf = c; in ofw_cons_putchar()
83 OF_write(stdout, &cbuf, 1); in ofw_cons_putchar()
/freebsd-12-stable/contrib/less/
Dcommand.c234 char *cbuf; in exec_mca() local
237 cbuf = get_cmdbuf(); in exec_mca()
243 multi_search(cbuf, (int) number, 0); in exec_mca()
248 set_filter_pattern(cbuf, search_type); in exec_mca()
255 while (*cbuf == '+' || *cbuf == ' ') in exec_mca()
256 cbuf++; in exec_mca()
259 if (*cbuf == '\0') in exec_mca()
262 every_first_cmd = save(cbuf); in exec_mca()
265 toggle_option(curropt, opt_lower, cbuf, optflag); in exec_mca()
269 match_brac(cbuf[0], cbuf[1], 1, (int) number); in exec_mca()
[all …]
/freebsd-12-stable/sbin/nvmecontrol/
Dlogpage.c332 char cbuf[UINT128_DIG + 1]; in print_log_health() local
362 uint128_to_str(to128(health->data_units_read), cbuf, sizeof(cbuf))); in print_log_health()
364 uint128_to_str(to128(health->data_units_written), cbuf, sizeof(cbuf))); in print_log_health()
366 uint128_to_str(to128(health->host_read_commands), cbuf, sizeof(cbuf))); in print_log_health()
368 uint128_to_str(to128(health->host_write_commands), cbuf, sizeof(cbuf))); in print_log_health()
370 uint128_to_str(to128(health->controller_busy_time), cbuf, sizeof(cbuf))); in print_log_health()
372 uint128_to_str(to128(health->power_cycles), cbuf, sizeof(cbuf))); in print_log_health()
374 uint128_to_str(to128(health->power_on_hours), cbuf, sizeof(cbuf))); in print_log_health()
376 uint128_to_str(to128(health->unsafe_shutdowns), cbuf, sizeof(cbuf))); in print_log_health()
378 uint128_to_str(to128(health->media_errors), cbuf, sizeof(cbuf))); in print_log_health()
[all …]
Didentify_ext.c51 char cbuf[UINT128_DIG + 1]; in nvme_print_controller() local
192 cbuf, sizeof(cbuf))); in nvme_print_controller()
195 cbuf, sizeof(cbuf))); in nvme_print_controller()
/freebsd-12-stable/sys/kern/
Dtty_outq.c145 char *cbuf = buf; in ttyoutq_read() local
170 memcpy(cbuf, tob->tob_data + cbegin, clen); in ttyoutq_read()
171 cbuf += clen; in ttyoutq_read()
190 return (cbuf - (char *)buf); in ttyoutq_read()
282 const char *cbuf = buf; in ttyoutq_write() local
314 memcpy(tob->tob_data + boff, cbuf, l); in ttyoutq_write()
316 cbuf += l; in ttyoutq_write()
321 return (cbuf - (const char *)buf); in ttyoutq_write()
/freebsd-12-stable/contrib/nvi/vi/
Dvs_line.c48 CHAR_T *cbp, *ecbp, cbuf[128]; in vs_line() local
137 nlen = snprintf((char*)cbuf, in vs_line()
138 sizeof(cbuf), O_NUMBER_FMT, (u_long)smp->lno); in vs_line()
139 (void)gp->scr_addstr(sp, (char*)cbuf, nlen); in vs_line()
338 ecbp = (cbp = cbuf) + SIZE(cbuf) - 1; in vs_line()
409 (void)gp->scr_waddstr(sp, cbuf, cbp - cbuf); \ in vs_line()
410 cbp = cbuf; \ in vs_line()
472 if (cbp > cbuf) in vs_line()
/freebsd-12-stable/sys/powerpc/pseries/
Dphyp_console.c338 } cbuf; in uart_phyp_put() local
345 memcpy(&cbuf, buffer, bufsize); in uart_phyp_put()
352 cbuf.bytes[0] = VS_DATA_PACKET_HEADER; in uart_phyp_put()
353 cbuf.bytes[1] = 4 + bufsize; /* total length, max 16 bytes */ in uart_phyp_put()
354 cbuf.bytes[2] = (seqno >> 8) & 0xff; in uart_phyp_put()
355 cbuf.bytes[3] = seqno & 0xff; in uart_phyp_put()
356 memcpy(&cbuf.bytes[4], buffer, bufsize); in uart_phyp_put()
362 err = phyp_hcall(H_PUT_TERM_CHAR, sc->vtermid, len, cbuf.u64[0], in uart_phyp_put()
363 cbuf.u64[1]); in uart_phyp_put()
/freebsd-12-stable/sys/dev/ofw/
Dofw_console.c227 char cbuf; in ofw_cnputc() local
230 cbuf = '\r'; in ofw_cnputc()
231 OF_write(stdout, &cbuf, 1); in ofw_cnputc()
234 cbuf = c; in ofw_cnputc()
235 OF_write(stdout, &cbuf, 1); in ofw_cnputc()
/freebsd-12-stable/contrib/netbsd-tests/lib/libc/sys/
Dt_clock_gettime.c162 char name[128], cbuf[512], ctrbuf[10240]; in ATF_TC_BODY() local
163 size_t cbufsiz = sizeof(cbuf); in ATF_TC_BODY()
169 if (sysctlbyname(TC_HARDWARE, cbuf, &cbufsiz, NULL, 0) != 0) { in ATF_TC_BODY()
176 (void)printf("%s = %s\n", TC_HARDWARE, cbuf); in ATF_TC_BODY()
177 REQUIRE_LIBC(save = strdup(cbuf), NULL); in ATF_TC_BODY()
/freebsd-12-stable/crypto/heimdal/lib/krb5/
Dnet_write.c56 const char *cbuf = (const char *)buf; in krb5_net_write_block() local
85 count = send (fd, cbuf, rem, 0); in krb5_net_write_block()
101 count = write (fd, cbuf, rem); in krb5_net_write_block()
112 cbuf += count; in krb5_net_write_block()
/freebsd-12-stable/contrib/bsnmp/snmpd/
Dtrans_udp.c226 char cbuf[CMSG_SPACE(sizeof(struct in_addr))]; in udp_send() local
239 msg.msg_control = cbuf; in udp_send()
240 msg.msg_controllen = sizeof(cbuf); in udp_send()
274 char cbuf[CMSG_SPACE(SOCKCREDSIZE(CMGROUP_MAX)) + in udp_recv() local
301 memset(cbuf, 0, sizeof(cbuf)); in udp_recv()
302 msg.msg_control = cbuf; in udp_recv()
303 msg.msg_controllen = sizeof(cbuf); in udp_recv()

1234