Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hi Julien,

On Sun, 2011-04-24 at 09:00 -0700, Julien Chaffraix wrote:
following some of my previous changes, here are more change to the way
we use write(2) and read(2).

        Oooh - pretty :-)

The changes are made available under LGPLv3+/MPL.

        Thanks for that - I've pushed them. They need a little more work though
(although they are no worse than the original ;-):

        a) safeWrite needs to check for EINTR as safeRead does.

        b) neither safeRead or safeWrite advance the buffer /
           data pointer when they get a partial read/write - which
           is broken.
                + we should have an unsigned char *ptr for both of
                  those, and add nWritten or nRead to it each time
                  we get a partial chunk read.

        Otherwise this is nice :-) It would be sexy to have someone (when this
is all fixed), to isolate and unify all the temp file creation code that
is used all over the place; not all of it is best practise, and there is
a lot of dangerous duplication.

        Thanks !

                Michael.

-- 
 michael.meeks@novell.com  <><, Pseudo Engineer, itinerant idiot


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.