Changeset 526 in xtideuniversalbios for trunk/Serial_Server/library/File.h
- Timestamp:
- Mar 15, 2013, 1:38:58 AM (12 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Serial_Server/library/File.h
r376 r526 6 6 // 7 7 // Routines for accessing the file system using generic routines, which 8 // should work on all systems. The issue with using these is that 8 // should work on all systems. The issue with using these is that 9 9 // ftell() and fseek() are limited to 2 GB files (signed 32-bit quantities) 10 // and there is no standard for 64-bit quantities. So, look for a 11 // OS specific version of this file in the distribution, such as 10 // and there is no standard for 64-bit quantities. So, look for a 11 // OS specific version of this file in the distribution, such as 12 12 // win32/win32file.h which may be in use instead. 13 // 13 // 14 14 15 15 // 16 // XTIDE Universal BIOS and Associated Tools 17 // Copyright (C) 2009-2010 by Tomi Tilli, 2011-201 2by XTIDE Universal BIOS Team.16 // XTIDE Universal BIOS and Associated Tools 17 // Copyright (C) 2009-2010 by Tomi Tilli, 2011-2013 by XTIDE Universal BIOS Team. 18 18 // 19 19 // This program is free software; you can redistribute it and/or modify … … 21 21 // the Free Software Foundation; either version 2 of the License, or 22 22 // (at your option) any later version. 23 // 23 // 24 24 // This program is distributed in the hope that it will be useful, 25 25 // but WITHOUT ANY WARRANTY; without even the implied warranty of 26 26 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 27 // GNU General Public License for more details. 27 // GNU General Public License for more details. 28 28 // Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 29 29 // … … 44 44 return( 0 ); 45 45 } 46 46 47 47 if( !(fp = fopen( p_name, "w" )) ) 48 48 log( -1, "Could not create file '%s'", p_name ); 49 49 50 50 name = p_name; 51 51 52 52 return( 1 ); 53 53 } … … 108 108 } 109 109 110 const static unsigned long MaxSectors = 4194303; // limited by signed 32-bit file sizes 110 const static unsigned long MaxSectors = 4194303; // limited by signed 32-bit file sizes 111 111 #define USAGE_MAXSECTORS "2048 MB (signed 32-bit file size limit)" 112 112
Note:
See TracChangeset
for help on using the changeset viewer.