This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-mbse/lib
2002-08-25 11:25:46 +00:00
..
.cvsignore Added .cvsignore files 2002-06-15 14:22:21 +00:00
ansi.h Initial revision 2001-08-17 05:46:24 +00:00
attach.c Revised source dependencies 2002-06-30 12:48:44 +00:00
batchrd.c Revised source dependencies 2002-06-30 12:48:44 +00:00
bluewave.h Initial revision 2001-08-17 05:46:24 +00:00
charconv_hz.c Revised source dependencies 2002-06-30 12:48:44 +00:00
charconv_jp.c Revised source dependencies 2002-06-30 12:48:44 +00:00
charconv_utf.c Revised source dependencies 2002-06-30 12:48:44 +00:00
charconv.c Revised source dependencies 2002-06-30 12:48:44 +00:00
charset.c Revised source dependencies 2002-06-30 12:48:44 +00:00
clcomm.c Revised source dependencies 2002-06-30 12:48:44 +00:00
clcomm.h Added TCP/IP trafic limits 2002-03-23 13:12:29 +00:00
client.c Revised source dependencies 2002-06-30 12:48:44 +00:00
common.h Revised source dependencies 2002-06-30 12:48:44 +00:00
crc.c Revised source dependencies 2002-06-30 12:48:44 +00:00
dbcfg.c Revised source dependencies 2002-06-30 12:48:44 +00:00
dbcfg.h Initial revision 2001-08-17 05:46:24 +00:00
dbdupe.c More debugging enabled 2002-08-16 21:29:24 +00:00
dbdupe.h Initial revision 2001-08-17 05:46:24 +00:00
dbftn.c Revised source dependencies 2002-06-30 12:48:44 +00:00
dbftn.h Initial revision 2001-08-17 05:46:24 +00:00
dbmsgs.c Revised source dependencies 2002-06-30 12:48:44 +00:00
dbmsgs.h Initial revision 2001-08-17 05:46:24 +00:00
dbnode.c Revised source dependencies 2002-06-30 12:48:44 +00:00
dbnode.h Fixed filemgr tick=on crash, added auto echomail area create 2002-02-14 21:24:27 +00:00
dbtic.c Revised source dependencies 2002-06-30 12:48:44 +00:00
dbtic.h Initial revision 2001-08-17 05:46:24 +00:00
dbuser.c Revised source dependencies 2002-06-30 12:48:44 +00:00
dbuser.h Initial revision 2001-08-17 05:46:24 +00:00
diesel.c Revised source dependencies 2002-06-30 12:48:44 +00:00
Diesel.doc Added template processing for newfiles 2002-03-31 13:09:23 +00:00
diesel.h Fixes for compiling with memwatch 2002-05-11 11:14:35 +00:00
dostran.c Revised source dependencies 2002-06-30 12:48:44 +00:00
execute.c Revised source dependencies 2002-06-30 12:48:44 +00:00
expipe.c Revised source dependencies 2002-06-30 12:48:44 +00:00
faddr.c Revised source dependencies 2002-06-30 12:48:44 +00:00
falists.c Revised source dependencies 2002-06-30 12:48:44 +00:00
FAQ Initial revision 2001-08-17 05:46:24 +00:00
ftn.c Revised source dependencies 2002-06-30 12:48:44 +00:00
ftnmsg.c Revised source dependencies 2002-06-30 12:48:44 +00:00
ftscprod.006 Initial revision 2001-08-17 05:46:24 +00:00
getheader.c Revised source dependencies 2002-06-30 12:48:44 +00:00
gmtoffset.c Revised source dependencies 2002-06-30 12:48:44 +00:00
hdr.c Revised source dependencies 2002-06-30 12:48:44 +00:00
jam.h Initial revision 2001-08-17 05:46:24 +00:00
jammsg.c Revised source dependencies 2002-06-30 12:48:44 +00:00
jammsg.h Added auto file areas create/delete 2002-04-28 14:27:23 +00:00
jamsys.h Initial revision 2001-08-17 05:46:24 +00:00
libs.h Revised source dependencies 2002-06-30 12:48:44 +00:00
Makefile Revised source dependencies 2002-06-30 12:48:44 +00:00
mangle.c Revised source dependencies 2002-06-30 12:48:44 +00:00
mbdiesel.c Revised source dependencies 2002-06-30 12:48:44 +00:00
mbfile.c Revised source dependencies 2002-06-30 12:48:44 +00:00
mbinet.h Initial revision 2001-08-17 05:46:24 +00:00
mbse.h Updated lines/cols definitions 2001-12-02 17:10:49 +00:00
memwatch.c Revised source dependencies 2002-06-30 12:48:44 +00:00
memwatch.c.org Initial revision 2001-08-17 05:46:24 +00:00
memwatch.h Initial revision 2001-08-17 05:46:24 +00:00
mime.c Revised source dependencies 2002-06-30 12:48:44 +00:00
mkprod.awk Revised source dependencies 2002-06-30 12:48:44 +00:00
msg.c Revised source dependencies 2002-06-30 12:48:44 +00:00
msg.h Added auto file areas create/delete 2002-04-28 14:27:23 +00:00
msgtext.c Revised source dependencies 2002-06-30 12:48:44 +00:00
msgtext.h Initial revision 2001-08-17 05:46:24 +00:00
nntp.c Small temporary fix for newsserver connects 2002-08-15 20:08:59 +00:00
nodelist.c Added nodelist override settings 2002-07-13 12:58:35 +00:00
nodelock.c Revised source dependencies 2002-06-30 12:48:44 +00:00
noderecord.c Revised source dependencies 2002-06-30 12:48:44 +00:00
packet.c Revised source dependencies 2002-06-30 12:48:44 +00:00
parsedate.c Revised source dependencies 2002-06-30 12:48:44 +00:00
pktname.c Revised source dependencies 2002-06-30 12:48:44 +00:00
pop3.c Revised source dependencies 2002-06-30 12:48:44 +00:00
rawio.c Revised source dependencies 2002-06-30 12:48:44 +00:00
README Initial revision 2001-08-17 05:46:24 +00:00
README.diesel Added DIESEL macro language 2002-03-29 22:58:53 +00:00
README.macro Added DIESEL macro language 2002-03-29 22:58:53 +00:00
README.memwatch Initial revision 2001-08-17 05:46:24 +00:00
records.h Added routing table 2002-07-16 21:05:00 +00:00
rfcaddr.c Revised source dependencies 2002-06-30 12:48:44 +00:00
rfcdate.c Revised source dependencies 2002-06-30 12:48:44 +00:00
rfcmsg.c Several small fixes and code cleanup 2002-07-14 12:23:39 +00:00
semafore.c Revised source dependencies 2002-06-30 12:48:44 +00:00
signame.c Ported to HPPA, tested on HP 712/80 2002-08-25 11:25:46 +00:00
smtp.c Revised source dependencies 2002-06-30 12:48:44 +00:00
strcasestr.c Revised source dependencies 2002-06-30 12:48:44 +00:00
structs.h Added setup for outbound queue 2002-08-04 11:41:39 +00:00
strutil.c Ported to HPPA, tested on HP 712/80 2002-08-25 11:25:46 +00:00
term.c Improved linebuffering to stdout 2002-07-29 20:31:18 +00:00
test.c Revised source dependencies 2002-06-30 12:48:44 +00:00
unpacker.c Added test for HA archiver 2002-07-27 20:07:12 +00:00
users.h Added support for external message editor 2002-03-05 21:32:52 +00:00
USING Initial revision 2001-08-17 05:46:24 +00:00

	Database structures.


Most databases have a structure with a header record. The header record
is at the beginning of the datafile and contains information about the
size of the header record and size of the database records. When a data
file is opened for reading the first thing to read the header record.
The field recsize contains the size of the datarecords and the field
hdrsize the offset to the first datarecord in the file.

If in the structure the size of the datarecords changes (grows), we can
allways read the old format in the correct way.

When a datafile is changed the datafile has to be rewritten completly.
Of course the new format is used then, and the new size must be stored in
the header.

The advantage of this technique is that updates can be performed automatic.
There is no need for free space for future use in the datarecords, the files
are thus smaller.


One other important thing, with some DOS based bbs'es, mail/tic processors
are using index files together with the data files to speed up the search in
the databases. Also some of them use internal memory cache for the data records.
I choose not to do this for two reasons, Linux like other Unices handles
file I/O very fast and when your system is not low on memory the kernel will
buffer all disk I/O in memory. Also Linux disks are very low fragmented due to
the design of the ext2fs. Whith all this in mind, using index files is only
extra overhead.
However, because of this you should not put the data files on a msdos
dos partition or on a nfs server.

The only exeption that uses index files are the nodelists.