Drizzled Public API Documentation

my_static.h
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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
00015 
00016 /*
00017   Static variables for mysys library. All definied here for easy making of
00018   a shared library
00019 */
00020 
00021 #pragma once
00022 
00023 #include <signal.h>
00024 
00025 #define MIN_KEYBLOCK  (min(IO_SIZE,1024))
00026 #define MAX_KEYBLOCK  8192    /* Max keyblocklength == 8*IO_SIZE */
00027 
00028 namespace drizzled
00029 {
00030 namespace internal
00031 {
00032 
00033 /*
00034   Structure that stores information of a allocated memory block
00035   The data is at &struct_adr+sizeof(ALIGN_SIZE(sizeof(struct irem)))
00036   The lspecialvalue is at the previous 4 bytes from this, which may not
00037   necessarily be in the struct if the struct size isn't aligned at a 8 byte
00038   boundary.
00039 */
00040 
00041 class irem
00042 {
00043 public:
00044   irem *next;   /* Linked list of structures     */
00045   irem *prev;   /* Other link        */
00046   char *filename;   /* File in which memory was new'ed */
00047   uint32_t linenum;   /* Line number in above file     */
00048   uint32_t datasize;    /* Size requested      */
00049   uint32_t SpecialValue;    /* Underrun marker value     */
00050 
00051   irem():
00052     next(NULL),
00053   prev(NULL),
00054   filename(0),
00055   linenum(0),
00056   datasize(0),
00057   SpecialValue(0)
00058   {}
00059 };
00060 
00061 
00062 extern char curr_dir[FN_REFLEN], home_dir_buff[FN_REFLEN];
00063 
00064 extern volatile int _my_signals;
00065 
00066 extern uint64_t query_performance_frequency, query_performance_offset;
00067 
00068 extern sigset_t my_signals;   /* signals blocked by mf_brkhant */
00069 
00070 } /* namespace internal */
00071 } /* namespace drizzled */
00072