/freebsd/sbin/nvmecontrol/modules/samsung/ |
H A D | samsung.c | 69 char cbuf[UINT128_DIG + 1]; in print_samsung_extended_smart() local 136 uint128_to_str(to128(temp->luw), cbuf, sizeof(cbuf))); in print_samsung_extended_smart() 138 uint128_to_str(to128(temp->lnw), cbuf, sizeof(cbuf))); in print_samsung_extended_smart() 140 uint128_to_str(to128(temp->lur), cbuf, sizeof(cbuf))); in print_samsung_extended_smart() 150 uint128_to_str(to128(temp->poh), cbuf, sizeof(cbuf))); in print_samsung_extended_smart() 152 uint128_to_str(to128(temp->npoc), cbuf, sizeof(cbuf))); in print_samsung_extended_smart() 154 uint128_to_str(to128(temp->spoc), cbuf, sizeof(cbuf))); in print_samsung_extended_smart()
|
/freebsd/sys/netgraph/ |
H A D | ng_parse.c | 107 const u_char *data, int *off, char *cbuf, int cbuflen, 157 const u_char *data, char *cbuf, int cbuflen) in ng_unparse() argument 161 return INVOKE(type, unparse)(type, data, &off, cbuf, cbuflen); in ng_unparse() 191 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_struct_unparse() argument 193 return ng_unparse_composite(type, data, off, cbuf, cbuflen, CT_STRUCT); in ng_struct_unparse() 246 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_fixedarray_unparse() argument 249 data, off, cbuf, cbuflen, CT_FIXEDARRAY); in ng_fixedarray_unparse() 294 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_array_unparse() argument 296 return ng_unparse_composite(type, data, off, cbuf, cbuflen, CT_ARRAY); in ng_array_unparse() 352 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_int8_unparse() argument [all …]
|
/freebsd/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/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) { 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 …]
|
H A D | ftpcmd.c | 255 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/usr.bin/tip/libacu/ |
H A D | biz22.c | 56 char cbuf[40]; in biz_dialer() local 68 (void)strlcpy(cbuf, "\02.\r", sizeof cbuf); in biz_dialer() 69 cbuf[1] = *mod; in biz_dialer() 70 if (cmd(cbuf)) { in biz_dialer() 74 (void)snprintf(cbuf, sizeof(cbuf), "\02D%s\r", num); in biz_dialer() 75 write(FD, cbuf, strlen(cbuf)); in biz_dialer()
|
/freebsd/contrib/ntp/libntp/ |
H A D | dolfptoa.c | 21 u_char cbuf[24]; in dolfptoa() 32 ZERO(cbuf); in dolfptoa() 40 cp = cpend = cpdec = &cbuf[10]; in dolfptoa() 41 for (dec = (int)(cp - cbuf); dec > 0 && fpi != 0; dec--) { in dolfptoa() 62 if ((size_t)dec > sizeof(cbuf) - (cpend - cbuf)) in dolfptoa() 63 dec = (int)(sizeof(cbuf) - (cpend - cbuf)); in dolfptoa() 96 for (dec = (int)(tp - cbuf); carry && dec > 0; dec--) { in dolfptoa() 109 * We've now got the fraction in cbuf[], wit in dolfptoa() 23 u_char cbuf[24]; dolfptoa() local [all...] |
H A D | dofptoa.c | 21 u_char cbuf[12]; in dofptoa() 34 ZERO(cbuf); in dofptoa() 40 cp = cpend = &cbuf[5]; in dofptoa() 67 cpdec = &cbuf[8]; in dofptoa() 23 u_char cbuf[12]; dofptoa() local
|
/freebsd/sys/dev/ocs_fc/ |
H A D | ocs_utils.c | 442 ocs_cbuf_t *cbuf; in ocs_cbuf_alloc() local 444 cbuf = ocs_malloc(os, sizeof(*cbuf), OCS_M_NOWAIT | OCS_M_ZERO); in ocs_cbuf_alloc() 445 if (cbuf == NULL) { in ocs_cbuf_alloc() 449 cbuf->os = os; in ocs_cbuf_alloc() 450 cbuf->entry_count = entry_count; in ocs_cbuf_alloc() 451 cbuf->pidx = 0; in ocs_cbuf_alloc() 452 cbuf->cidx = 0; in ocs_cbuf_alloc() 454 ocs_lock_init(NULL, &cbuf->cbuf_clock, "cbuf_c:%p", cbuf); in ocs_cbuf_alloc() 455 ocs_lock_init(NULL, &cbuf->cbuf_plock, "cbuf_p:%p", cbuf); in ocs_cbuf_alloc() 456 ocs_sem_init(&cbuf->cbuf_csem, 0, "cbuf:%p", cbuf); in ocs_cbuf_alloc() [all …]
|
/freebsd/libexec/bootpd/ |
H A D | getether.c | 191 struct strbuf cbuf; local 227 cbuf.buf = tmpbuf; 228 cbuf.len = DL_ATTACH_REQ_SIZE; 229 if (putmsg(fd, &cbuf, NULL, 0) < 0) { 234 cbuf.buf = tmpbuf; 235 cbuf.maxlen = sizeof(tmpbuf); 237 if (getmsg(fd, &cbuf, NULL, &flags) < 0) { 269 cbuf.buf = tmpbuf; 270 cbuf.len = DL_BIND_REQ_SIZE; 271 if (putmsg(fd, &cbuf, NULL, 0) < 0) { [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | ddt_zap.c | 125 uchar_t *cbuf; in ddt_zap_lookup() local 137 cbuf = kmem_alloc(csize, KM_SLEEP); in ddt_zap_lookup() 140 DDT_KEY_WORDS, 1, csize, cbuf); in ddt_zap_lookup() 142 ddt_zap_decompress(cbuf, phys, csize, psize); in ddt_zap_lookup() 144 kmem_free(cbuf, csize); in ddt_zap_lookup() 174 uchar_t *cbuf = kmem_alloc(cbuf_size, KM_SLEEP); in ddt_zap_update() local 176 uint64_t csize = ddt_zap_compress(phys, cbuf, psize, cbuf_size); in ddt_zap_update() 179 DDT_KEY_WORDS, 1, csize, cbuf, tx); in ddt_zap_update() 181 kmem_free(cbuf, cbuf_size); in ddt_zap_update() 221 uchar_t *cbuf = kmem_alloc(csize, KM_SLEEP); in ddt_zap_walk() local [all …]
|
/freebsd/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() [all...] |
/freebsd/libexec/ftpd/ |
H A D | ftpcmd.y | 74 char cbuf[512]; variable 1276 n = get_line(cbuf, sizeof(cbuf)-1, stdin); 1287 if (strncasecmp(cbuf, "PASS", 4) != 0) 1288 setproctitle("%s: %s", proctitle, cbuf); 1290 if ((cp = strchr(cbuf, '\r'))) { 1294 if ((cp = strpbrk(cbuf, " \n"))) 1295 cpos = cp - cbuf; 1298 c = cbuf[cpos]; 1299 cbuf[cpos] = '\0'; 1300 upper(cbuf); [all …]
|
/freebsd/stand/libofw/ |
H A D | ofw_console.c | 71 char cbuf; in ofw_cons_putchar() local 74 cbuf = '\r'; in ofw_cons_putchar() 75 OF_write(stdout, &cbuf, 1); in ofw_cons_putchar() 78 cbuf = c; in ofw_cons_putchar() 79 OF_write(stdout, &cbuf, 1); in ofw_cons_putchar()
|
/freebsd/contrib/less/ |
H A D | command.c | 241 constant char *cbuf; 245 cbuf = get_cmdbuf(); in exec_mca() local 246 if (cbuf == NULL) in exec_mca() 253 multi_search(cbuf, (int) number, 0); in exec_mca() 258 set_filter_pattern(cbuf, search_type); in exec_mca() 265 while (*cbuf == '+' || *cbuf == ' ') in exec_mca() 266 cbuf++; in exec_mca() 269 if (*cbuf == '\0') in exec_mca() 272 every_first_cmd = save(cbuf); in exec_mca() 1218 char *cbuf; commands() local [all...] |
/freebsd/sbin/nvmecontrol/ |
H A D | logpage.c | 295 char cbuf[UINT128_DIG + 1]; in print_log_error() 325 uint128_to_str(to128(health->data_units_read), cbuf, sizeof(cbuf))); 327 uint128_to_str(to128(health->data_units_written), cbuf, sizeof(cbuf))); in print_log_health() 329 uint128_to_str(to128(health->host_read_commands), cbuf, sizeof(cbuf))); in print_log_health() 331 uint128_to_str(to128(health->host_write_commands), cbuf, sizeof(cbuf))); in print_log_health() 333 uint128_to_str(to128(health->controller_busy_time), cbuf, sizeo in print_log_health() 330 char cbuf[UINT128_DIG + 1]; print_log_health() local [all...] |
/freebsd/sys/kern/ |
H A D | tty_outq.c | 142 char *cbuf = buf; in ttyoutq_read() local 167 memcpy(cbuf, tob->tob_data + cbegin, clen); in ttyoutq_read() 168 cbuf += clen; in ttyoutq_read() 187 return (cbuf - (char *)buf); in ttyoutq_read() 279 const char *cbuf = buf; in ttyoutq_write() local 311 memcpy(tob->tob_data + boff, cbuf, l); in ttyoutq_write() 313 cbuf += l; in ttyoutq_write() 318 return (cbuf - (const char *)buf); in ttyoutq_write()
|
/freebsd/contrib/nvi/vi/ |
H A D | vs_line.c | 48 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/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/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/sys/dev/ofw/ |
H A D | ofw_console.c | 225 char cbuf; in ofw_cnputc() local 228 cbuf = '\r'; in ofw_cnputc() 229 OF_write(stdout, &cbuf, 1); in ofw_cnputc() 232 cbuf = c; in ofw_cnputc() 233 OF_write(stdout, &cbuf, 1); in ofw_cnputc()
|
/freebsd/sys/powerpc/pseries/ |
H A D | phyp_console.c | 362 } cbuf; in uart_phyp_put() local 369 memcpy(&cbuf, buffer, bufsize); in uart_phyp_put() 376 cbuf.bytes[0] = VS_DATA_PACKET_HEADER; in uart_phyp_put() 377 cbuf.bytes[1] = 4 + bufsize; /* total length, max 16 bytes */ in uart_phyp_put() 378 cbuf.bytes[2] = (seqno >> 8) & 0xff; in uart_phyp_put() 379 cbuf.bytes[3] = seqno & 0xff; in uart_phyp_put() 380 memcpy(&cbuf.bytes[4], buffer, bufsize); in uart_phyp_put() 386 err = phyp_hcall(H_PUT_TERM_CHAR, sc->vtermid, len, htobe64(cbuf.u64[0]), in uart_phyp_put() 387 htobe64(cbuf.u64[1])); in uart_phyp_put()
|
/freebsd/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()
|
/freebsd/sys/contrib/openzfs/cmd/zstream/ |
H A D | zstream_recompress.c | 248 char *cbuf, *dbuf; in zstream_do_recompress() local 255 cbuf = dbuf; in zstream_do_recompress() 257 cbuf = safe_calloc(payload_size); in zstream_do_recompress() 260 (void) sfread(cbuf, payload_size, stdin); in zstream_do_recompress() 264 cbuf, payload_size); in zstream_do_recompress() 280 free(cbuf); in zstream_do_recompress()
|