| /freebsd-12.1/contrib/opie/ |
| H A D | ftpcmd.y | 147 char cbuf[512]; variable 963 if (getline(cbuf, sizeof(cbuf)-1, stdin) == NULL) { 980 c = cbuf[cpos]; 982 upper(cbuf); 984 cbuf[cpos] = c; 1005 c = cbuf[cpos]; 1009 cbuf[cpos] = c; 1073 c = cbuf[cpos]; 1076 cbuf[cpos] = c; 1088 c = cbuf[cpos]; [all …]
|
| /freebsd-12.1/sys/netgraph/ |
| H A D | ng_parse.c | 1450 cbuf += strlen(cbuf); in ng_unparse_composite() 1729 char *cbuf, *p; in ng_get_string_token() local 1739 if (cbuf == NULL) in ng_get_string_token() 1748 return (cbuf); in ng_get_string_token() 1817 char *cbuf; in ng_encode_string() local 1822 if (cbuf == NULL) in ng_encode_string() 1824 cbuf[off++] = '"'; in ng_encode_string() 1829 cbuf[off++] = 't'; in ng_encode_string() 1862 cbuf[off++] = '"'; in ng_encode_string() 1863 cbuf[off] = '\0'; in ng_encode_string() [all …]
|
| /freebsd-12.1/crypto/heimdal/lib/roken/ |
| H A D | net_read.c | 47 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()
|
| H A D | net_write.c | 47 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()
|
| /freebsd-12.1/crypto/heimdal/appl/ftp/ftpd/ |
| H A D | ftpcmd.y | 56 char cbuf[64*1024]; variable 1135 if (ftpd_getline(cbuf, sizeof(cbuf)-1) == NULL) { 1152 c = cbuf[cpos]; 1154 strupr(cbuf); 1156 cbuf[cpos] = c; 1177 c = cbuf[cpos]; 1181 cbuf[cpos] = c; 1248 c = cbuf[cpos]; 1251 cbuf[cpos] = c; 1263 c = cbuf[cpos]; [all …]
|
| H A D | ftpcmd.c | 255 char cbuf[64*1024]; variable 3188 if (ftpd_getline(cbuf, sizeof(cbuf)-1) == NULL) { 3205 c = cbuf[cpos]; 3207 strupr(cbuf); 3209 cbuf[cpos] = c; 3230 c = cbuf[cpos]; 3234 cbuf[cpos] = c; 3301 c = cbuf[cpos]; 3304 cbuf[cpos] = c; 3316 c = cbuf[cpos]; [all …]
|
| /freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
| H A D | ddt_zap.c | 60 uchar_t cbuf[sizeof (dde->dde_phys) + 1]; in ddt_zap_lookup() local 70 ASSERT(csize <= sizeof (cbuf)); in ddt_zap_lookup() 73 DDT_KEY_WORDS, 1, csize, cbuf); in ddt_zap_lookup() 77 ddt_decompress(cbuf, dde->dde_phys, csize, sizeof (dde->dde_phys)); in ddt_zap_lookup() 92 uchar_t cbuf[sizeof (dde->dde_phys) + 1]; in ddt_zap_update() local 95 csize = ddt_compress(dde->dde_phys, cbuf, in ddt_zap_update() 96 sizeof (dde->dde_phys), sizeof (cbuf)); in ddt_zap_update() 99 DDT_KEY_WORDS, 1, csize, cbuf, tx)); in ddt_zap_update() 118 uchar_t cbuf[sizeof (dde->dde_phys) + 1]; in ddt_zap_walk() local 122 DDT_KEY_WORDS, 1, csize, cbuf); in ddt_zap_walk() [all …]
|
| /freebsd-12.1/usr.bin/tip/libacu/ |
| H A D | biz22.c | 66 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.1/contrib/ntp/libntp/ |
| H A D | dolfptoa.c | 23 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()
|
| H A D | dofptoa.c | 23 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.1/sys/dev/ocs_fc/ |
| H A D | ocs_utils.c | 457 ocs_lock_init(NULL, &cbuf->cbuf_clock, "cbuf_c:%p", cbuf); in ocs_cbuf_alloc() 459 ocs_sem_init(&cbuf->cbuf_csem, 0, "cbuf:%p", cbuf); in ocs_cbuf_alloc() 460 ocs_sem_init(&cbuf->cbuf_psem, cbuf->entry_count, "cbuf:%p", cbuf); in ocs_cbuf_alloc() 468 return cbuf; in ocs_cbuf_alloc() 485 ocs_free(cbuf->os, cbuf->array, sizeof(*cbuf->array) * cbuf->entry_count); in ocs_cbuf_free() 489 ocs_free(cbuf->os, cbuf, sizeof(*cbuf)); in ocs_cbuf_free() 510 ret = cbuf->array[cbuf->cidx]; in ocs_cbuf_get() 511 if (unlikely(++cbuf->cidx >= cbuf->entry_count)) { in ocs_cbuf_get() 537 cbuf->array[cbuf->pidx] = elem; in ocs_cbuf_put() 538 if (unlikely(++cbuf->pidx >= cbuf->entry_count)) { in ocs_cbuf_put() [all …]
|
| /freebsd-12.1/libexec/bootpd/ |
| H A D | getether.c | 195 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); 273 cbuf.buf = tmpbuf; 274 cbuf.len = DL_BIND_REQ_SIZE; 275 if (putmsg(fd, &cbuf, NULL, 0) < 0) { 280 cbuf.buf = tmpbuf; [all …]
|
| /freebsd-12.1/contrib/ntp/ntpd/ |
| H A D | refclock_bancomm.c | 489 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.1/libexec/ftpd/ |
| H A D | ftpcmd.y | 83 char cbuf[512]; variable 1285 n = get_line(cbuf, sizeof(cbuf)-1, stdin); 1307 c = cbuf[cpos]; 1309 upper(cbuf); 1311 cbuf[cpos] = c; 1329 c = cbuf[cpos]; 1333 cbuf[cpos] = c; 1395 c = cbuf[cpos]; 1398 cbuf[cpos] = c; 1410 c = cbuf[cpos]; [all …]
|
| /freebsd-12.1/sbin/nvmecontrol/ |
| H A D | logpage.c | 327 char cbuf[UINT128_DIG + 1]; in print_log_health() local 357 uint128_to_str(to128(health->data_units_read), cbuf, sizeof(cbuf))); in print_log_health() 359 uint128_to_str(to128(health->data_units_written), cbuf, sizeof(cbuf))); in print_log_health() 361 uint128_to_str(to128(health->host_read_commands), cbuf, sizeof(cbuf))); in print_log_health() 363 uint128_to_str(to128(health->host_write_commands), cbuf, sizeof(cbuf))); in print_log_health() 365 uint128_to_str(to128(health->controller_busy_time), cbuf, sizeof(cbuf))); in print_log_health() 367 uint128_to_str(to128(health->power_cycles), cbuf, sizeof(cbuf))); in print_log_health() 369 uint128_to_str(to128(health->power_on_hours), cbuf, sizeof(cbuf))); in print_log_health() 371 uint128_to_str(to128(health->unsafe_shutdowns), cbuf, sizeof(cbuf))); in print_log_health() 373 uint128_to_str(to128(health->media_errors), cbuf, sizeof(cbuf))); in print_log_health() [all …]
|
| H A D | identify_ext.c | 51 char cbuf[UINT128_DIG + 1]; in nvme_print_controller() local 190 cbuf, sizeof(cbuf))); in nvme_print_controller() 193 cbuf, sizeof(cbuf))); in nvme_print_controller()
|
| /freebsd-12.1/stand/ofw/libofw/ |
| H A D | ofw_console.c | 75 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.1/contrib/less/ |
| H A D | command.c | 211 char *cbuf; in exec_mca() local 214 cbuf = get_cmdbuf(); in exec_mca() 232 while (*cbuf == '+' || *cbuf == ' ') in exec_mca() 233 cbuf++; in exec_mca() 236 if (*cbuf == '\0') in exec_mca() 246 match_brac(cbuf[0], cbuf[1], 1, (int) number); in exec_mca() 249 match_brac(cbuf[1], cbuf[0], 0, (int) number); in exec_mca() 255 edit_list(cbuf); in exec_mca() 269 if (*cbuf != '!') in exec_mca() 1081 char *cbuf; in commands() local [all …]
|
| /freebsd-12.1/sys/kern/ |
| H A D | tty_outq.c | 145 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.1/contrib/nvi/vi/ |
| H A D | vs_line.c | 52 CHAR_T *cbp, *ecbp, cbuf[128]; in vs_line() local 141 nlen = snprintf((char*)cbuf, in vs_line() 142 sizeof(cbuf), O_NUMBER_FMT, (u_long)smp->lno); in vs_line() 143 (void)gp->scr_addstr(sp, (char*)cbuf, nlen); in vs_line() 340 ecbp = (cbp = cbuf) + SIZE(cbuf) - 1; in vs_line() 411 (void)gp->scr_waddstr(sp, cbuf, cbp - cbuf); \ in vs_line() 412 cbp = cbuf; \ in vs_line() 474 if (cbp > cbuf) in vs_line()
|
| /freebsd-12.1/sys/powerpc/pseries/ |
| H A D | phyp_console.c | 338 } 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.1/crypto/heimdal/lib/krb5/ |
| H A D | net_write.c | 56 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.1/sys/dev/ofw/ |
| H A D | ofw_console.c | 227 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.1/contrib/netbsd-tests/lib/libc/sys/ |
| H A D | t_clock_gettime.c | 162 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.1/contrib/bsnmp/snmpd/ |
| H A D | trans_udp.c | 226 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()
|