home *** CD-ROM | disk | FTP | other *** search
- ----------------------------------------------------------------------
- | Citadel |
- | 241 East Eleventh Street * Brookville, IN 47012 * 317-647-4720 |
- | BBS 317-647-2403 |
- ----------------------------------------------------------------------
-
- blkio is distributed in a single compressed file blkioRL.zip; R and L
- would be the release and level numbers, respectively. The ZIP data
- compression utilities are needed to extract the individual files.
-
- The following files are obtained by decompressing blkioRL.zip:
-
- blkio.rme preliminary information
- license.txt license
- rlsnotes.txt release notes
- makefile UNIX makefile
- install.bat MS-DOS installation batch file
- blkio.rsp Response file for building Turbo C library.
- *.h blkio header source files
- *.c blkio C source files
- manxRL.zip manx utility
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Citadel 90/06/20
- ----------------------------------------------------------------------
- | blkio - block buffered i/o library |
- | Version 1.1.2 |
- ----------------------------------------------------------------------
-
- ======================================================================
- COPYRIGHT
-
- Copyright (c) 1989 Citadel.
-
- Citadel
- 241 East Eleventh Street
- Brookville, IN 47012
- 317-647-4720
- BBS 317-647-2403
-
- See the file license.txt for copyright information and disclaimer.
-
- ======================================================================
- BLKIO
-
- The blkio library is a buffered input/output library for C similar to
- the stdio library but designed for use with structured files. The LRU
- (least recently used) replacement algorithm is used for buffering.
- The reference manual is embedded in the source code (see INSTALLATION
- INSTRUCTIONS, below). For additional information on using the
- library, see the article "A Buffered I/O Library for Structured Files"
- in the October 1989 issue of "The C Users Journal."
-
- The blkio library is a component of cbase, a C database library
- developed by Citadel.
-
- ======================================================================
- INSTALLATION INSTRUCTIONS
-
- In the blkio header file blkio.h are a set of macros used to indicate
- what ANSI features are supported by the compiler being used. For
- instance, the macro AC_PROTO is used to indicate function prototype
- support. These macros should be carefully examined and set
- appropriately.
-
- To select the host operating system, set the HOST macro in the private
- header file blkio_.h. The modifications necessary to port blkio to a
- new operating system should not prove difficult, consisting mostly of
- direct translations of system calls such as open, close, and lseek.
- All operating system dependent code is located in the files buops.c
- and lockb.c.
-
- If using MS-DOS, also set the MSDOSC macro in blkio_.h to the C
- compiler being used. The modifications necessary to port to a new C
-
- Citadel 90/06/20
- compiler should be minimal, consisting only of translations of header
- file names and macro names such as those used by open and lseek.
-
- Because of the lack of uniformity among MS-DOS C compilers, exact
- installation procedures for this system vary widely. The supplied
- batch file install.bat is written for Borland Turbo C. install.bat
- takes two arguments. The first specifies the memory model, legal
- values for which are s, m, c, l, and h; the library file is named
- blkiom.lib, where m would correspond to the memory model of the
- library. The second, if present, causes the reference manual to be
- extracted from the source code into the file blkio.man.
-
- Before installing blkio, the manx utility should be compiled and
- placed in a directory in the path. manx is used to extract the
- reference manual.
-
- UNIX
- 1. Set the HOST macro in blkio_.h to UNIX.
- 2. Install the boolean header file.
- $ su
- # cp bool.h /usr/include
- # ^d
- 3. Extract the reference manual.
- $ make man
- 4. Build the blkio library.
- $ make blkio
- 5. Install the blkio library. This will copy the blkio header
- file blkio.h to /usr/include and the blkio library archive
- to /usr/lib.
- $ su
- # make install
- # ^d
-
- MS-DOS
- 1. Set the HOST macro in blkio_.h to MS_DOS.
- 2. Set the MSDOSC macro in blkio_.h to the C compiler being used.
- 3. If necessary, modify install.bat for the C compiler being
- used.
- 4. Extract the reference manual, then build and install the blkio
- library.
- > install h x
- Install may be rerun (without the x argument) for each desired
- memory model.
-
- ======================================================================
-
-
-
-
-
-
- Citadel 90/06/20
- ----------------------------------------------------------------------
- | cbase - The C Database Library |
- | Version 1.0 |
- ----------------------------------------------------------------------
-
- cbase is a complete multiuser C database file management library,
- providing indexed and sequential access on multiple keys. It features
- a modular design, comprising four individual libraries:
-
- cbase - C database library
- lseq - doubly linked sequential file management library
- btree - B+-tree file management library
- blkio - block buffered input/output library
-
- cbase internally uses lseq for record storage and btree for inverted
- file index storage, which in turn use blkio for file access and
- buffering; blkio is analagous to stdio but based on a file model more
- appropriate for structured files such as used in database software.
- The figure below diagrams the hierarchical relationship of the cbase
- libraries.
-
- -----------------------------------
- | cbase |
- -----------------------------------
- | |
- ----------------- -----------------
- | lseq | | btree |
- ----------------- -----------------
- | |
- -----------------------------------
- | blkio |
- -----------------------------------
-
- cbase Libraries
-
-
- The lower level libraries can also be accessed directly for
- independent use. For example, the btree library can be used to
- manipulate B+-trees for purposes other than inverted files, and the
- blkio library to develop new structured file management libraries.
-
-
-
-
-
-
-
-
-
-
-
- Citadel 90/06/20
-
- cbase Features
- --------------
- Portable:
- - Written in strict adherence to ANSI C standard.
- - K&R C compatibility maintained.
- - All operating system dependent code is isolated to a small portion
- of the blkio library to make porting to new systems easy.
- - UNIX and MS-DOS currently supported.*
- Buffered:
- - Both records and indexes are buffered using LRU (least recently
- used) buffering.
- Fast and efficient random access:
- - B+-trees are used for inverted file key storage.
- - Multiple keys are supported.
- - Both unique and duplicate keys are supported.
- Fast and efficient sequential access:
- - B+-trees also allow keyed sequential access.
- - Records are stored in doubly linked lists for non-keyed sequential
- access.
- - Both types of sequential access are bidirectional.
- Multiuser:
- - Read-only locking.
- Other:
- - Text file data import and export.
- - Custom data types can be defined.
- - Marker used to detect corrupt files when opened.
- - Reference documentation is in standard UNIX manual entry format,
- including errno values.
-
-
- $77 plus shipping VISA/MasterCard
-
- All source code included.
- Technical support included.
- No run-time fees or royalties.
-
- Citadel
- 241 East Eleventh Street
- Brookville, IN 47012
- 317-647-4720
- BBS 317-647-2403
-
- An evaluation copy of cbase can be obtained at no charge on the
- Citadel BBS 317-647-2403, or send $5 for diskette.
-
-
-
- * UNIX is a trademark of AT&T. Turbo C is a trademark of Borland
- International, Inc. MS-DOS is a trademark of Microsoft.
-
- Citadel 90/06/20