This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: [Patch] Fix libstdc++/11378 (take2) + xsputn optmizations


Paolo Carlini <pcarlini@unitus.it> writes:

> Andreas Jaeger wrote:
>
>>I would not use int64_t - let's use the libc types directly like
>>fpos64_t and off64_t - and then using fsetpos64/fseeko64.
>>
> However, Andreas, please correct me as soon as possible if I'm wrong,
> mixing fseek and read and write (vs fread, fwrite) is not possible. We

You can only do this if you take care to sync streams and file
descriptors with e.g. fclean on GNU systems.

> want non blocking read and write as our low level I/O primitives. Do
> you expect troubles with lseek64?

You can use lseek64 and off64_t, there should be no problem (if lseek
is part of the C library).

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126


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