times(2) misbehaviour

Denys Vlasenko vda.linux at googlemail.com
Tue Feb 2 14:00:08 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.

--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9.patch
Type: application/octet-stream
Size: 4269 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20100202/5ab6c7c6/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9_disasm.diff
Type: application/octet-stream
Size: 9165 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20100202/5ab6c7c6/attachment-0003.obj>


More information about the uClibc mailing list