Messages in this thread | | | Subject | Re: Bug#44654: dpkg: seg faults w/2.3.17; problem traced to sysinfo() | Date | Fri, 10 Sep 1999 10:51:18 +0100 (BST) | From | Alan Cox <> |
| |
> 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/
| |