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
> Ok, I forgot about 64bit machines. BTW also your '20-' is obviously
> _wrong_ because you are supposing that sizeof(long)-sizeof(short) is 2.

Good point

> + unsigned long totalbig __attribute__((packed)); /* Total big memory size */
> + unsigned long freebig __attribute__((packed)); /* Available big memory size */

That doesnt work on the ARM3

The best I have so far is

struct _foo
{
...
...
}

struct real_foo
{
...
...
char pad [64-sizeof(struct _foo)] __attribute((packed));
}


-
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.169 / U:0.992 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site