Home
last modified time | relevance | path

Searched refs:BUFLEN (Results 1 – 14 of 14) sorted by relevance

/freebsd/usr.bin/gzip/
H A Dunbzip2.c45 inbuf = malloc(BUFLEN); in unbzip2()
47 outbuf = malloc(BUFLEN); in unbzip2()
72 n = read(in, inbuf, BUFLEN); in unbzip2()
85 bzs.avail_out = BUFLEN; in unbzip2()
103 if (!tflag && bzs.avail_out != BUFLEN) { in unbzip2()
106 n = write(out, outbuf, BUFLEN - bzs.avail_out); in unbzip2()
H A Dunzstd.c43 ibuf = malloc(BUFLEN); in unzstd()
45 obuf = malloc(BUFLEN); in unzstd()
58 zob.size = BUFLEN; in unzstd()
63 res = read(in, ibuf, BUFLEN); in unzstd()
H A Dgzip.c125 #define BUFLEN (64 * 1024) macro
570 outbufp = malloc(BUFLEN); in gz_compress()
571 inbufp = malloc(BUFLEN); in gz_compress()
587 i = snprintf(outbufp, BUFLEN, "%c%c%c%c%c%c%c%c%c%c%s", in gz_compress()
596 if (i >= BUFLEN) in gz_compress()
603 z.avail_out = BUFLEN - i; in gz_compress()
616 if (write_retry(out, outbufp, BUFLEN) != BUFLEN) { in gz_compress()
622 out_tot += BUFLEN; in gz_compress()
624 z.avail_out = BUFLEN; in gz_compress()
628 in_size = read(in, inbufp, BUFLEN); in gz_compress()
[all …]
/freebsd/share/examples/libusb20/
H A Dbulk.c56 #define BUFLEN 64 macro
61 uint8_t out_buf[BUFLEN];
120 uint8_t in_buf[BUFLEN]; in doit()
133 if ((rv = libusb20_tr_bulk_intr_sync(xfr_in, in_buf, BUFLEN, &rlen, TIMEOUT)) in doit()
202 for (out_len = 0; argc > 0 && out_len < BUFLEN; out_len++, argc--) in main()
215 BUFLEN, optind); in main()
H A Dcontrol.c57 #define BUFLEN 64 macro
64 uint8_t out_buf[BUFLEN];
164 uint8_t in_buf[BUFLEN]; in doit()
167 if ((rv = libusb20_tr_bulk_intr_sync(xfr_intr, in_buf, BUFLEN, &rlen, TIMEOUT)) in doit()
373 for (out_len = 0; argc > 0 && out_len < BUFLEN; out_len++, argc--) in main()
386 BUFLEN, optind); in main()
/freebsd/sys/contrib/zlib/test/
H A Dminigzip.c135 #define BUFLEN 16384 macro
214 unsigned char out[BUFLEN]; in gzwrite()
223 strm->avail_out = BUFLEN; in gzwrite()
225 fwrite(out, 1, BUFLEN - strm->avail_out, gz->file); in gzwrite()
263 unsigned char out[BUFLEN]; in gzclose()
273 strm->avail_out = BUFLEN; in gzclose()
275 fwrite(out, 1, BUFLEN - strm->avail_out, gz->file); in gzclose()
342 local char buf[BUFLEN]; in gz_compress()
370 local char buf[BUFLEN]; in gz_uncompress()
/freebsd/bin/sh/
H A Dmknodes.c48 #define BUFLEN 100 /* size of character buffers */ macro
122 char name[BUFLEN]; in parsenode()
123 char tag[BUFLEN]; in parsenode()
152 char name[BUFLEN]; in parsefield()
153 char type[BUFLEN]; in parsefield()
154 char decl[2 * BUFLEN]; in parsefield()
414 if (p - line > BUFLEN) in readline()
/freebsd/sys/contrib/zstd/zlibWrapper/examples/
H A Dminigzip.c140 #define BUFLEN 16384 macro
247 unsigned char out[BUFLEN];
256 strm->avail_out = BUFLEN;
258 fwrite(out, 1, BUFLEN - strm->avail_out, gz->file);
306 unsigned char out[BUFLEN];
316 strm->avail_out = BUFLEN;
318 fwrite(out, 1, BUFLEN - strm->avail_out, gz->file);
371 local char buf[BUFLEN];
439 local char buf[BUFLEN];
/freebsd/libexec/bootpd/tools/bootptest/
H A Dbootptest.c75 #define BUFLEN 1024 macro
166 sndbuf = malloc(BUFLEN); in main()
167 rcvbuf = malloc(BUFLEN); in main()
356 n = BUFLEN - sizeof(*bp) + BP_VEND_LEN; in main()
409 n = recvfrom(s, rcvbuf, BUFLEN, 0, in main()
/freebsd/lib/libdevctl/
H A Ddevctl.c168 #define BUFLEN 1024 macro
189 req.dr_buffer.length = BUFLEN; in devctl_getpath()
197 if (errno == ENAMETOOLONG && req.dr_buffer.length != BUFLEN) { in devctl_getpath()
/freebsd/contrib/tcp_wrappers/
H A Dtcpdchk.c60 #define BUFLEN 2048 macro
197 char sv_list[BUFLEN]; /* becomes list of daemons */ in parse_table()
269 char buf[BUFLEN]; in print_list()
289 char buf[BUFLEN]; in check_daemon_list()
316 char buf[BUFLEN]; in check_client_list()
H A Dhosts_access.c102 #define BUFLEN 2048 macro
147 char sv_list[BUFLEN]; /* becomes list of daemons */ in table_match()
H A DCHANGES66 routine: lines longer than BUFLEN characters would be garbled.
/freebsd/tests/sys/netlink/
H A Dnetlink_socket.c69 #define BUFLEN 1000 macro
74 char buf[BUFLEN]; in fullsocket()
122 char buf[BUFLEN]; in ATF_TC_BODY()
139 ATF_REQUIRE(recv(fd, buf, BUFLEN, 0) > sizeof(hdr)); in ATF_TC_BODY()