Which value will be returned if possible clock_t (aka signed long) range will be overflowed?
Let's assume that I use kernel 2.6 version and arch is x86 (32 bits). sizeof(signed long) = 4 bytes. Max value = 2147483647.
According to man page - here, syscall times() returns the number of clock ticks that have elapsed since an arbitrary point in the past.
In "Notes" section mentioned following: "On Linux, the "arbitrary point in the past" from which the return value of times() is measured has varied across kernel versions. Since Linux 2.6, this point is (2^32/HZ) - 300 seconds before system boot time".
So, I don't understand what value in decimal representation will be start point (suppose HZ = 100). And what return value will be after overflowing.