1 /** 2 * @namespace biewlib 3 * @file biewlib/sysdep/ia32/win32/mmfio.c 4 * @brief This file contains implementation of memory mapped file i/o routines for DOS. 5 * @version - 6 * @remark this source file is part of Binary vIEW project (BIEW). 7 * The Binary vIEW (BIEW) is copyright (C) 1995 Nickols_K. 8 * All rights reserved. This software is redistributable under the 9 * licence given in the file "Licence.en" ("Licence.ru" in russian 10 * translation) distributed in the BIEW archive. 11 * @note Requires POSIX compatible development system 12 * 13 * @author Nickols_K 14 * @since 2000 15 * @note Development, fixes and improvements 16 **/ 17 #include <errno.h> 18 #include <stdlib.h> 19 #include "biewlib/biewlib.h" 20 21 #ifndef ENOSYS 22 #define ENOSYS -1 23 #endif 24 __mmfOpen(const char * fname,int mode)25mmfHandle __FASTCALL__ __mmfOpen(const char *fname,int mode) 26 { 27 UNUSED(fname); 28 UNUSED(mode); 29 errno = ENOSYS; 30 return NULL; 31 } 32 __mmfFlush(mmfHandle mh)33tBool __FASTCALL__ __mmfFlush(mmfHandle mh) 34 { 35 UNUSED(mh); 36 errno = ENOSYS; 37 return False; 38 } 39 __mmfSync(mmfHandle mh)40mmfHandle __FASTCALL__ __mmfSync(mmfHandle mh) 41 { 42 UNUSED(mh); 43 return NULL; 44 } 45 __mmfProtect(mmfHandle mh,int flags)46tBool __FASTCALL__ __mmfProtect(mmfHandle mh,int flags) 47 { 48 UNUSED(mh); 49 UNUSED(flags); 50 errno = ENOSYS; 51 return False; 52 } 53 __mmfResize(mmfHandle mh,long size)54tBool __FASTCALL__ __mmfResize(mmfHandle mh,long size) 55 { 56 UNUSED(mh); 57 UNUSED(size); 58 errno = ENOSYS; 59 return False; 60 } 61 __mmfClose(mmfHandle mh)62void __FASTCALL__ __mmfClose(mmfHandle mh) 63 { 64 UNUSED(mh); 65 errno = ENOSYS; 66 } 67 __mmfAddress(mmfHandle mh)68void * __FASTCALL__ __mmfAddress(mmfHandle mh) 69 { 70 UNUSED(mh); 71 return (void *)-1; 72 } 73 __mmfSize(mmfHandle mh)74long __FASTCALL__ __mmfSize(mmfHandle mh) 75 { 76 UNUSED(mh); 77 return 0L; 78 } 79 __mmfIsWorkable(void)80tBool __FASTCALL__ __mmfIsWorkable( void ) { return False; }