> >> BusyBox 1.16.1 on a small armv4tl system:
> >> $ time hwclock -w
> >> real 0m 24.34s
> Interesting.
>
> BusyBox v1.17.0.git
>
> armv5teb
> ~ # strace hwclock -w
...
> open("/etc/config/TZ", O_RDONLY) = 4
> read(4, "EST-10\n", 68) = 7
> read(4, "", 61) = 0
> close(4) = 0
> gettimeofday({1271224622, 14271}, NULL) = 0
> nanosleep({0, 984729000}, NULL) = 0
> gettimeofday({1271224623, 8166}, NULL) = 0
> open("/etc/config/TZ", O_RDONLY) = 4
> read(4, "EST-10\n", 68) = 7
> read(4, "", 61) = 0
> close(4) = 0
Interesting indeed, your libc reads /etc/config/TZ every time.
armv5tejl, BusyBox 1.16.1, glibc 2.7:
$ time strace hwclock -w
...
open("/etc/localtime", O_RDONLY) = 4
...
close(4) = 0
munmap(0x4001e000, 4096) = 0
gettimeofday({1271227817, 239812}, NULL) = 0
nanosleep({0, 759956000}, NULL) = 0
gettimeofday({1271227818, 11313}, NULL) = 0
gettimeofday({1271227818, 12228}, NULL) = 0
nanosleep({0, 987508000}, NULL) = 0
gettimeofday({1271227819, 11313}, NULL) = 0
gettimeofday({1271227819, 12228}, NULL) = 0
nanosleep({0, 987476000}, NULL) = 0
gettimeofday({1271227820, 11313}, NULL) = 0
gettimeofday({1271227820, 12223}, NULL) = 0
nanosleep({0, 987449000}, NULL) = 0
gettimeofday({1271227821, 11309}, NULL) = 0
...
real 0m 24.89s
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox