Re: [Patch] fix unsigned long fast_strtoul_10(char **endptr) for Linux 2.4

2012-02-28 Thread Ralf Friedl
walter harms wrote: Enabling the fast proc scan code for linux2.4 causes top to display strange numbers [see:possible bug in proc fast scan code] the reason for this is that the last char in proc/$$/stat is \n. This is no problem for 2.4 since the stats line contains additional chars. Please

Re: [Patch] fix unsigned long fast_strtoul_10(char **endptr) for Linux 2.4

2012-02-28 Thread walter harms
Am 28.02.2012 13:27, schrieb Ralf Friedl: walter harms wrote: Enabling the fast proc scan code for linux2.4 causes top to display strange numbers [see:possible bug in proc fast scan code] the reason for this is that the last char in proc/$$/stat is \n. This is no problem for 2.4 since the

Re: [Patch] fix unsigned long fast_strtoul_10(char **endptr) for Linux 2.4

2012-02-28 Thread walter harms
Am 28.02.2012 17:08, schrieb Denys Vlasenko: On Tue, Feb 28, 2012 at 5:04 PM, walter harms wha...@bfs.de wrote: Hello Ralf, the current version has a major problem when you consider this: 0\0 the patch ( change != into ) will only catch the current bug (reading the last 0 wrong what

[Patch] fix unsigned long fast_strtoul_10(char **endptr) for Linux 2.4

2012-02-27 Thread walter harms
Hi list, Enabling the fast proc scan code for linux2.4 causes top to display strange numbers [see:possible bug in proc fast scan code] the reason for this is that the last char in proc/$$/stat is \n. This is no problem for 2.4 since the stats line contains additional chars. Please be aware that

Re: [Patch] fix unsigned long fast_strtoul_10(char **endptr) for Linux 2.4

2012-02-27 Thread Denys Vlasenko
On Monday 27 February 2012 18:56, walter harms wrote: Hi list, Enabling the fast proc scan code for linux2.4 causes top to display strange numbers [see:possible bug in proc fast scan code] the reason for this is that the last char in proc/$$/stat is \n. This is no problem for 2.4 since the