| /dragonfly/sys/netgraph7/netgraph/ |
| HD | 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() 192 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_struct_unparse() argument 194 return ng_unparse_composite(type, data, off, cbuf, cbuflen, CT_STRUCT); in ng_struct_unparse() 247 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_fixedarray_unparse() argument 250 data, off, cbuf, cbuflen, CT_FIXEDARRAY); in ng_fixedarray_unparse() 295 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_array_unparse() argument 297 return ng_unparse_composite(type, data, off, cbuf, cbuflen, CT_ARRAY); in ng_array_unparse() 353 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_int8_unparse() argument [all …]
|
| /dragonfly/sys/netgraph/netgraph/ |
| HD | ng_parse.c | 94 const u_char *data, int *off, char *cbuf, int cbuflen, 128 len = ksnprintf((cbuf), (cbuflen), \ 132 (cbuf) += len; \ 155 const u_char *data, char *cbuf, int cbuflen) in ng_unparse() argument 159 return INVOKE(type, unparse)(type, data, &off, cbuf, cbuflen); in ng_unparse() 190 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_struct_unparse() argument 192 return ng_unparse_composite(type, data, off, cbuf, cbuflen, CT_STRUCT); in ng_struct_unparse() 245 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_fixedarray_unparse() argument 248 data, off, cbuf, cbuflen, CT_FIXEDARRAY); in ng_fixedarray_unparse() 293 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_array_unparse() argument [all …]
|
| /dragonfly/sys/vfs/ntfs/ |
| HD | ntfs_compr.c | 47 ntfs_uncompblock(u_int8_t * buf, u_int8_t * cbuf) in ntfs_uncompblock() argument 55 len = GET_UINT16(cbuf) & 0xFFF; in ntfs_uncompblock() 57 len, len, GET_UINT16(cbuf))); in ntfs_uncompblock() 59 if (!(GET_UINT16(cbuf) & 0x8000)) { in ntfs_uncompblock() 64 memcpy(buf, cbuf + 2, len + 1); in ntfs_uncompblock() 71 ctag = cbuf[cpos++]; in ntfs_uncompblock() 79 boff = -1 - (GET_UINT16(cbuf + cpos) >> dshift); in ntfs_uncompblock() 80 blen = 3 + (GET_UINT16(cbuf + cpos) & lmask); in ntfs_uncompblock() 87 buf[pos++] = cbuf[cpos++]; in ntfs_uncompblock()
|
| /dragonfly/libexec/bootpd/ |
| HD | getether.c | 194 struct strbuf cbuf; local 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, NULL, 0) < 0) { [all …]
|
| /dragonfly/libexec/ftpd/ |
| HD | ftpcmd.y | 99 char cbuf[512]; variable 1307 n = get_line(cbuf, sizeof(cbuf)-1, stdin); 1318 if (strncasecmp(cbuf, "PASS", 4) != 0) 1319 setproctitle("%s: %s", proctitle, cbuf); 1321 if ((cp = strchr(cbuf, '\r'))) { 1325 if ((cp = strpbrk(cbuf, " \n"))) 1326 cpos = cp - cbuf; 1329 c = cbuf[cpos]; 1330 cbuf[cpos] = '\0'; 1331 upper(cbuf); [all …]
|
| /dragonfly/contrib/gcc-8.0/libgomp/ |
| HD | target.c | 217 gomp_coalesce_buf_add (struct gomp_coalesce_buf *cbuf, size_t start, size_t len) in gomp_coalesce_buf_add() argument 221 if (cbuf->chunk_cnt) in gomp_coalesce_buf_add() 223 if (cbuf->chunk_cnt < 0) in gomp_coalesce_buf_add() 225 if (start < cbuf->chunks[2 * cbuf->chunk_cnt - 1]) in gomp_coalesce_buf_add() 227 cbuf->chunk_cnt = -1; in gomp_coalesce_buf_add() 230 if (start < cbuf->chunks[2 * cbuf->chunk_cnt - 1] + MAX_COALESCE_BUF_GAP) in gomp_coalesce_buf_add() 232 cbuf->chunks[2 * cbuf->chunk_cnt - 1] = start + len; in gomp_coalesce_buf_add() 233 cbuf->use_cnt++; in gomp_coalesce_buf_add() 239 if (cbuf->use_cnt == 1) in gomp_coalesce_buf_add() 240 cbuf->chunk_cnt--; in gomp_coalesce_buf_add() [all …]
|
| /dragonfly/contrib/less/ |
| HD | command.c | 239 constant char *cbuf; in exec_mca() local 243 cbuf = get_cmdbuf(); in exec_mca() 244 if (cbuf == NULL) in exec_mca() 251 multi_search(cbuf, (int) number, 0); in exec_mca() 256 set_filter_pattern(cbuf, search_type); in exec_mca() 263 while (*cbuf == '+' || *cbuf == ' ') in exec_mca() 264 cbuf++; in exec_mca() 267 if (*cbuf == '\0') in exec_mca() 270 every_first_cmd = save(cbuf); in exec_mca() 273 toggle_option(curropt, opt_lower, cbuf, optflag); in exec_mca() [all …]
|
| HD | output.c | 519 constant char *cbuf = buf; \ 520 type r = cfuncname(cbuf, &cbuf, radix); \ 521 if (ebuf != NULL) *ebuf = (char *) cbuf; /*{{const-issue}}*/ \
|
| /dragonfly/contrib/nvi2/vi/ |
| HD | 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() 336 ecbp = (cbp = cbuf) + SIZE(cbuf) - 1; in vs_line() 407 (void)gp->scr_waddstr(sp, cbuf, cbp - cbuf); \ in vs_line() 408 cbp = cbuf; \ in vs_line() 470 if (cbp > cbuf) in vs_line()
|
| HD | vs_msg.c | 396 char *cbp, *ecbp, cbuf[128]; in vs_output() local 457 (void)gp->scr_addstr(sp, cbuf, cbp - cbuf); \ in vs_output() 458 cbp = cbuf; \ in vs_output() 460 ecbp = (cbp = cbuf) + sizeof(cbuf) - 1; in vs_output() 473 if (cbp > cbuf) in vs_output()
|
| /dragonfly/gnu/usr.bin/rcs/lib/ |
| HD | rcsbase.h | 355 struct cbuf { struct 369 struct cbuf log; /* log message requested at checkin */ argument 371 struct cbuf ig; /* ignored phrases in admin part */ 372 struct cbuf igtext; /* ignored phrases in deltatext part */ 518 struct cbuf bufremember P((struct buf*,size_t)); 534 struct cbuf cleanlogmsg P((char*,size_t)); 535 struct cbuf getsstdin P((char const*,char const*,char const*,struct buf*)); 577 struct cbuf getphrases P((char const*)); 578 struct cbuf savestring P((struct buf*)); 669 extern struct cbuf Comment; [all …]
|
| HD | rcsgen.c | 231 struct cbuf cb; 265 struct cbuf 272 struct cbuf r; 362 static struct cbuf desclean; 423 struct cbuf 611 struct cbuf s;
|
| /dragonfly/usr.bin/rwho/ |
| HD | rwho.c | 147 char buf[BUFSIZ], cbuf[80]; in main() local 149 strftime(cbuf, sizeof(cbuf), in main() 160 cbuf); in main()
|
| /dragonfly/contrib/tcsh-6/ |
| HD | sh.dol.c | 461 char cbuf[MB_LEN_MAX]; in Dgetdol() local 471 res = force_read(OLDSTD, cbuf + cbp, 1); in Dgetdol() 476 len = normal_mbtowc(&wc, cbuf, cbp); in Dgetdol() 481 wc = (unsigned char)*cbuf | INVALID_BYTE; in Dgetdol() 486 memmove(cbuf, cbuf + len, cbp - len); in Dgetdol() 496 len = normal_mbtowc(&wc, cbuf, cbp); in Dgetdol() 499 wc = (unsigned char)*cbuf | INVALID_BYTE; in Dgetdol() 504 memmove(cbuf, cbuf + len, cbp - len); in Dgetdol()
|
| HD | ed.inputl.c | 750 char cbuf[MB_LEN_MAX]; in GetNextChar() local 786 while ((num_read = xread(SHIN, cbuf + cbp, 1)) == -1) { in GetNextChar() 802 && CurrentKeyMap[(unsigned char)*cbuf] == F_XKEY) { in GetNextChar() 803 *cp = (unsigned char)*cbuf; in GetNextChar() 806 if (normal_mbtowc(cp, cbuf, cbp) == -1) { in GetNextChar() 811 *cp = (unsigned char)*cbuf | INVALID_BYTE; in GetNextChar()
|
| HD | sh.lex.c | 1588 char cbuf[BUFSIZE + 1]; in wide_read() local 1595 assert (nchars <= sizeof(cbuf) / sizeof(*cbuf)); in wide_read() 1603 if (partial + len >= sizeof(cbuf) / sizeof(*cbuf)) in wide_read() 1606 r = xread(fildes, cbuf + partial, len); in wide_read() 1615 tlen = normal_mbtowc(buf + res, cbuf + i, partial - i); in wide_read() 1622 buf[res] = (unsigned char)cbuf[i] | INVALID_BYTE; in wide_read() 1635 memmove(cbuf, cbuf + i, partial - i); in wide_read()
|
| HD | tc.printf.c | 282 char cbuf[MB_LEN_MAX]; in doprnt() local 289 len = one_wctomb(cbuf, *Bp); in doprnt() 291 (*addchar) ((unsigned char)cbuf[pos] | attributes in doprnt()
|
| /dragonfly/crypto/libressl/apps/openssl/ |
| HD | s_client.c | 906 char *cbuf = NULL, *sbuf = NULL, *mbuf = NULL, *pbuf = NULL; in s_client_main() local 945 if (((cbuf = malloc(BUFSIZZ)) == NULL) || in s_client_main() 1435 k = SSL_write(con, &(cbuf[cbuf_off]), in s_client_main() 1602 i = read(fileno(stdin), cbuf, BUFSIZZ / 2); in s_client_main() 1606 if (cbuf[j] == '\n') in s_client_main() 1609 cbuf[j + lf_num] = cbuf[j]; in s_client_main() 1610 if (cbuf[j] == '\n') { in s_client_main() 1613 cbuf[j + lf_num] = '\r'; in s_client_main() 1618 i = read(fileno(stdin), cbuf, BUFSIZZ); in s_client_main() 1621 ((i <= 0) || (cbuf[0] == 'Q'))) { in s_client_main() [all …]
|
| /dragonfly/contrib/libedit/src/ |
| HD | read.c | 281 char cbuf[MB_LEN_MAX]; in read_char() local 287 while ((num_read = read(el->el_infd, cbuf + cbp, (size_t)1)) == -1) { in read_char() 321 switch (mbrtowc(cp, cbuf, cbp, &mbs)) { in read_char() 328 cbuf[0] = cbuf[cbp - 1]; in read_char()
|
| /dragonfly/contrib/binutils-2.27/binutils/ |
| HD | ar.c | 981 char *cbuf = (char *) xmalloc (BUFSIZE); in print_contents() local 1002 nread = bfd_bread (cbuf, tocopy, abfd); in print_contents() 1011 if ((bfd_size_type) fwrite (cbuf, 1, nread, stdout) != nread) in print_contents() 1015 free (cbuf); in print_contents() 1032 char *cbuf = (char *) xmalloc (BUFSIZE); in extract_file() local 1044 free (cbuf); in extract_file() 1080 nread = bfd_bread (cbuf, tocopy, abfd); in extract_file() 1105 if ((bfd_size_type) fwrite (cbuf, 1, nread, ostream) != nread) in extract_file() 1126 free (cbuf); in extract_file()
|
| /dragonfly/usr.sbin/ftp-proxy/ |
| HD | ftp-proxy.c | 65 struct cbuf { struct 77 struct cbuf client; argument 78 struct cbuf server; 81 char cbuf[MAX_LINE]; member 93 void buffer_data(struct session *, struct cbuf *, char *, size_t); 134 buffer_data(struct session *s, struct cbuf *cb, char *buf, size_t len) in buffer_data() 260 buf_avail = sizeof s->cbuf - s->cbuf_valid; in client_read() 261 bread = read(s->client_fd, s->cbuf + s->cbuf_valid, buf_avail); in client_read() 264 while ((n = get_line(s->cbuf, &s->cbuf_valid)) > 0) { in client_read() 573 s->cbuf[0] = '\0'; in init_session()
|
| /dragonfly/usr.sbin/lpr/lpd/ |
| HD | lpd.c | 449 char cbuf[BUFSIZ]; /* command line buffer */ variable 470 cp = cbuf; in doit() 472 if (cp >= &cbuf[sizeof(cbuf) - 1]) in doit() 481 cp = cbuf; in doit() 528 displayq(pp, cbuf[0] == CMD_SHOWQ_LONG); in doit()
|
| /dragonfly/contrib/binutils-2.34/binutils/ |
| HD | ar.c | 1028 char *cbuf = (char *) xmalloc (BUFSIZE); in print_contents() local 1049 nread = bfd_bread (cbuf, tocopy, abfd); in print_contents() 1058 if ((bfd_size_type) fwrite (cbuf, 1, nread, stdout) != nread) in print_contents() 1062 free (cbuf); in print_contents() 1143 char *cbuf = (char *) xmalloc (BUFSIZE); in extract_file() local 1153 nread = bfd_bread (cbuf, tocopy, abfd); in extract_file() 1166 if ((bfd_size_type) fwrite (cbuf, 1, nread, output_file) != nread) in extract_file() 1172 free (cbuf); in extract_file()
|
| /dragonfly/lib/libc/gen/ |
| HD | getcap.c | 191 char *record, *cbuf; in getent() local 256 cbuf = malloc(clen + 1); in getent() 257 memcpy(cbuf, record, clen + 1); in getent() 259 free(cbuf); in getent() 263 *cap = cbuf; in getent()
|
| /dragonfly/sys/dev/sound/pci/ |
| HD | neomagic.c | 71 u_int32_t buftop, pbuf, rbuf, cbuf, acbuf; member 314 nm_wrbuf(sc, sc->cbuf + i, coefficients[ofs + i], 1); in nm_loadcoeff() 315 nm_wr(sc, addr, sc->cbuf, 4); in nm_loadcoeff() 318 nm_wr(sc, addr + 4, sc->cbuf + sz, 4); in nm_loadcoeff() 585 sc->cbuf = sc->buftop - NM_MAX_COEFFICIENT; in nm_init() 586 sc->rbuf = sc->cbuf - NM_BUFFSIZE; in nm_init()
|