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-01-04 12:35:50 +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 Small bugfixes 2004-01-02 16:36:22 +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 Fixed several small valgrind detected errors 2003-12-16 21:50:32 +00:00
clcomm.h Upgraded version, added debug logfile 2003-09-09 19:39:51 +00:00
client.c A lot of fixes found with valgrind 2003-12-04 22:07:33 +00:00
common.h A lot of fixes found with valgrind 2003-12-04 22:07:33 +00:00
crc.c More small code/leak fixes 2003-12-07 11:54:05 +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 Added warning again 2003-12-07 13:18:09 +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 Some documentation fixes 2003-12-20 21:13:22 +00:00
execute.c More code cleanups 2003-12-07 12:42:18 +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.008 Upgraded to FSTCPROD.008 2003-12-31 18:21:11 +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 Fixed msg renumber bug and Makefile bug 2003-12-10 19:49:20 +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 Updates to compile on non-intel systems 2003-12-18 20:19:40 +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 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
mkprod.awk Removed memwatch debugger 2003-08-16 20:45:01 +00:00
msg.c Final updates after valgrind tests 2003-12-08 18:01:25 +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 Fix for newsserver authorisation 2004-01-04 12:35:50 +00:00
nodelist.c Final updates after valgrind tests 2003-12-08 18:01:25 +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 Allow zero byte locks from another OS 2003-12-28 13:57:27 +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 Restored parsedate 2003-12-23 19:17:01 +00:00
pktname.c Final updates after valgrind tests 2003-12-08 18:01:25 +00:00
pop3.c Removed memwatch debugger 2003-08-16 20:45:01 +00:00
proglock.c A lot of fixes found with valgrind 2003-12-04 22:07:33 +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 Allow zero byte locks from another OS 2003-12-28 13:57:27 +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.