Home
last modified time | relevance | path

Searched refs:inbuf (Results 1 – 25 of 58) sorted by relevance

123

/dragonfly/usr.bin/msgs/
H A Dmsgs.c352 fgets(inbuf, sizeof inbuf, stdin); in main()
362 fgets(inbuf, sizeof inbuf, stdin); in main()
494 && fgets(inbuf, sizeof inbuf, newmsg) in main()
522 in = inbuf; in main()
592 if (inbuf[0] == '-' || isdigit(inbuf[0])) in main()
633 while (fgets(inbuf, sizeof inbuf, newmsg)) { in prmesg()
724 (void) fgets(inbuf, sizeof inbuf, stdin); in ask()
725 if ((n = strlen(inbuf)) > 0 && inbuf[n - 1] == '\n') in ask()
782 while ((n = fread(inbuf, 1, sizeof inbuf, cpfrom))) in ask()
812 if (fgets(inbuf, sizeof inbuf, infile)) { in gfrsub()
[all …]
/dragonfly/usr.bin/gzip/
H A Dunbzip2.c41 static char *inbuf, *outbuf; in unbzip2() local
43 if (inbuf == NULL) in unbzip2()
44 inbuf = malloc(BUFLEN); in unbzip2()
47 if (inbuf == NULL || outbuf == NULL) in unbzip2()
70 n = read(in, inbuf, BUFLEN); in unbzip2()
75 bzs.next_in = inbuf; in unbzip2()
/dragonfly/games/caesar/
H A Dcaesar.c85 char *inbuf; in main() local
94 if ((inbuf = malloc(LINELENGTH)) == NULL) in main()
104 if ((nread = read(STDIN_FILENO, inbuf, LINELENGTH)) < 0) in main()
107 ch = (unsigned char) inbuf[i]; in main()
138 ch = (unsigned char) inbuf[i]; in main()
143 if ((nread = read(STDIN_FILENO, inbuf, LINELENGTH)) < 0) in main()
/dragonfly/sys/sys/
H A Diconv.h160 int iconv_conv(void *handle, const char **inbuf,
162 int iconv_conv_case(void *handle, const char **inbuf,
164 int iconv_convchr(void *handle, const char **inbuf,
166 int iconv_convchr_case(void *handle, const char **inbuf,
182 int (*conv)(void *handle, const char **inbuf, size_t *inbytesleft,
184 int (*conv_case)(void *handle, const char **inbuf, size_t *inbytesleft,
186 int (*convchr)(void *handle, const char **inbuf, size_t *inbytesleft,
188 int (*convchr_case)(void *handle, const char **inbuf, size_t *inbytesleft,
/dragonfly/usr.bin/iconv/
H A Diconv.c76 char inbuf[INBUFSIZE], outbuf[OUTBUFSIZE], *in, *out; in do_conv() local
88 while ((inbytes = fread(inbuf, 1, INBUFSIZE, fp)) > 0) { in do_conv()
89 in = inbuf; in do_conv()
102 if (errno != EINVAL || in == inbuf) in do_conv()
106 (void)memmove(inbuf, in, inbytes); in do_conv()
107 ret = fread(inbuf + inbytes, 1, in do_conv()
119 in = inbuf; in do_conv()
/dragonfly/sys/netgraph7/deflate/
H A Dng_deflate.c63 u_char inbuf[DEFLATE_BUF_SIZE]; /* input buffer */ member
463 m_copydata(m, 0, inlen, priv->inbuf); in ng_deflate_compress()
468 if (priv->inbuf[0] != 0) { in ng_deflate_compress()
469 priv->cx.next_in = priv->inbuf; in ng_deflate_compress()
549 m_copydata(m, 0, inlen, priv->inbuf); in ng_deflate_decompress()
552 if ((priv->inbuf[0] & 0x01) != 0) { in ng_deflate_decompress()
553 proto = priv->inbuf[0]; in ng_deflate_decompress()
556 proto = ntohs(((uint16_t *)priv->inbuf)[0]); in ng_deflate_decompress()
582 priv->cx.next_in = priv->inbuf + offset; in ng_deflate_decompress()
634 if (priv->inbuf[0] == 0) { in ng_deflate_decompress()
[all …]
/dragonfly/sbin/hammer2/
H A Dhammer2_compression.c44 hammer2_decompress_LZ4(void *inbuf, size_t insize, size_t outsize, in hammer2_decompress_LZ4() argument
53 cinsize = *(const int *)inbuf; in hammer2_decompress_LZ4()
60 result = LZ4_decompress_safe((char *)inbuf + 4, OutBuf, in hammer2_decompress_LZ4()
76 hammer2_decompress_ZLIB(void *inbuf, size_t insize, size_t outsize, in hammer2_decompress_ZLIB() argument
94 strm_decompress.next_in = inbuf; in hammer2_decompress_ZLIB()
/dragonfly/sys/libiconv/
H A Diconv_xlat.c79 iconv_xlat_conv(void *d2p, const char **inbuf, in iconv_xlat_conv() argument
88 if (inbuf == NULL || *inbuf == NULL || outbuf == NULL || *outbuf == NULL) in iconv_xlat_conv()
96 src = *inbuf; in iconv_xlat_conv()
100 *inbuf += n; in iconv_xlat_conv()
H A Diconv.c276 iconv_conv(void *handle, const char **inbuf, in iconv_conv() argument
279 return ICONV_CONVERTER_CONV(handle, inbuf, inbytesleft, outbuf, outbytesleft, 0, 0); in iconv_conv()
283 iconv_conv_case(void *handle, const char **inbuf, in iconv_conv_case() argument
286 return ICONV_CONVERTER_CONV(handle, inbuf, inbytesleft, outbuf, outbytesleft, 0, casetype); in iconv_conv_case()
290 iconv_convchr(void *handle, const char **inbuf, in iconv_convchr() argument
293 return ICONV_CONVERTER_CONV(handle, inbuf, inbytesleft, outbuf, outbytesleft, 1, 0); in iconv_convchr()
297 iconv_convchr_case(void *handle, const char **inbuf, in iconv_convchr_case() argument
300 return ICONV_CONVERTER_CONV(handle, inbuf, inbytesleft, outbuf, outbytesleft, 1, casetype); in iconv_convchr_case()
H A Diconv_xlat16.c110 iconv_xlat16_conv(void *d2p, const char **inbuf, in iconv_xlat16_conv() argument
123 if (inbuf == NULL || *inbuf == NULL || outbuf == NULL || *outbuf == NULL) in iconv_xlat16_conv()
127 src = *inbuf; in iconv_xlat16_conv()
286 *inbuf += in - ir; in iconv_xlat16_conv()
/dragonfly/sys/netgraph7/
H A Dng_pred1.c73 u_char inbuf[PRED1_BUF_SIZE]; /* input buffer */ member
404 m_copydata(m, 0, inlen, priv->inbuf + 2); in ng_pred1_compress()
412 fcs = Crc16(fcs, priv->inbuf + 2, inlen); in ng_pred1_compress()
416 len = Pred1Compress(node, priv->inbuf + 2, priv->outbuf + 2, inlen); in ng_pred1_compress()
426 out = priv->inbuf; in ng_pred1_compress()
475 m_copydata(m, 0, inlen, priv->inbuf); in ng_pred1_decompress()
480 len = priv->inbuf[0] << 8; in ng_pred1_decompress()
481 len += priv->inbuf[1]; in ng_pred1_decompress()
491 len1 = Pred1Decompress(node, priv->inbuf + 2, priv->outbuf, in ng_pred1_decompress()
510 fcs = Crc16(fcs, priv->inbuf + inlen - 2, 2); in ng_pred1_decompress()
[all …]
/dragonfly/contrib/cvs-1.12/src/
H A Dbuffer.c1055 if (inbuf->data != nldata) in buf_copy_lines()
1064 inbuf->data = nldata; in buf_copy_lines()
1075 if (inbuf->data == NULL) in buf_copy_lines()
1076 inbuf->last = NULL; in buf_copy_lines()
1204 while (inbuf->data != start) in buf_copy_counted()
1206 data = inbuf->data; in buf_copy_counted()
1227 inbuf->data = stop; in buf_copy_counted()
1414 char *inbuf, *outbuf; in packetizing_buffer_input() local
1517 inbuf = bytes; in packetizing_buffer_input()
1609 if (!inbuf) in packetizing_buffer_output()
[all …]
/dragonfly/contrib/gcc-4.7/libcpp/
H A Dcharset.c182 c = *inbuf; in one_utf8_to_cppchar()
203 inbuf++; in one_utf8_to_cppchar()
206 cppchar_t n = *inbuf++; in one_utf8_to_cppchar()
223 *inbufp = inbuf; in one_utf8_to_cppchar()
312 const uchar *inbuf; in one_utf32_to_utf8() local
317 inbuf = *inbufp; in one_utf32_to_utf8()
322 s += inbuf[bigend ? 3 : 0]; in one_utf32_to_utf8()
410 s += inbuf[bigend ? 1 : 0]; in one_utf16_to_utf8()
459 const uchar *inbuf; in conversion_loop() local
464 inbuf = from; in conversion_loop()
[all …]
/dragonfly/sys/vfs/isofs/cd9660/
H A Dcd9660_rrip.c113 char *outbuf, *inbuf, *freebuf; in cd9660_rrip_slink() local
138 inbuf = ".."; in cd9660_rrip_slink()
169 wlen = strlen(inbuf); in cd9660_rrip_slink()
174 inbuf = hostname; in cd9660_rrip_slink()
184 inbuf = pcomp->name; in cd9660_rrip_slink()
195 bcopy(inbuf,outbuf,wlen); in cd9660_rrip_slink()
230 char *inbuf; in cd9660_rrip_altname() local
234 inbuf = ".."; in cd9660_rrip_altname()
251 inbuf = hostname; in cd9660_rrip_altname()
261 inbuf = (char *)p + 5; in cd9660_rrip_altname()
[all …]
H A Dcd9660_util.c59 char inbuf[3], outbuf[3], *inp, *outp; in isochar() local
70 inbuf[0]=(char)*(isofn - 1); in isochar()
71 inbuf[1]=(char)*isofn; in isochar()
72 inbuf[2]='\0'; in isochar()
73 inp = inbuf; in isochar()
/dragonfly/lib/libc/inet/
H A Dinet_net_ntop.c159 unsigned char inbuf[16]; in inet_net_ntop_ipv6() local
179 memcpy(inbuf, src, p); in inet_net_ntop_ipv6()
180 memset(inbuf + p, 0, 16 - p); in inet_net_ntop_ipv6()
184 inbuf[p-1] &= m; in inet_net_ntop_ipv6()
187 s = inbuf; in inet_net_ntop_ipv6()
/dragonfly/contrib/gcc-8.0/libcpp/
H A Dcharset.c181 c = *inbuf; in one_utf8_to_cppchar()
202 inbuf++; in one_utf8_to_cppchar()
205 cppchar_t n = *inbuf++; in one_utf8_to_cppchar()
222 *inbufp = inbuf; in one_utf8_to_cppchar()
311 const uchar *inbuf; in one_utf32_to_utf8() local
316 inbuf = *inbufp; in one_utf32_to_utf8()
321 s += inbuf[bigend ? 3 : 0]; in one_utf32_to_utf8()
409 s += inbuf[bigend ? 1 : 0]; in one_utf16_to_utf8()
458 const uchar *inbuf; in conversion_loop() local
463 inbuf = from; in conversion_loop()
[all …]
/dragonfly/contrib/wpa_supplicant/src/eap_peer/
H A Deap_pwd.c39 struct wpabuf *inbuf; member
162 data->inbuf = data->outbuf = NULL; in eap_pwd_init()
196 wpabuf_free(data->inbuf); in eap_pwd_deinit()
962 if (data->inbuf) { in eap_pwd_process()
969 if (data->inbuf == NULL) { in eap_pwd_process()
982 if (!data->inbuf) { in eap_pwd_process()
995 wpabuf_free(data->inbuf); in eap_pwd_process()
996 data->inbuf = NULL; in eap_pwd_process()
1018 pos = wpabuf_head_u8(data->inbuf); in eap_pwd_process()
1046 wpabuf_free(data->inbuf); in eap_pwd_process()
[all …]
/dragonfly/lib/libc/rpc/
H A Dclnt_bcast.c244 char *inbuf = NULL; /* Reply buf */ in rpc_broadcast_exp() local
359 inbuf = malloc(maxbufsize); in rpc_broadcast_exp()
361 if ((inbuf == NULL) || (outbuf == NULL)) { in rpc_broadcast_exp()
537 inlen = _recvfrom(fdlist[i].fd, inbuf, fdlist[i].dsize, in rpc_broadcast_exp()
555 if (*((u_int32_t *)(void *)(inbuf)) == in rpc_broadcast_exp()
565 *((u_int32_t *)(void *)(inbuf)) == in rpc_broadcast_exp()
576 xdrmem_create(xdrs, inbuf, (u_int)inlen, XDR_DECODE); in rpc_broadcast_exp()
628 if (inbuf) in rpc_broadcast_exp()
629 free(inbuf); in rpc_broadcast_exp()
/dragonfly/contrib/wpa_supplicant/src/eap_server/
H A Deap_server_pwd.c37 struct wpabuf *inbuf; member
135 data->inbuf = data->outbuf = NULL; in eap_pwd_init()
162 wpabuf_free(data->inbuf); in eap_pwd_reset()
896 if (data->inbuf) { in eap_pwd_process()
901 data->inbuf = wpabuf_alloc(tot_len); in eap_pwd_process()
902 if (data->inbuf == NULL) { in eap_pwd_process()
915 if (!data->inbuf) { in eap_pwd_process()
925 (int) wpabuf_size(data->inbuf)); in eap_pwd_process()
942 pos = wpabuf_head_u8(data->inbuf); in eap_pwd_process()
963 wpabuf_free(data->inbuf); in eap_pwd_process()
[all …]
/dragonfly/usr.bin/uudecode/
H A Duudecode.c408 char inbuf[MAXPATHLEN + 1]; in base64_decode() local
412 switch (get_line(inbuf, sizeof(inbuf))) { in base64_decode()
419 n = b64_pton(inbuf, outbuf, sizeof(outbuf)); in base64_decode()
425 return (checkend(inbuf, "====", in base64_decode()
/dragonfly/lib/libtelnet/
H A Dkerberos5.c491 krb5_data inbuf; in kerberos5_is() local
493 inbuf.data = (char *)data; in kerberos5_is()
494 inbuf.length = cnt; in kerberos5_is()
527 &inbuf); in kerberos5_is()
621 krb5_data inbuf; in kerberos5_reply() local
624 inbuf.length = cnt; in kerberos5_reply()
625 inbuf.data = (char *)data; in kerberos5_reply()
627 ret = krb5_rd_rep(context, auth_context, &inbuf, &reply); in kerberos5_reply()
/dragonfly/sbin/ifconfig/
H A Difbridge.c120 char *inbuf = NULL, *ninbuf; in bridge_interfaces() local
134 ninbuf = realloc(inbuf, len); in bridge_interfaces()
138 bifc.ifbic_buf = inbuf = ninbuf; in bridge_interfaces()
186 free(inbuf); in bridge_interfaces()
195 char *inbuf = NULL, *ninbuf; in bridge_addresses() local
199 ninbuf = realloc(inbuf, len); in bridge_addresses()
203 ifbac.ifbac_buf = inbuf = ninbuf; in bridge_addresses()
221 free(inbuf); in bridge_addresses()
/dragonfly/sbin/routed/
H A Dinput.c57 } inbuf; in read_rip() local
61 } inbuf; in read_rip() local
67 cc = recvfrom(sock, &inbuf, sizeof(inbuf), 0, in read_rip()
86 if ((cc -= sizeof(inbuf.ifname)) < 0) in read_rip()
88 cc+sizeof(inbuf.ifname)); in read_rip()
96 aifp = ifwithname(inbuf.ifname, 0); in read_rip()
100 IFNAMSIZ, inbuf.ifname); in read_rip()
119 input(&from, sifp, aifp, &inbuf.pbuf.rip, cc); in read_rip()
/dragonfly/games/hunt/hunt/
H A Dlist.c217 char *inbuf = NULL, *ninbuf; in probe_drivers() local
266 if ((ninbuf = realloc(inbuf, inlen)) == NULL) in probe_drivers()
268 ifc.ifc_buf = inbuf = ninbuf; in probe_drivers()
310 free(inbuf); in probe_drivers()

123