linux / solaris vs other *nix file handling in sal/osl/unx/file.c

Riccardo Magliocchetti riccardo.magliocchetti at gmail.com
Wed Jan 2 03:03:16 PST 2013


Il 01/01/2013 14:36, Riccardo Magliocchetti ha scritto:
> Hello,
>
> does anyone know why linux and solaris are using pread / pwrite syscalls
> while other unixes are using read + lseek? The code is at least
> FileHandle_Impl::writeAt which AFAIU is the base for the osl_* file
> functions.
>
[snip]
> If the idea is sound i can cook a patch, but i'd like to have some
> feedback from *BSD / MacOS X people that will compile the new code path.

Patch attached if anyone on these plaforms want to give it a try.

thanks,
riccardo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-sal-use-pread-pwrite-on-every-nix.patch
Type: text/x-diff
Size: 2557 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130102/f6423c7d/attachment.patch>


More information about the LibreOffice mailing list