~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/archive/azio.h

  • Committer: Monty Taylor
  • Date: 2008-07-01 14:33:36 UTC
  • mto: (28.1.12 backport_patch)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: monty@inaugust.com-20080701143336-8uihm7dhpu92rt0q
Somehow missed moving password.c. Duh.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
  (zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format).
34
34
*/
35
35
 
 
36
#ifdef HAVE_MYSQL_CONFIG_H
 
37
#include "../../include/config.h"
 
38
#endif
 
39
 
36
40
#ifndef __AZIO_H__
37
41
#define __AZIO_H__
38
42
 
39
43
/* We currently allow this on all platforms */
40
44
#define AZIO_AIO
41
45
 
42
 
#include <drizzled/global.h>
43
 
#include <libdrizzle/drizzle_com.h>
44
 
#include <mysys/my_sys.h>
45
 
 
46
46
#include <zlib.h>
 
47
#include "my_global.h"
 
48
#include "my_sys.h"
 
49
 
 
50
#include <my_dir.h>
47
51
 
48
52
#ifdef  __cplusplus
49
53
extern "C" {
50
54
#endif
51
 
 
52
55
/* Start of MySQL Specific Information */
53
56
 
54
57
/* Some personal debugging functions */
58
61
#define WATCHPOINT_ERRNO(A) fprintf(stderr, "\nWATCHPOINT %s:%d (%s) %s\n", __FILE__, __LINE__,__func__, strerror(A));A= 0;fflush(stderr);
59
62
 
60
63
/*
61
 
  uint64_t + uint64_t + uint64_t + uint64_t + unsigned char
 
64
  ulonglong + ulonglong + ulonglong + ulonglong + uchar
62
65
*/
63
 
#define AZMETA_BUFFER_SIZE sizeof(uint64_t) \
64
 
  + sizeof(uint64_t) + sizeof(uint64_t) + sizeof(uint64_t) \
 
66
#define AZMETA_BUFFER_SIZE sizeof(unsigned long long) \
 
67
  + sizeof(unsigned long long) + sizeof(unsigned long long) + sizeof(unsigned long long) \
65
68
  + sizeof(unsigned int) + sizeof(unsigned int) \
66
69
  + sizeof(unsigned int) + sizeof(unsigned int) \
67
70
  + sizeof(unsigned char)
222
225
typedef enum {
223
226
  AZ_METHOD_BLOCK,
224
227
  AZ_METHOD_AIO,
225
 
  AZ_METHOD_MAX
 
228
  AZ_METHOD_MAX,
226
229
} az_method;
227
230
 
228
231
typedef struct azio_container_st azio_container_st;
261
264
  unsigned char version;   /* Version */
262
265
  unsigned char minor_version;   /* Version */
263
266
  unsigned int block_size;   /* Block Size */
264
 
  uint64_t check_point;   /* Last position we checked */
265
 
  uint64_t forced_flushes;   /* Forced Flushes */
266
 
  uint64_t rows;   /* rows */
267
 
  uint64_t auto_increment;   /* auto increment field */
 
267
  unsigned long long check_point;   /* Last position we checked */
 
268
  unsigned long long forced_flushes;   /* Forced Flushes */
 
269
  unsigned long long rows;   /* rows */
 
270
  unsigned long long auto_increment;   /* auto increment field */
268
271
  unsigned int longest_row;   /* Longest row */
269
272
  unsigned int shortest_row;   /* Shortest row */
270
273
  unsigned char dirty;   /* State of file */