// --------------------------------------------------------------------------- // - csio.hxx - // - standard system library - c i/o platform function definition - // --------------------------------------------------------------------------- // - This program is free software; you can redistribute it and/or modify - // - it provided that this copyright notice is kept intact. - // - - // - This program is distributed in the hope that it will be useful, but - // - without any warranty; without even the implied warranty of - // - merchantability or fitness for a particular purpose. In no event shall - // - the copyright holder be liable for any direct, indirect, incidental or - // - special damages arising in any way out of the use of this software. - // --------------------------------------------------------------------------- // - copyright (c) 1999-2007 amaury darsch - // --------------------------------------------------------------------------- // check for unknown platform #if (AFNIX_PLATFORM_PLATID == AFNIX_PLATFORM_UNKNOWN) #error "unknown platform type" #endif // check for unknown processor #if (AFNIX_PLATFORM_PROCID == AFNIX_PROCTYPE_UNKNOWN) #error "unknown processor type" #endif // linux platform #if (AFNIX_PLATFORM_PLATID == AFNIX_PLATFORM_LINUX) #ifndef _FILE_OFFSET_BITS #define _FILE_OFFSET_BITS 64 #endif #ifndef _LARGEFILE_SOURCE #define _LARGEFILE_SOURCE #endif #include #include #include #include #include #include #include #include #endif // solaris platform #if (AFNIX_PLATFORM_PLATID == AFNIX_PLATFORM_SOLARIS) #ifndef _FILE_OFFSET_BITS #define _FILE_OFFSET_BITS 64 #endif #ifndef _LARGEFILE_SOURCE #define _LARGEFILE_SOURCE #endif #include #include #include #include #include #include #include #include #include #endif // freebsd platform #if (AFNIX_PLATFORM_PLATID == AFNIX_PLATFORM_FREEBSD) #ifndef _FILE_OFFSET_BITS #define _FILE_OFFSET_BITS 64 #endif #ifndef _LARGEFILE_SOURCE #define _LARGEFILE_SOURCE #endif #include #include #include #include #include #include #include #include #include #endif // darwin platform #if (AFNIX_PLATFORM_PLATID == AFNIX_PLATFORM_DARWIN) #ifndef _FILE_OFFSET_BITS #define _FILE_OFFSET_BITS 64 #endif #ifndef _LARGEFILE_SOURCE #define _LARGEFILE_SOURCE #endif #include #include #include #include #include #include #include #include #include #endif // gnu/freebsd platform #if (AFNIX_PLATFORM_PLATID == AFNIX_PLATFORM_GNUKBSD) #ifndef _FILE_OFFSET_BITS #define _FILE_OFFSET_BITS 64 #endif #ifndef _LARGEFILE_SOURCE #define _LARGEFILE_SOURCE #endif #include #include #include #include #include #include #include #include #endif