Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions

veo100.c File Reference


Detailed Description

RTE - get_page_from_save.

Author:
area
See also:

Definition in file veo100.c.

#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>

Go to the source code of this file.

Defines

#define DEBUG
#define DEVSPACE_ID   "SQL-DB DEVSPACE"
#define FALSE   0
#define LOCALDBG(x)   if ( debug ) { printf x; }
#define PAGE_SIZE   4096
#define TRUE   1

Functions

static int check_headerpage (FILE *inp_file, int block_count, char **buf)
static int check_params (char **params, int num_params, FILE **inp_file, int *pno, int *block_count, char **buf)
static int check_pno_and_bufcount (char *pno, char *buf_count)
static int get_page (int argc, char **argv)
int main (int argc, char *argv[])
static int put_page (int num_params, char **params)
static int read_one_block (char *buf, FILE *infile, int bytes_to_read)
static int replace_page (FILE *devsp, int devsp_pos, int pno, char *new_page)
static int search_page (FILE *infile, char *buf, int block_count, int pno, long *found_pos, int *blck_pos)
static void sys_err (const char *, char *)
static int write_page (int pno, char *buf, int blck_pos)

Variables

static int debug = FALSE


Generated by  Doxygen 1.6.0   Back to index