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
2003-11-30 14:36:53 +00:00
..
.cvsignore Added .cvsignore files 2002-06-15 14:22:21 +00:00
ansi.h Updated GNU references 2003-08-15 20:05:34 +00:00
attach.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
batchrd.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
bluewave.h Updated Offline Reader 2003-03-02 13:29:33 +00:00
clcomm.c Made outgoing telnet protocol work 2003-11-24 22:19:50 +00:00
clcomm.h Upgraded version, added debug logfile 2003-09-09 19:39:51 +00:00
client.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
common.h Removed binkp CRC mode 2003-11-30 14:36:53 +00:00
crc.c Added doors single user mode 2003-10-11 21:22:16 +00:00
dbcfg.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
dbcfg.h Initial revision 2001-08-17 05:46:24 +00:00
dbdupe.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
dbdupe.h Initial revision 2001-08-17 05:46:24 +00:00
dbftn.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
dbftn.h Initial revision 2001-08-17 05:46:24 +00:00
dbmsgs.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
dbmsgs.h Initial revision 2001-08-17 05:46:24 +00:00
dbnode.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
dbnode.h Fixed filemgr tick=on crash, added auto echomail area create 2002-02-14 21:24:27 +00:00
dbtic.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
dbtic.h Initial revision 2001-08-17 05:46:24 +00:00
dbuser.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
dbuser.h Initial revision 2001-08-17 05:46:24 +00:00
diesel.c Removed memwatch debugger 2003-08-16 20:45:01 +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 Removed memwatch debugger 2003-08-16 20:45:01 +00:00
endian.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
execute.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
expipe.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
faddr.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
falists.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
ftn.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
ftnmsg.c Fixed FTS-0001 password check 2003-08-24 16:27:57 +00:00
ftscprod.007 Activated FTSC product code 2003-09-02 18:16:00 +00:00
getheader.c Fixed FTS-0001 password check 2003-08-24 16:27:57 +00:00
gmtoffset.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
hdr.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
jam.h Initial revision 2001-08-17 05:46:24 +00:00
jammsg.c Removed memwatch debugger 2003-08-16 20:45:01 +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 Added tests for Posix threads 2003-11-29 14:45:39 +00:00
Makefile Fixed zmodem timeout bug 2003-09-17 19:33:34 +00:00
mangle.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
mbdiesel.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
mberrors.h Removed memwatch debugger 2003-08-16 20:45:01 +00:00
mbfile.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
mbinet.h Initial revision 2001-08-17 05:46:24 +00:00
mbse.h Updated GNU references 2003-08-15 20:05:34 +00:00
mkprod.awk Removed memwatch debugger 2003-08-16 20:45:01 +00:00
msg.c Some messages bugfixes 2003-09-14 12:24:18 +00:00
msg.h Some messages bugfixes 2003-09-14 12:24:18 +00:00
msgtext.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
msgtext.h Initial revision 2001-08-17 05:46:24 +00:00
nntp.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
nodelist.c Added binkp escape switch 2003-08-24 12:26:34 +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 Removed binkp CRC mode 2003-11-30 14:36:53 +00:00
noderecord.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
packet.c More fixes for FST-0001 passwword checks 2003-08-24 19:19:43 +00:00
parsedate.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
pktname.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
pop3.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
proglock.c Updated GNU references 2003-08-15 20:05:34 +00:00
rawio.c Removed memwatch debugger 2003-08-16 20:45:01 +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
records.h Updated GNU references 2003-08-15 20:05:34 +00:00
rfcaddr.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
rfcdate.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
rfcmsg.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
sectest.c Updated GNU references 2003-08-15 20:05:34 +00:00
semafore.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
signame.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
smtp.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
strcasestr.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
structs.h Removed binkp CRC mode 2003-11-30 14:36:53 +00:00
strutil.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
term.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
timers.c Fixed zmodem timeout bug 2003-09-17 19:33:34 +00:00
unpacker.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
users.h Updated GNU references 2003-08-15 20:05:34 +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.