Subject: Re: HSM implementation proposal
To: Greg Hudson <ghudson@mit.edu>
From: Jim Wise <jimw@numenor.turner.com>
List: tech-kern
Date: 12/08/1997 17:36:41
-----BEGIN PGP SIGNED MESSAGE-----
On Mon, 8 Dec 1997, Greg Hudson wrote:
> I quoth from read(2):
>
> Upon successful completion, read() and readv() return the number of bytes
> actually read and placed in the buffer. The system guarantees to read
> the number of bytes requested if the descriptor references a normal file
> that has that many bytes left before the end-of-file, but in no other
> case.
>
> It's not at all uncommon to rely on that assumption. A lot of
> programs fstat() a file and then read in st_size bytes with no
> surrounding while loop.
Read will also do a short return if interrupted by a signal after
reading some data unless SA_RESTART has been set.
- --
Jim Wise
jim.wise@turner.com
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv
iQEVAwUBNIx2fhg+dMhCouwfAQGnhQgAisrE/Nv3yeRyVHVfBztGv14oOnO4iLYG
geA5YOIlU8rjzatI6+OCYFSa26wK44Sjla3R9WbwTBK21iqEna03Wnq6VnBytyee
0AAHPA08hIbHSU6rkzPiycJSmT1qswUvGElF3Xi1lb9udS66vUWUZh7sq2EOUvv4
+qPyYgrKtYX+ueBsYtEU1b/PsjfZ6v8m7yYp6+pbd11UbkvZAq/hqhk6uoNa1wfr
Nu9vxqjGTIh6f5U3inM/CYRAlRwyniqP8SeipUiACbRlopb7tJnauEhxwFJcPUl/
KpUAtGDaPOvpx7OByQ+ykxOkyNPLp/K1IokGUP3G5SjWoOFNeb1Ang==
=iSTX
-----END PGP SIGNATURE-----