3 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
4 * See the copyright notice in the ACK home directory, in the file "Copyright".
6 #define MININT (1 << (sizeof(int) * 8 - 1))
7 #define MAXCHUNK (~MININT) /* Highest count we read(2). */
8 /* Unfortunately, MAXCHUNK is too large with some compilers. Put it in
12 static int maxchunk
= MAXCHUNK
;
15 * We don't have to worry about byte order here.
16 * Just read "cnt" bytes from file-descriptor "fd".
19 rd_bytes(fd
, string
, cnt
)
20 register char *string
;
25 register int n
= cnt
>= maxchunk
? maxchunk
: cnt
;
27 if (read(fd
, string
, n
) != n
)