[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Size of /proc/kcore on MIPS (porting help requested)



I think the problem comes from using stat :

---- linuxinfo_common.c ----
struct stat st_buf;

if (stat("/proc/kcore", &st_buf) < 0)
{
    memory = 0;
}

-------------------------

stat can't save in struct stat's file size attribute the size of a
file over 2 GB.
stat saves an offset type (32bits) : a signed long, which can go up to 2047M...

I think this could be of interest :
http://www.llnl.gov/asci/platforms/bluepac/large_file_prog.html

Regards,
Guillaume



Reply to: