This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: read() cant read files larger than 2.1 gig on a 64 bit system


On Friday 25 December 2009 17:34:18 glide creme wrote:
>  bytes_read = read(fd, data, bytes_expected);
> 
>  if (bytes_read != bytes_expected)
>   err(EX_DATAERR, "Read only %lu of %lu bytes",bytes_read, bytes_expected);

a short read is not an error.  please read the documentation.
-mike


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]