Eneboo - Documentación para desarrolladores
src/libmysql_std/include/my_nosys.h
Ir a la documentación de este archivo.
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; version 2 of the License.
00006 
00007    This program is distributed in the hope that it will be useful,
00008    but WITHOUT ANY WARRANTY; without even the implied warranty of
00009    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010    GNU General Public License for more details.
00011 
00012    You should have received a copy of the GNU General Public License
00013    along with this program; if not, write to the Free Software
00014    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
00015 
00016 /*
00017   Header to remove use of my_functions in functions where we need speed and
00018   where calls to posix functions should work
00019 */
00020 #ifndef _my_nosys_h
00021 #define _my_nosys_h
00022 #ifdef  __cplusplus
00023 extern "C" {
00024 #endif
00025 
00026 #ifndef __MY_NOSYS__
00027 #define __MY_NOSYS__
00028 
00029 #ifdef MSDOS
00030 #include <io.h>                 /* Get prototypes for read()... */
00031 #endif
00032 #ifndef HAVE_STDLIB_H
00033 #include <malloc.h>
00034 #endif
00035 
00036 #undef my_read                  /* Can be predefined in raid.h */
00037 #undef my_write
00038 #undef my_seek
00039 #define my_read(a,b,c,d) my_quick_read(a,b,c,d)
00040 #define my_write(a,b,c,d) my_quick_write(a,b,c)
00041 extern uint my_quick_read(File Filedes,byte *Buffer,uint Count,myf myFlags);
00042 extern uint my_quick_write(File Filedes,const byte *Buffer,uint Count);
00043 
00044 #if !defined(SAFEMALLOC) && defined(USE_HALLOC)
00045 #define my_malloc(a,b) halloc(a,1)
00046 #define my_no_flags_free(a) hfree(a)
00047 #endif
00048 
00049 #endif /* __MY_NOSYS__ */
00050 
00051 #ifdef  __cplusplus
00052 }
00053 #endif
00054 #endif
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'