MySQL 8.4.0
Source Code Documentation
azio.cc File Reference
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include "my_byteorder.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_io.h"
#include "my_psi_config.h"
#include "my_thread_local.h"
#include "mysql/psi/mysql_file.h"
#include "storage/archive/azlib.h"

Macros

#define HEAD_CRC   0x02 /* bit 1 set: header CRC present */
 
#define EXTRA_FIELD   0x04 /* bit 2 set: extra field present */
 
#define ORIG_NAME   0x08 /* bit 3 set: original file name present */
 
#define COMMENT   0x10 /* bit 4 set: file comment present */
 
#define RESERVED   0xE0 /* bits 5..7: reserved */
 

Functions

int az_open (azio_stream *s, const char *path, int Flags, File fd)
 
int do_flush (azio_stream *file, int flush)
 
int get_byte (azio_stream *s)
 
void check_header (azio_stream *s)
 
int write_header (azio_stream *s)
 
int destroy (azio_stream *s)
 
void putLong (File file, uLong x)
 
uLong getLong (azio_stream *s)
 
void read_header (azio_stream *s, unsigned char *buffer)
 
int azopen (azio_stream *s, const char *path, int Flags)
 
int azdopen (azio_stream *s, File fd, int Flags)
 
size_t ZEXPORT azread (azio_stream *s, voidp buf, size_t len, int *error)
 
unsigned int azwrite (azio_stream *s, const voidp buf, unsigned int len)
 
int ZEXPORT azflush (azio_stream *s, int flush)
 
int azrewind (azio_stream *s)
 
my_off_t azseek (azio_stream *s, my_off_t offset, int whence)
 
my_off_t ZEXPORT aztell (azio_stream *file)
 
int azclose (azio_stream *s)
 
int azwrite_frm (azio_stream *s, char *blob, size_t length)
 
int azread_frm (azio_stream *s, char *blob)
 
int azwrite_comment (azio_stream *s, char *blob, size_t length)
 
int azread_comment (azio_stream *s, char *blob)
 

Variables

static int const gz_magic [2] = {0x1f, 0x8b}
 
static int const az_magic [3] = {0xfe, 0x03, 0x01}
 
PSI_file_key arch_key_file_data
 

Macro Definition Documentation

◆ COMMENT

#define COMMENT   0x10 /* bit 4 set: file comment present */

◆ EXTRA_FIELD

#define EXTRA_FIELD   0x04 /* bit 2 set: extra field present */

◆ HEAD_CRC

#define HEAD_CRC   0x02 /* bit 1 set: header CRC present */

◆ ORIG_NAME

#define ORIG_NAME   0x08 /* bit 3 set: original file name present */

◆ RESERVED

#define RESERVED   0xE0 /* bits 5..7: reserved */

Function Documentation

◆ az_open()

int az_open ( azio_stream s,
const char *  path,
int  Flags,
File  fd 
)

◆ azclose()

int azclose ( azio_stream s)

◆ azdopen()

int azdopen ( azio_stream s,
File  fd,
int  Flags 
)

◆ azflush()

int ZEXPORT azflush ( azio_stream s,
int  flush 
)

◆ azopen()

int azopen ( azio_stream s,
const char *  path,
int  Flags 
)

◆ azread()

size_t ZEXPORT azread ( azio_stream s,
voidp  buf,
size_t  len,
int *  error 
)

◆ azread_comment()

int azread_comment ( azio_stream s,
char *  blob 
)

◆ azread_frm()

int azread_frm ( azio_stream s,
char *  blob 
)

◆ azrewind()

int azrewind ( azio_stream s)

◆ azseek()

my_off_t azseek ( azio_stream s,
my_off_t  offset,
int  whence 
)

◆ aztell()

my_off_t ZEXPORT aztell ( azio_stream file)

◆ azwrite()

unsigned int azwrite ( azio_stream s,
const voidp  buf,
unsigned int  len 
)

◆ azwrite_comment()

int azwrite_comment ( azio_stream s,
char *  blob,
size_t  length 
)

◆ azwrite_frm()

int azwrite_frm ( azio_stream s,
char *  blob,
size_t  length 
)

◆ check_header()

void check_header ( azio_stream s)

◆ destroy()

int destroy ( azio_stream s)

◆ do_flush()

int do_flush ( azio_stream file,
int  flush 
)

◆ get_byte()

int get_byte ( azio_stream s)

◆ getLong()

uLong getLong ( azio_stream s)

◆ putLong()

void putLong ( File  file,
uLong  x 
)

◆ read_header()

void read_header ( azio_stream s,
unsigned char *  buffer 
)

◆ write_header()

int write_header ( azio_stream s)

Variable Documentation

◆ arch_key_file_data

PSI_file_key arch_key_file_data

◆ az_magic

int const az_magic[3] = {0xfe, 0x03, 0x01}
static

◆ gz_magic

int const gz_magic[2] = {0x1f, 0x8b}
static