Home
last modified time | relevance | path

Searched refs:BUFSIZE (Results 1 – 5 of 5) sorted by relevance

/busybox-1.35.0/miscutils/
Dflashcp.c35 #define BUFSIZE (4 * 1024) macro
69 RESERVE_CONFIG_UBUFFER(buf, BUFSIZE); in flashcp_main()
70 RESERVE_CONFIG_UBUFFER(buf2, BUFSIZE); in flashcp_main()
133 count = BUFSIZE; in flashcp_main()
141 if (rem < BUFSIZE) in flashcp_main()
146 if (count < BUFSIZE) in flashcp_main()
147 memset((char*)buf + count, 0, BUFSIZE - count); in flashcp_main()
149 ret = full_write(fd_d, buf, BUFSIZE); in flashcp_main()
150 if (ret != BUFSIZE) { in flashcp_main()
/busybox-1.35.0/networking/
Dtelnetd.c149 #define TS_BUF2(ts) (((unsigned char*)(ts + 1)) + BUFSIZE)
156 enum { BUFSIZE = (4 * 1024 - sizeof(struct tsession)) / 2 }; enumerator
187 wr = MIN(BUFSIZE - ts->wridx1, ts->size1); in safe_write_to_pty_decode_iac()
344 if (ts->wridx1 >= BUFSIZE) /* actually == BUFSIZE */ in safe_write_to_pty_decode_iac()
439 struct tsession *ts = xzalloc(sizeof(struct tsession) + BUFSIZE * 2); in make_new_session()
774 if (ts->size1 < BUFSIZE) /* can read from socket */ in telnetd_main()
778 if (ts->size2 < BUFSIZE) /* can read from pty */ in telnetd_main()
848 count = MIN(BUFSIZE - ts->wridx2, ts->size2); in telnetd_main()
856 if (ts->wridx2 >= BUFSIZE) /* actually == BUFSIZE */ in telnetd_main()
868 count = MIN(BUFSIZE - ts->rdidx1, BUFSIZE - ts->size1); in telnetd_main()
[all …]
Dtelnetd.ctrlSQ.patch73 struct tsession *ts = xzalloc(sizeof(struct tsession) + BUFSIZE * 2);
79 /*ts->buf2 = ts->buf1 + BUFSIZE;*/
112 - if (ts->size2 < BUFSIZE) /* can read from pty */
113 + if (ts->size2 < (BUFSIZE - RESERVED)) /* can read from pty */
159 + if (ts->rdidx2 >= BUFSIZE)
169 if (ts->rdidx2 >= BUFSIZE) /* actually == BUFSIZE */
Dinetd.c1574 enum { BUFSIZE = 12*1024 }; /* for jumbo sized packets! :) */ in echo_dg() enumerator
1575 char *buf = xmalloc(BUFSIZE); /* too big for stack */ in echo_dg()
1581 sz = recvfrom(s, buf, BUFSIZE, MSG_DONTWAIT, &lsa->u.sa, &lsa->len); in echo_dg()
/busybox-1.35.0/
DTODO107 Collate BUFSIZ IOBUF_SIZE MY_BUF_SIZE PIPE_PROGRESS_SIZE BUFSIZE PIPESIZE