Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

sm_int_constants.h

Go to the documentation of this file.
00001 #ifndef sm_constants_H 00002 #define sm_constants_H 00003 00004 // We make this one bytes smaller than 2GB, because of a very stupid reason... 00005 // fstat(...) populates a 'struct stat' structure, which in turn uses 00006 // an 'off_t' to represent a file size. 'off_t' is a signed long, which 00007 // means it's not going to be able to store +2GB on an Intel-based 00008 // machine. It maxes out at 2^32 - 1. Idiots. They should have used 00009 // size_t, not off_t. 00010 // So... even though Linux thinks it can have 2GB files, fstat(...) doesn't 00011 // support them. So we set this value to one number lower than we want to. 00012 #define SM_MAX_FILE_BYTES 2147483647UL 00013 00014 #define SM_DATA_FILE_GROWTH_FACTOR 0.1 00015 00016 // The maximum fill fraction that a PageDir has before a growth of its 00017 // storage is triggered. 00018 #define SM_PAGE_DIR_GROWTH_TRIGGER 0.9 00019 00020 #endif

Generated on Fri Nov 12 15:15:22 2004 for Borealis by doxygen 1.3.8