lkml.org 
[lkml]   [1999]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Bug#44654: dpkg: seg faults w/2.3.17; problem traced to sysinfo()
Date
From
> I suggest also to put back the comment about the 64byte alignment.
>
> --- 2.3.17/include/linux/kernel.h Wed Sep 8 18:18:56 1999
> +++ kernel.h Fri Sep 10 02:32:45 1999
> @@ -96,7 +96,8 @@
> unsigned short procs; /* Number of current processes */
> unsigned long totalbig; /* Total big memory size */
> unsigned long freebig; /* Available big memory size */
> - char _f[22-2*sizeof(long)]; /* Padding: libc5 uses this.. */
> + char _f[12]; /* Pads structure to 64 bytes
> + (libc5 uses this..) */
> };
>
> #endif
>
> Andrea

That is trivially and obviously wrong. You have to do the sizeof check
because of 64bit machines


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.053 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site