Eneboo - Documentación para desarrolladores
src/libmysql_macosx/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; 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 #ifdef MSDOS
00031 #include <io.h>                 /* Get prototypes for read()... */
00032 #endif
00033 #ifndef HAVE_STDLIB_H
00034 #include <malloc.h>
00035 #endif
00036 
00037 #undef my_read                  /* Can be predefined in raid.h */
00038 #undef my_write
00039 #undef my_seek
00040 #define my_read(a,b,c,d) my_quick_read(a,b,c,d)
00041 #define my_write(a,b,c,d) my_quick_write(a,b,c)
00042 extern uint my_quick_read(File Filedes,byte *Buffer,uint Count,myf myFlags);
00043 extern uint my_quick_write(File Filedes,const byte *Buffer,uint Count);
00044 
00045 #if !defined(SAFEMALLOC) && defined(USE_HALLOC)
00046 #define my_malloc(a,b) halloc(a,1)
00047 #define my_no_flags_free(a) hfree(a)
00048 #endif
00049 
00050 #endif /* __MY_NOSYS__ */
00051 
00052 #ifdef  __cplusplus
00053 }
00054 #endif
00055 #endif
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'