Searched refs:cbuf (Results 1 - 25 of 81) sorted by relevance

1234

/freebsd-9.3-release/crypto/heimdal/lib/roken/
H A Dnet_read.c52 char *cbuf = (char *)buf; local
58 count = recv (fd, cbuf, rem, 0);
60 count = read (fd, cbuf, rem);
70 cbuf += count;
H A Dnet_write.c52 const char *cbuf = (const char *)buf; local
58 count = send (fd, cbuf, rem, 0);
60 count = write (fd, cbuf, rem);
68 cbuf += count;
/freebsd-9.3-release/sys/boot/ofw/libofw/
H A Dofw_console.c75 char cbuf; local
78 cbuf = '\r';
79 OF_write(stdout, &cbuf, 1);
82 cbuf = c;
83 OF_write(stdout, &cbuf, 1);
/freebsd-9.3-release/sys/fs/ntfs/
H A Dntfs_compr.c46 u_int8_t * cbuf)
54 len = GET_UINT16(cbuf) & 0xFFF;
56 len, len, GET_UINT16(cbuf)));
58 if (!(GET_UINT16(cbuf) & 0x8000)) {
63 memcpy(buf, cbuf + 2, len + 1);
70 ctag = cbuf[cpos++];
78 boff = -1 - (GET_UINT16(cbuf + cpos) >> dshift);
79 blen = 3 + (GET_UINT16(cbuf + cpos) & lmask);
86 buf[pos++] = cbuf[cpos++];
44 ntfs_uncompblock( u_int8_t * buf, u_int8_t * cbuf) argument
/freebsd-9.3-release/usr.bin/tip/libacu/
H A Dbiz22.c64 char cbuf[40]; local
76 (void)strlcpy(cbuf, "\02.\r", sizeof cbuf);
77 cbuf[1] = *mod;
78 if (cmd(cbuf)) {
82 (void)snprintf(cbuf, sizeof(cbuf), "\02D%s\r", num);
83 write(FD, cbuf, strlen(cbuf));
/freebsd-9.3-release/contrib/ntp/libntp/
H A Ddolfptoa.c23 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 Ddofptoa.c23 u_char cbuf[12]; local
36 ZERO(cbuf);
42 cp = cpend = &cbuf[5];
69 cpdec = &cbuf[8];
/freebsd-9.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dddt_zap.c60 uchar_t cbuf[sizeof (dde->dde_phys) + 1]; local
70 ASSERT(csize <= sizeof (cbuf));
73 DDT_KEY_WORDS, 1, csize, cbuf);
77 ddt_decompress(cbuf, dde->dde_phys, csize, sizeof (dde->dde_phys));
92 uchar_t cbuf[sizeof (dde->dde_phys) + 1]; local
95 csize = ddt_compress(dde->dde_phys, cbuf,
96 sizeof (dde->dde_phys), sizeof (cbuf));
99 DDT_KEY_WORDS, 1, csize, cbuf, tx));
118 uchar_t cbuf[sizeof (dde->dde_phys) + 1]; local
122 DDT_KEY_WORDS, 1, csize, cbuf);
[all...]
/freebsd-9.3-release/crypto/heimdal/lib/krb5/
H A Dnet_write.c59 const char *cbuf = (const char *)buf; local
89 count = send (fd, cbuf, rem, 0);
91 count = write (fd, cbuf, rem);
99 cbuf += count;
/freebsd-9.3-release/libexec/bootpd/
H A Dgetether.c198 struct strbuf cbuf;
234 cbuf.buf = tmpbuf;
235 cbuf.len = DL_ATTACH_REQ_SIZE;
236 if (putmsg(fd, &cbuf, NULL, 0) < 0) {
241 cbuf.buf = tmpbuf;
242 cbuf.maxlen = sizeof(tmpbuf);
244 if (getmsg(fd, &cbuf, NULL, &flags) < 0) {
276 cbuf.buf = tmpbuf;
277 cbuf.len = DL_BIND_REQ_SIZE;
278 if (putmsg(fd, &cbuf, NUL
195 struct strbuf cbuf; local
[all...]
/freebsd-9.3-release/sys/netgraph/
H A Dng_parse.c108 const u_char *data, int *off, char *cbuf, int cbuflen,
158 const u_char *data, char *cbuf, int cbuflen)
162 return INVOKE(type, unparse)(type, data, &off, cbuf, cbuflen);
193 const u_char *data, int *off, char *cbuf, int cbuflen)
195 return ng_unparse_composite(type, data, off, cbuf, cbuflen, CT_STRUCT);
248 const u_char *data, int *off, char *cbuf, int cbuflen)
251 data, off, cbuf, cbuflen, CT_FIXEDARRAY);
296 const u_char *data, int *off, char *cbuf, int cbuflen)
298 return ng_unparse_composite(type, data, off, cbuf, cbuflen, CT_ARRAY);
354 const u_char *data, int *off, char *cbuf, in
157 ng_unparse(const struct ng_parse_type *type, const u_char *data, char *cbuf, int cbuflen) argument
192 ng_struct_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen) argument
247 ng_fixedarray_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen) argument
295 ng_array_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen) argument
353 ng_int8_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen) argument
449 ng_int16_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen) argument
548 ng_int32_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen) argument
643 ng_int64_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen) argument
737 ng_string_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen) argument
806 ng_fixedstring_unparse(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen) argument
909 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
1374 ng_unparse_composite(const struct ng_parse_type *type, const u_char *data, int *off, char *cbuf, int cbuflen, const enum comptype ctype) argument
1727 char *cbuf, *p; local
1815 char *cbuf; local
[all...]
/freebsd-9.3-release/contrib/ntp/ntpd/
H A Drefclock_bancomm.c417 char cbuf[7]; local
471 snprintf(cbuf, sizeof(cbuf), "%3.3x",
474 time_vme->day = (unsigned short)atoi(cbuf);
477 snprintf(cbuf, sizeof(cbuf), "%2.2x",
479 time_vme->hr = (unsigned short)atoi(cbuf);
482 snprintf(cbuf, sizeof(cbuf), "%2.2x",
484 time_vme->mn = (unsigned short)atoi(cbuf);
[all...]
/freebsd-9.3-release/crypto/heimdal/appl/ftp/ftpd/
H A Dftpcmd.y56 char cbuf[64*1024];
1153 if (ftpd_getline(cbuf, sizeof(cbuf)-1) == NULL) {
1159 if (strncasecmp(cbuf, "PASS", 4) != 0)
1160 setproctitle("%s: %s", proctitle, cbuf);
1162 if ((cp = strchr(cbuf, '\r'))) {
1166 if ((cp = strpbrk(cbuf, " \n")))
1167 cpos = cp - cbuf;
1170 c = cbuf[cpos];
1171 cbuf[cpo
[all...]
H A Dftpcmd.c255 char cbuf[64*1024]; variable
3210 if (ftpd_getline(cbuf, sizeof(cbuf)-1) == NULL) {
3216 if (strncasecmp(cbuf, "PASS", 4) != 0)
3217 setproctitle("%s: %s", proctitle, cbuf);
3219 if ((cp = strchr(cbuf, '\r'))) {
3223 if ((cp = strpbrk(cbuf, " \n")))
3224 cpos = cp - cbuf;
3227 c = cbuf[cpos];
3228 cbuf[cpo
[all...]
/freebsd-9.3-release/contrib/opie/
H A Dftpcmd.y147 char cbuf[512];
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[cpo
[all...]
/freebsd-9.3-release/usr.bin/yacc/test/
H A Dftp.tab.c65 char cbuf[512]; variable
587 if (getline(cbuf, sizeof(cbuf)-1, stdin) == NULL) {
593 if (strncasecmp(cbuf, "PASS", 4) != NULL)
594 setproctitle("%s: %s", proctitle, cbuf);
596 if ((cp = index(cbuf, '\r'))) {
600 if ((cp = strpbrk(cbuf, " \n")))
601 cpos = cp - cbuf;
604 c = cbuf[cpos];
605 cbuf[cpo
[all...]
H A Dftp.y69 char cbuf[512];
847 if (getline(cbuf, sizeof(cbuf)-1, stdin) == NULL) {
853 if (strncasecmp(cbuf, "PASS", 4) != NULL)
854 setproctitle("%s: %s", proctitle, cbuf);
856 if ((cp = index(cbuf, '\r'))) {
860 if ((cp = strpbrk(cbuf, " \n")))
861 cpos = cp - cbuf;
864 c = cbuf[cpos];
865 cbuf[cpo
[all...]
/freebsd-9.3-release/libexec/ftpd/
H A Dftpcmd.y85 char cbuf[512];
1287 n = getline(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[cpo
[all...]
/freebsd-9.3-release/sys/kern/
H A Dtty_outq.c137 char *cbuf = buf; local
162 memcpy(cbuf, tob->tob_data + cbegin, clen);
163 cbuf += clen;
182 return (cbuf - (char *)buf);
274 const char *cbuf = buf; local
306 memcpy(tob->tob_data + boff, cbuf, l);
308 cbuf += l;
313 return (cbuf - (const char *)buf);
/freebsd-9.3-release/sys/dev/ofw/
H A Dofw_console.c225 char cbuf; local
228 cbuf = '\r';
229 OF_write(stdout, &cbuf, 1);
232 cbuf = c;
233 OF_write(stdout, &cbuf, 1);
H A Dopenfirm.c146 char cbuf; local
149 cbuf = '\r';
150 OF_write(stdout, &cbuf, 1);
153 cbuf = c;
154 OF_write(stdout, &cbuf, 1);
/freebsd-9.3-release/contrib/nvi/vi/
H A Dvs_line.c58 char *p, *cbp, *ecbp, cbuf[128]; local
146 nlen = snprintf(cbuf, sizeof(cbuf),
148 (void)gp->scr_addstr(sp, cbuf, nlen);
339 ecbp = (cbp = cbuf) + sizeof(cbuf) - 1;
407 (void)gp->scr_addstr(sp, cbuf, cbp - cbuf); \
408 cbp = cbuf; \
414 * be larger than cbuf, i
[all...]
/freebsd-9.3-release/sys/powerpc/mambo/
H A Dmambo_console.c181 char cbuf; local
183 cbuf = c;
184 mambocall(MAMBO_CONSOLE_WRITE, &cbuf, 1UL, 1UL);
/freebsd-9.3-release/usr.bin/rwho/
H A Drwho.c161 char buf[BUFSIZ], cbuf[80]; local
164 strftime(cbuf, sizeof(cbuf),
175 cbuf);
/freebsd-9.3-release/contrib/less/
H A Dcommand.c206 register char *cbuf; local
209 cbuf = get_cmdbuf();
215 multi_search(cbuf, (int) number);
220 set_filter_pattern(cbuf, search_type);
227 while (*cbuf == '+' || *cbuf == ' ')
228 cbuf++;
231 if (*cbuf == '\0')
234 every_first_cmd = save(cbuf);
237 toggle_option(curropt, opt_lower, cbuf, optfla
1013 register char *cbuf; local
[all...]

Completed in 153 milliseconds

1234