>> + tv.tv_sec = 0; >> + >> + msec = monotonic_sec(); >> + if (msec < timeout_end) >> + tv.tv_sec = timeout_end - msec; > > Why are we using a 32-bit type for seconds in 2015?
Because we don't expect machines to run for 68 years without reboot. We only ever use a difference between monotonic_sec() taken at two different moments in time. Such a difference overflows 2^31 after 68 years of uptime. _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
