[PUSHED] Re: linux / solaris vs other *nix file handling in sal/osl/unx/file.c

2013-01-03 Thread Riccardo Magliocchetti
Il 02/01/2013 14:35, Riccardo Magliocchetti ha scritto: Hi, Il 02/01/2013 12:39, Francois Tigeot ha scritto: Hi, On Wed, Jan 02, 2013 at 12:03:16PM +0100, Riccardo Magliocchetti wrote: Il 01/01/2013 14:36, Riccardo Magliocchetti ha scritto: does anyone know why linux and solaris are using

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

2013-01-02 Thread Riccardo Magliocchetti
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

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

2013-01-02 Thread Francois Tigeot
Hi, On Wed, Jan 02, 2013 at 12:03:16PM +0100, Riccardo Magliocchetti wrote: Il 01/01/2013 14:36, Riccardo Magliocchetti ha scritto: does anyone know why linux and solaris are using pread / pwrite syscalls while other unixes are using read + lseek? The code is at least

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

2013-01-02 Thread Riccardo Magliocchetti
Hi, Il 02/01/2013 12:39, Francois Tigeot ha scritto: Hi, On Wed, Jan 02, 2013 at 12:03:16PM +0100, Riccardo Magliocchetti wrote: Il 01/01/2013 14:36, Riccardo Magliocchetti ha scritto: does anyone know why linux and solaris are using pread / pwrite syscalls while other unixes are using read

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

2013-01-01 Thread Riccardo Magliocchetti
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