FORM 4.3
Data Structures | Macros | Typedefs | Functions | Variables
minos.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <time.h>

Go to the source code of this file.

Data Structures

struct  iniinfo
 
struct  objects
 
struct  indexblock
 
struct  nameblock
 
struct  dbase
 

Macros

#define MAXBASES   16
 
#define NUMOBJECTS   100
 
#define MAXINDEXSIZE   33000000L
 
#define NAMETABLESIZE   1008
 
#define ELEMENTSIZE   128
 
#define TODISK   0
 
#define FROMDISK   1
 
#define MDIRTYFLAG   1
 
#define MCLEANFLAG   (~MDIRTYFLAG)
 
#define INANDOUT   0
 
#define INPUTONLY   1
 
#define OUTPUTONLY   2
 
#define NOCOMPRESS   4
 

Typedefs

typedef struct iniinfo INIINFO
 
typedef struct objects OBJECTS
 
typedef struct indexblock INDEXBLOCK
 
typedef struct nameblock NAMESBLOCK
 
typedef struct dbase DBASE
 

Functions

int minosread (FILE *f, char *buffer, MLONG size)
 
int minoswrite (FILE *f, char *buffer, MLONG size)
 

Variables

int withoutflush
 

Detailed Description

Contains all needed declarations and definitions for the tablebase low level file routines. These have been taken from the minos database system and modified somewhat.

!!!CAUTION!!! Changes in this file will most likely have consequences for the recovery mechanism (see checkpoint.c). You need to care for the code in checkpoint.c as well and modify the code there accordingly!

Definition in file minos.h.

Macro Definition Documentation

◆ MAXBASES

#define MAXBASES   16

Definition at line 61 of file minos.h.

◆ NUMOBJECTS

#define NUMOBJECTS   100

Definition at line 68 of file minos.h.

◆ MAXINDEXSIZE

#define MAXINDEXSIZE   33000000L

Definition at line 69 of file minos.h.

◆ NAMETABLESIZE

#define NAMETABLESIZE   1008

Definition at line 70 of file minos.h.

◆ ELEMENTSIZE

#define ELEMENTSIZE   128

Definition at line 71 of file minos.h.

◆ TODISK

#define TODISK   0

Definition at line 141 of file minos.h.

◆ FROMDISK

#define FROMDISK   1

Definition at line 142 of file minos.h.

◆ MDIRTYFLAG

#define MDIRTYFLAG   1

Definition at line 143 of file minos.h.

◆ MCLEANFLAG

#define MCLEANFLAG   (~MDIRTYFLAG)

Definition at line 144 of file minos.h.

◆ INANDOUT

#define INANDOUT   0

Definition at line 145 of file minos.h.

◆ INPUTONLY

#define INPUTONLY   1

Definition at line 146 of file minos.h.

◆ OUTPUTONLY

#define OUTPUTONLY   2

Definition at line 147 of file minos.h.

◆ NOCOMPRESS

#define NOCOMPRESS   4

Definition at line 148 of file minos.h.

Function Documentation

◆ minosread()

int minosread ( FILE *  f,
char *  buffer,
MLONG  size 
)

Definition at line 66 of file minos.c.

◆ minoswrite()

int minoswrite ( FILE *  f,
char *  buffer,
MLONG  size 
)

Definition at line 83 of file minos.c.

Variable Documentation

◆ withoutflush

int withoutflush
extern

Definition at line 45 of file minos.c.