times(2) misbehaviour

Joakim Tjernlund joakim.tjernlund at transmode.se
Tue Feb 2 14:40:30 UTC 2010


>
> On Tue, Feb 2, 2010 at 2:41 PM, Denys Vlasenko <vda.linux at googlemail.com> wrote:
> > Alternative (attached) patch simply removes error return check.
>
> Please find updated patch attached, and its disassembly diff.
>
> Changes: also takes care about time() return value,
> and removes three checks for gettimeofday() failure
> which are impossible (we use on-stack structs
> and thus are 100% sure gettimeofday() won't fail).
>
> There are already many more places where we call
> gettimeofday() in uclibc and don't test for error.

This should work too I think. Only that the gettimeofday()
fixes should be a separate patch.

        Jocke



More information about the uClibc mailing list