00001 /* Copyright (C) 2000 MySQL AB 00002 00003 This program is free software; you can redistribute it and/or modify 00004 it under the terms of the GNU General Public License as published by 00005 the Free Software Foundation; either version 2 of the License, or 00006 (at your option) any later version. 00007 00008 This program is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 GNU General Public License for more details. 00012 00013 You should have received a copy of the GNU General Public License 00014 along with this program; if not, write to the Free Software 00015 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ 00016 00017 /* 00018 Header to remove use of my_functions in functions where we need speed and 00019 where calls to posix functions should work 00020 */ 00021 #ifndef _my_nosys_h 00022 #define _my_nosys_h 00023 #ifdef __cplusplus 00024 extern "C" { 00025 #endif 00026 00027 #ifndef __MY_NOSYS__ 00028 #define __MY_NOSYS__ 00029 00030 #ifndef HAVE_STDLIB_H 00031 #include <malloc.h> 00032 #endif 00033 00034 #undef my_read /* Can be predefined in raid.h */ 00035 #undef my_write 00036 #undef my_seek 00037 #define my_read(a,b,c,d) my_quick_read(a,b,c,d) 00038 #define my_write(a,b,c,d) my_quick_write(a,b,c) 00039 extern uint my_quick_read(File Filedes,byte *Buffer,uint Count,myf myFlags); 00040 extern uint my_quick_write(File Filedes,const byte *Buffer,uint Count); 00041 00042 #if !defined(SAFEMALLOC) && defined(USE_HALLOC) 00043 #define my_malloc(a,b) halloc(a,1) 00044 #define my_no_flags_free(a) hfree(a) 00045 #endif 00046 00047 #endif /* __MY_NOSYS__ */ 00048 00049 #ifdef __cplusplus 00050 } 00051 #endif 00052 #endif
1.4.7

