On Tue, Oct 13, 2009 at 09:10:58PM +0200, Bernhard Reutner-Fischer wrote:
>On Tue, Oct 13, 2009 at 09:02:10PM +0200, Denys Vlasenko wrote:
>>I propose using:
>>
>> static unsigned resolv_conf_mtime;
>>...
>> if (resolv_conf_mtime != (unsigned)sb.st_mtime) < 0) {
>s/) < 0//
>>
>>I use "unsigned" in order to minimize statics - time_t is a long, and
>>there is no need to use 8 bytes on amd64 etc where 4 is quite enough.
>>
>>We can explicitly use uint32_t there if you are concerned we'll
Let's just store the least significant few bits (ought to be enough for
seeing if mtime changed).
thanks :)
>>ever get arches with sizeof(int) > 4.
>
>I'd go for time_t, just because i'm paranoid.
>
>May i ask you to apply such a thing (with whatever type you think is
>safe)? TIA!
>cheers,
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc