Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262276AbVENKQL (ORCPT ); Sat, 14 May 2005 06:16:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262355AbVENKQL (ORCPT ); Sat, 14 May 2005 06:16:11 -0400 Received: from rly-ip04.mx.aol.com ([64.12.138.8]:21890 "EHLO rly-ip04.mx.aol.com") by vger.kernel.org with ESMTP id S262276AbVENKQG (ORCPT ); Sat, 14 May 2005 06:16:06 -0400 Message-ID: <4285D4E9.9090208@yahoo.co.uk> Date: Sat, 14 May 2005 11:37:29 +0100 From: christos gentsis User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: jnf CC: linux-kernel-Mailing-list Subject: Re: Y2K-like bug to hit Linux computers! - Info of the day References: <4EE0CBA31942E547B99B3D4BFAB348114BED13@mail.esn.co.in> <200505131522.32403.vda@ilport.com.ua> <42850FC7.7010603@tmr.com> <200505132047.j4DKlcgV025923@turing-police.cc.vt.edu> <4285C030.1080706@yahoo.co.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AOL-IP: 195.93.24.100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 955 Lines: 37 jnf wrote: >submission$ cat test.c >int main(void) { > signed short int count = 0; > > while(count >= 0 ) { > printf("count: %d\n", count++ ); > } > printf("count: %d\n"); >} >submission$ gcc -o test test.c >submission$ ./test >[...] >count: 32767 >count: -1 > > > correct but i didn't mean that... i mean how to become negative with out an overflow... >I could be wrong here, but I don't think the hardware even keeps track of >the clock ticks, rather it just ticks and lets the software keep track. > > > it has to have hardware because if there is not so how the time is updated then the system is turned off? ;) it has to be hardware that keeps working... - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/