/freebsd-current/crypto/heimdal/lib/roken/ |
H A D | net_read.c | 47 char *cbuf = (char *)buf; local 52 count = read (fd, cbuf, rem); 61 cbuf += count; 72 char *cbuf = (char *)buf; local 83 count = _read (sock, cbuf, rem); 85 count = recv (sock, cbuf, rem, 0); 93 count = _read (sock, cbuf, rem); 96 count = recv (sock, cbuf, rem, 0); 112 cbuf += count;
|
H A D | net_write.c | 47 const char *cbuf = (const char *)buf; local 52 count = write (fd, cbuf, rem); 59 cbuf += count; 70 const char *cbuf = (const char *)buf; local 80 count = _write (sock, cbuf, rem); 82 count = send (sock, cbuf, rem, 0); 90 count = _write (sock, cbuf, rem); 93 count = send (sock, cbuf, rem, 0); 101 cbuf += count;
|
/freebsd-current/stand/libofw/ |
H A D | ofw_console.c | 71 char cbuf; local 74 cbuf = '\r'; 75 OF_write(stdout, &cbuf, 1); 78 cbuf = c; 79 OF_write(stdout, &cbuf, 1);
|
/freebsd-current/usr.bin/tip/libacu/ |
H A D | biz22.c | 56 char cbuf[40]; local 68 (void)strlcpy(cbuf, "\02.\r", sizeof cbuf); 69 cbuf[1] = *mod; 70 if (cmd(cbuf)) { 74 (void)snprintf(cbuf, sizeof(cbuf), "\02D%s\r", num); 75 write(FD, cbuf, strlen(cbuf));
|
/freebsd-current/sbin/nvmecontrol/modules/samsung/ |
H A D | samsung.c | 69 char cbuf[UINT128_DIG + 1]; local 136 uint128_to_str(to128(temp->luw), cbuf, sizeof(cbuf))); 138 uint128_to_str(to128(temp->lnw), cbuf, sizeof(cbuf))); 140 uint128_to_str(to128(temp->lur), cbuf, sizeof(cbuf))); 150 uint128_to_str(to128(temp->poh), cbuf, sizeof(cbuf))); 152 uint128_to_str(to128(temp->npoc), cbuf, sizeo [all...] |
/freebsd-current/contrib/ntp/libntp/ |
H A D | dolfptoa.c | 23 u_char cbuf[24]; local 34 ZERO(cbuf); 42 cp = cpend = cpdec = &cbuf[10]; 43 for (dec = (int)(cp - cbuf); dec > 0 && fpi != 0; dec--) { 64 if ((size_t)dec > sizeof(cbuf) - (cpend - cbuf)) 65 dec = (int)(sizeof(cbuf) - (cpend - cbuf)); 98 for (dec = (int)(tp - cbuf); carry && dec > 0; dec--) { 111 * We've now got the fraction in cbuf[], wit [all...] |
H A D | dofptoa.c | 23 u_char cbuf[12]; local 36 ZERO(cbuf); 42 cp = cpend = &cbuf[5]; 69 cpdec = &cbuf[8];
|
/freebsd-current/crypto/heimdal/lib/krb5/ |
H A D | net_write.c | 56 const char *cbuf = (const char *)buf; local 85 count = send (fd, cbuf, rem, 0); 101 count = write (fd, cbuf, rem); 112 cbuf += count;
|
/freebsd-current/libexec/bootpd/ |
H A D | getether.c | 194 struct strbuf cbuf; 230 cbuf.buf = tmpbuf; 231 cbuf.len = DL_ATTACH_REQ_SIZE; 232 if (putmsg(fd, &cbuf, NULL, 0) < 0) { 237 cbuf.buf = tmpbuf; 238 cbuf.maxlen = sizeof(tmpbuf); 240 if (getmsg(fd, &cbuf, NULL, &flags) < 0) { 272 cbuf.buf = tmpbuf; 273 cbuf.len = DL_BIND_REQ_SIZE; 274 if (putmsg(fd, &cbuf, NUL 191 struct strbuf cbuf; local [all...] |
/freebsd-current/sys/contrib/openzfs/module/zfs/ |
H A D | ddt_zap.c | 113 uchar_t *cbuf; local 125 cbuf = kmem_alloc(csize, KM_SLEEP); 128 DDT_KEY_WORDS, 1, csize, cbuf); 130 ddt_zap_decompress(cbuf, phys, csize, psize); 132 kmem_free(cbuf, csize); 156 uchar_t *cbuf = kmem_alloc(cbuf_size, KM_SLEEP); local 158 uint64_t csize = ddt_zap_compress(phys, cbuf, psize, cbuf_size); 161 DDT_KEY_WORDS, 1, csize, cbuf, tx); 163 kmem_free(cbuf, cbuf_size); 202 uchar_t *cbuf local [all...] |
/freebsd-current/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) 161 return INVOKE(type, unparse)(type, data, &off, cbuf, cbuflen); 191 const u_char *data, int *off, char *cbuf, int cbuflen) 193 return ng_unparse_composite(type, data, off, cbuf, cbuflen, CT_STRUCT); 246 const u_char *data, int *off, char *cbuf, int cbuflen) 249 data, off, cbuf, cbuflen, CT_FIXEDARRAY); 294 const u_char *data, int *off, char *cbuf, int cbuflen) 296 return ng_unparse_composite(type, data, off, cbuf, cbuflen, CT_ARRAY); 352 const u_char *data, int *off, char *cbuf, in 156 ng_unparse(const struct ng_parse_type *type, const u_char *data, char *cbuf, int cbuflen) argument 190 ng_struct_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen) argument 245 ng_fixedarray_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen) argument 293 ng_array_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen) argument 351 ng_int8_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen) argument 447 ng_int16_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen) argument 546 ng_int32_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen) argument 641 ng_int64_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen) argument 735 ng_string_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen) argument 804 ng_fixedstring_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen) argument 907 ng_sizedstring_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen) argument 973 ng_ipaddr_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen) argument 1043 ng_enaddr_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen) argument 1131 ng_bytearray_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen) argument 1376 ng_unparse_composite(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen, const enum comptype ctype) argument 1729 char *cbuf, *p; local 1817 char *cbuf; local [all...] |
/freebsd-current/crypto/heimdal/appl/ftp/ftpd/ |
H A D | ftpcmd.y | 56 char cbuf[64*1024]; 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[cpo [all...] |
H A D | ftpcmd.c | 255 char cbuf[64*1024]; variable 3191 if (ftpd_getline(cbuf, sizeof(cbuf)-1) == NULL) { 3197 if (strncasecmp(cbuf, "PASS", 4) != 0) 3198 setproctitle("%s: %s", proctitle, cbuf); 3200 if ((cp = strchr(cbuf, '\r'))) { 3204 if ((cp = strpbrk(cbuf, " \n"))) 3205 cpos = cp - cbuf; 3208 c = cbuf[cpos]; 3209 cbuf[cpo [all...] |
/freebsd-current/sys/powerpc/pseries/ |
H A D | phyp_dbg.c | 151 } cbuf; local 153 cbuf.bytes[0] = (unsigned char)c; 157 cbuf.u64, 0);
|
/freebsd-current/contrib/ntp/ntpd/ |
H A D | refclock_bancomm.c | 489 char cbuf[7]; local 543 snprintf(cbuf, sizeof(cbuf), "%3.3x", 546 time_vme->day = (unsigned short)atoi(cbuf); 549 snprintf(cbuf, sizeof(cbuf), "%2.2x", 551 time_vme->hr = (unsigned short)atoi(cbuf); 554 snprintf(cbuf, sizeof(cbuf), "%2.2x", 556 time_vme->mn = (unsigned short)atoi(cbuf); [all...] |
/freebsd-current/sys/dev/ocs_fc/ |
H A D | ocs_utils.c | 420 void **array; /*<< pointer to array of cbuf pointers */ 425 ocs_sem_t cbuf_psem; /*<< cbuf producer counting semaphore */ 426 ocs_sem_t cbuf_csem; /*<< cbuf consumer counting semaphore */ 442 ocs_cbuf_t *cbuf; local 444 cbuf = ocs_malloc(os, sizeof(*cbuf), OCS_M_NOWAIT | OCS_M_ZERO); 445 if (cbuf == NULL) { 449 cbuf->os = os; 450 cbuf->entry_count = entry_count; 451 cbuf 478 ocs_cbuf_free(ocs_cbuf_t *cbuf) argument 501 ocs_cbuf_get(ocs_cbuf_t *cbuf, int32_t timeout_usec) argument 528 ocs_cbuf_put(ocs_cbuf_t *cbuf, void *elem) argument 557 ocs_cbuf_prime(ocs_cbuf_t *cbuf, ocs_array_t *array) argument 856 char *cbuf; local [all...] |
/freebsd-current/libexec/ftpd/ |
H A D | ftpcmd.y | 74 char cbuf[512]; 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[cpo [all...] |
/freebsd-current/sys/kern/ |
H A D | tty_outq.c | 142 char *cbuf = buf; local 167 memcpy(cbuf, tob->tob_data + cbegin, clen); 168 cbuf += clen; 187 return (cbuf - (char *)buf); 279 const char *cbuf = buf; local 311 memcpy(tob->tob_data + boff, cbuf, l); 313 cbuf += l; 318 return (cbuf - (const char *)buf);
|
/freebsd-current/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_clock_gettime.c | 162 char name[128], cbuf[512], ctrbuf[10240]; local 163 size_t cbufsiz = sizeof(cbuf); 169 if (sysctlbyname(TC_HARDWARE, cbuf, &cbufsiz, NULL, 0) != 0) { 176 (void)printf("%s = %s\n", TC_HARDWARE, cbuf); 177 REQUIRE_LIBC(save = strdup(cbuf), NULL);
|
/freebsd-current/sys/dev/ofw/ |
H A D | ofw_console.c | 225 char cbuf; local 228 cbuf = '\r'; 229 OF_write(stdout, &cbuf, 1); 232 cbuf = c; 233 OF_write(stdout, &cbuf, 1);
|
/freebsd-current/contrib/nvi/vi/ |
H A D | vs_line.c | 48 CHAR_T *cbp, *ecbp, cbuf[128]; local 137 nlen = snprintf((char*)cbuf, 138 sizeof(cbuf), O_NUMBER_FMT, (u_long)smp->lno); 139 (void)gp->scr_addstr(sp, (char*)cbuf, nlen); 338 ecbp = (cbp = cbuf) + SIZE(cbuf) - 1; 409 (void)gp->scr_waddstr(sp, cbuf, cbp - cbuf); \ 410 cbp = cbuf; \ 416 * be larger than cbuf, i [all...] |
/freebsd-current/contrib/less/ |
H A D | command.c | 245 char *cbuf; local 248 cbuf = get_cmdbuf(); 249 if (cbuf == NULL) 256 multi_search(cbuf, (int) number, 0); 261 set_filter_pattern(cbuf, search_type); 268 while (*cbuf == '+' || *cbuf == ' ') 269 cbuf++; 272 if (*cbuf == '\0') 275 every_first_cmd = save(cbuf); 1218 char *cbuf; local [all...] |
/freebsd-current/sys/powerpc/mambo/ |
H A D | mambo_console.c | 180 char cbuf; local 182 cbuf = c; 183 mambocall(MAMBO_CONSOLE_WRITE, &cbuf, 1UL, 1UL);
|
/freebsd-current/sys/opencrypto/ |
H A D | ktls.h | 36 void *cbuf; member in struct:ktls_ocf_encrypt_state
|
/freebsd-current/sys/contrib/openzfs/cmd/zstream/ |
H A D | zstream_recompress.c | 260 char *cbuf, *dbuf; local 267 cbuf = dbuf; 269 cbuf = safe_calloc(payload_size); 272 (void) sfread(cbuf, payload_size, stdin); 274 if (0 != dinfo->ci_decompress(cbuf, dbuf, 285 free(cbuf);
|