linux / solaris vs other *nix file handling in sal/osl/unx/file.c
Riccardo Magliocchetti
riccardo.magliocchetti at gmail.com
Tue Jan 1 05:36:17 PST 2013
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.
Googling a bit shows that postgresql discussed the issue in 2003 and at
the time the only unix missing pread was HPUX 10.20
http://archives.postgresql.org/pgsql-patches/2003-02/msg00205.php
Don't know how relevant is HPUX for libreoffice, hope 2013 is not the
year of CDE on desktop :)
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.
For reference this distinction got introduced a bit more than 3 years
ago in b76cb86e
thanks,
riccardo
More information about the LibreOffice
mailing list