Lines Matching +full:min +full:- +full:len
4 /*-
5 * SPDX-License-Identifier: BSD-3-Clause
63 #define min(a,b) ((a < b) ? a : b) macro
246 int len; in goodbye() local
264 ioctl(FD, FIONREAD, &len); in goodbye()
266 printf("goodbye1: len=%d -- ", len); in goodbye()
267 rlen = read(FD, dumbuf, min(len, DUMBUFLEN)); in goodbye()
274 ioctl(FD, FIONREAD, &len); in goodbye()
275 printf("goodbye2: len=%d -- ", len); in goodbye()
276 rlen = read(FD, dumbuf, min(len, DUMBUFLEN)); in goodbye()
291 int len, retry = 0; in hay_sync() local
296 ioctl(FD, FIONREAD, &len); in hay_sync()
297 if (len) { in hay_sync()
298 len = read(FD, dumbuf, min(len, DUMBUFLEN)); in hay_sync()
303 dumbuf[len] = '\0'; in hay_sync()