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/saved-mbsebbs-code-2/lib
vbcoen 6a6a253885 Updated mbmon.c & mbsetup.c
Added doc dir. and manual as .pdf
restored deleted files - yep I screwed the pooch.
2015-11-03 20:41:11 +00:00
..
.cvsignore Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
attach.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
batchrd.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
bluewave.h Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
charset.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
clcomm.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
client.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
crc.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
dbcfg.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
dbdupe.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
dbfdb.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
dbftn.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
dbmsgs.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
dbnode.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
dbtic.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
dbuser.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
diesel.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
Diesel.doc Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
diesel.h Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
dostran.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
endian.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
execute.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
expipe.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
faddr.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
falists.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
ftn.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
ftnmsg.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
ftscprod.010 Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
ftscprod.016 Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
getheader.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
gmtoffset.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
hdr.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
jam.h Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
jammsg.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
jammsg.h Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
jamsys.h Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
magic.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
Makefile Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
mangle.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
mbdiesel.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
mbfile.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
mbinet.h Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
mbse.h Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
mbsedb.h Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
mbselib.h Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
mkprod.awk Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
msg.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
msg.h Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
msgtext.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
msgtext.h Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
nntp.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
nodelist.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
nodelist.conf Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
nodelist.h Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
nodelock.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
noderecord.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
packet.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
parsedate.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
pidinfo.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
pktname.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
pop3.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
proglock.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
rawio.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
README Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
README.diesel Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
README.macro Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
rearc.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
remask.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
rfcaddr.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
rfcdate.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
rfcmsg.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
sectest.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
semafore.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
signame.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
smtp.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
strcasestr.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
strutil.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
term.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
timers.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
tmpwork.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
unpacker.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
users.h Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +00:00
virscan.c Updated mbmon.c & mbsetup.c 2015-11-03 20:41:11 +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.