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
2004-03-20 23:00:22 +00:00
..
.cvsignore Fixed area creation case sensitive problem 2004-02-29 13:07:42 +00:00
attach.c Updated libraries headers 2004-02-21 14:24:03 +00:00
batchrd.c Updated libraries headers 2004-02-21 14:24:03 +00:00
bluewave.h Updated Offline Reader 2003-03-02 13:29:33 +00:00
charset.c mbfile now uses new charmap functions 2004-02-29 12:47:03 +00:00
charset.map Using Fidogate code to do charset translation 2004-02-28 19:49:54 +00:00
clcomm.c Update disk watch for FreeBSD 2004-03-20 21:30:11 +00:00
client.c Updated libraries headers 2004-02-21 14:24:03 +00:00
crc.c Updated libraries headers 2004-02-21 14:24:03 +00:00
dbcfg.c Updated libraries headers 2004-02-21 14:24:03 +00:00
dbdupe.c Updated libraries headers 2004-02-21 14:24:03 +00:00
dbftn.c Updated libraries headers 2004-02-21 14:24:03 +00:00
dbmsgs.c Fixed area creation case sensitive problem 2004-02-29 13:07:42 +00:00
dbnode.c Updated libraries headers 2004-02-21 14:24:03 +00:00
dbtic.c Fixed area creation case sensitive problem 2004-02-29 13:07:42 +00:00
dbuser.c Updated libraries headers 2004-02-21 14:24:03 +00:00
diesel.c Updated libraries headers 2004-02-21 14:24:03 +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 Updated libraries headers 2004-02-21 14:24:03 +00:00
endian.c Updated libraries headers 2004-02-21 14:24:03 +00:00
execute.c Code cleanup in execute 2004-03-18 19:33:43 +00:00
expipe.c Updated libraries headers 2004-02-21 14:24:03 +00:00
faddr.c Updated libraries headers 2004-02-21 14:24:03 +00:00
falists.c Updated libraries headers 2004-02-21 14:24:03 +00:00
ftn.c Updated libraries headers 2004-02-21 14:24:03 +00:00
ftnmsg.c Changed PID and TID kludges to include OS and CPU 2004-02-23 16:22:38 +00:00
ftscprod.008 Upgraded to FSTCPROD.008 2003-12-31 18:21:11 +00:00
getheader.c Updated libraries headers 2004-02-21 14:24:03 +00:00
gmtoffset.c Updated libraries headers 2004-02-21 14:24:03 +00:00
hdr.c Updated libraries headers 2004-02-21 14:24:03 +00:00
jam.h Initial revision 2001-08-17 05:46:24 +00:00
jammsg.c Updated libraries headers 2004-02-21 14:24:03 +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
magic.c Debug logging decreased for magic files tests 2004-03-13 12:02:48 +00:00
Makefile Updates for mbfile check and rearc 2004-03-09 21:42:29 +00:00
mangle.c Updated libraries headers 2004-02-21 14:24:03 +00:00
mbcharsetc.c Using Fidogate code to do charset translation 2004-02-28 19:49:54 +00:00
mbcharsetc.h Using Fidogate code to do charset translation 2004-02-28 19:49:54 +00:00
mbdiesel.c Updated libraries headers 2004-02-21 14:24:03 +00:00
mbfile.c Completed mbtask new disk watcher 2004-03-20 23:00:22 +00:00
mbinet.h Fix for newsserver authorisation 2004-01-04 12:35:50 +00:00
mbse.h Updated GNU references 2003-08-15 20:05:34 +00:00
mbsedb.h Updated libraries headers 2004-02-21 14:24:03 +00:00
mbselib.h Completed mbtask new disk watcher 2004-03-20 23:00:22 +00:00
mkprod.awk Updated libraries headers 2004-02-21 14:24:03 +00:00
msg.c Updated libraries headers 2004-02-21 14:24:03 +00:00
msg.h Some messages bugfixes 2003-09-14 12:24:18 +00:00
msgtext.c Updated libraries headers 2004-02-21 14:24:03 +00:00
msgtext.h Initial revision 2001-08-17 05:46:24 +00:00
nntp.c Updated libraries headers 2004-02-21 14:24:03 +00:00
nodelist.c Updated libraries headers 2004-02-21 14:24:03 +00:00
nodelist.conf Added incoming telnet proxy 2003-11-22 21:42:44 +00:00
nodelist.h Rebuild for configurable nodelists handling 2002-12-30 22:13:33 +00:00
nodelock.c Updated libraries headers 2004-02-21 14:24:03 +00:00
noderecord.c Updated libraries headers 2004-02-21 14:24:03 +00:00
packet.c Updated libraries headers 2004-02-21 14:24:03 +00:00
parsedate.c Updated libraries headers 2004-02-21 14:24:03 +00:00
pktname.c Updated libraries headers 2004-02-21 14:24:03 +00:00
pop3.c Updated libraries headers 2004-02-21 14:24:03 +00:00
proglock.c Updated libraries headers 2004-02-21 14:24:03 +00:00
rawio.c Updated libraries headers 2004-02-21 14:24:03 +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
rearc.c Updates for files changes 2004-03-08 22:25:22 +00:00
remask.c Added mbfile rearc 2004-03-08 20:51:04 +00:00
rfcaddr.c Updated libraries headers 2004-02-21 14:24:03 +00:00
rfcdate.c Updated libraries headers 2004-02-21 14:24:03 +00:00
rfcmsg.c Updated libraries headers 2004-02-21 14:24:03 +00:00
russian.map Using Fidogate code to do charset translation 2004-02-28 19:49:54 +00:00
sectest.c Updated libraries headers 2004-02-21 14:24:03 +00:00
semafore.c Updated libraries headers 2004-02-21 14:24:03 +00:00
signame.c Updated libraries headers 2004-02-21 14:24:03 +00:00
smtp.c Updated libraries headers 2004-02-21 14:24:03 +00:00
strcasestr.c Updated libraries headers 2004-02-21 14:24:03 +00:00
strutil.c Updated libraries headers 2004-02-21 14:24:03 +00:00
term.c Completed mbtask new disk watcher 2004-03-20 23:00:22 +00:00
timers.c Updated libraries headers 2004-02-21 14:24:03 +00:00
unpacker.c Updated libraries headers 2004-02-21 14:24:03 +00:00
users.h Changed user editor 2004-02-24 20:27:41 +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.