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-06-20 20:12:00 +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 Fixed failed file attaches 2002-06-02 13:03:50 +00:00
batchrd.c Initial revision 2001-08-17 05:46:24 +00:00
bluewave.h Initial revision 2001-08-17 05:46:24 +00:00
charconv_hz.c Initial revision 2001-08-17 05:46:24 +00:00
charconv_jp.c Initial revision 2001-08-17 05:46:24 +00:00
charconv_utf.c Initial revision 2001-08-17 05:46:24 +00:00
charconv.c Updates for splitting structures 2002-01-07 19:16:03 +00:00
charset.c Initial revision 2001-08-17 05:46:24 +00:00
clcomm.c Added TCP/IP trafic limits 2002-03-23 13:12:29 +00:00
clcomm.h Added TCP/IP trafic limits 2002-03-23 13:12:29 +00:00
client.c Made mbsebbs non setuid, added program mbnewusr 2001-11-10 17:14:16 +00:00
common.h Added OS and CPU nameing functions 2002-02-10 15:57:05 +00:00
crc.c Initial revision 2001-08-17 05:46:24 +00:00
dbcfg.c Updates for splitting structures 2002-01-07 19:16:03 +00:00
dbcfg.h Initial revision 2001-08-17 05:46:24 +00:00
dbdupe.c Initial revision 2001-08-17 05:46:24 +00:00
dbdupe.h Initial revision 2001-08-17 05:46:24 +00:00
dbftn.c Updates for splitting structures 2002-01-07 19:16:03 +00:00
dbftn.h Initial revision 2001-08-17 05:46:24 +00:00
dbmsgs.c Updates for splitting structures 2002-01-07 19:16:03 +00:00
dbmsgs.h Initial revision 2001-08-17 05:46:24 +00:00
dbnode.c mbtask now loads noderecords when scanning outbound 2002-02-21 21:45:08 +00:00
dbnode.h Fixed filemgr tick=on crash, added auto echomail area create 2002-02-14 21:24:27 +00:00
dbtic.c Updates for splitting structures 2002-01-07 19:16:03 +00:00
dbtic.h Initial revision 2001-08-17 05:46:24 +00:00
dbuser.c Updates for splitting structures 2002-01-07 19:16:03 +00:00
dbuser.h Initial revision 2001-08-17 05:46:24 +00:00
diesel.c Small fixes in diesel library 2002-05-11 15:30:34 +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 Updates for splitting structures 2002-01-07 19:16:03 +00:00
execute.c Initial revision 2001-08-17 05:46:24 +00:00
expipe.c Updates for splitting structures 2002-01-07 19:16:03 +00:00
faddr.c Fixed safe cracker door, added setup for safe door 2002-05-05 17:34:07 +00:00
falists.c More AreaMgr/FileMgr fixes 2002-03-02 19:50:13 +00:00
FAQ Initial revision 2001-08-17 05:46:24 +00:00
ftn.c Removed a memory leak again 2002-06-19 21:23:56 +00:00
ftnmsg.c Initial revision 2001-08-17 05:46:24 +00:00
ftscprod.006 Initial revision 2001-08-17 05:46:24 +00:00
getheader.c Fixed memory leaks, code cleanup 2002-06-20 20:12:00 +00:00
gmtoffset.c Sparc systems fixes 2001-12-23 16:44:18 +00:00
hdr.c Initial revision 2001-08-17 05:46:24 +00:00
jam.h Initial revision 2001-08-17 05:46:24 +00:00
jammsg.c Updated fix for FreeBSD lastread pointers 2002-05-26 14:08:29 +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 Upgrade CVS to 0.33.18 current 2001-08-25 19:53:11 +00:00
Makefile Fixes for compiling with memwatch 2002-05-11 11:14:35 +00:00
mangle.c Fixed mbsetup '%' output 2002-01-15 21:32:07 +00:00
mbdiesel.c Updated logging 2002-05-18 13:49:55 +00:00
mbfile.c Several small fixes 2002-05-06 18:53:17 +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 Initial revision 2001-08-17 05:46:24 +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 Initial revision 2001-08-17 05:46:24 +00:00
mkprod.awk Added version control 2002-04-15 13:49:15 +00:00
msg.c Added auto file areas create/delete 2002-04-28 14:27:23 +00:00
msg.h Added auto file areas create/delete 2002-04-28 14:27:23 +00:00
msgflags.c Cleaned some debug logging 2001-12-16 12:33:21 +00:00
msgtext.c Initial revision 2001-08-17 05:46:24 +00:00
msgtext.h Initial revision 2001-08-17 05:46:24 +00:00
nntp.c Updates for splitting structures 2002-01-07 19:16:03 +00:00
nodelist.c Small fixes 2002-05-12 12:47:18 +00:00
nodelock.c added mode parameter to mkdirs 2002-01-19 11:54:34 +00:00
noderecord.c Fixed filemgr tick=on crash, added auto echomail area create 2002-02-14 21:24:27 +00:00
packet.c added mode parameter to mkdirs 2002-01-19 11:54:34 +00:00
parsedate.c Sparc systems fixes 2001-12-23 16:44:18 +00:00
pktname.c Updates for splitting structures 2002-01-07 19:16:03 +00:00
pop3.c Updates for splitting structures 2002-01-07 19:16:03 +00:00
rawio.c a lot of mbsebbs cleanups 2001-11-12 21:42:17 +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 Changed structure for node records, added structure for routing 2002-06-15 14:04:57 +00:00
rfcaddr.c Updates for splitting structures 2002-01-07 19:16:03 +00:00
rfcdate.c Sparc systems fixes 2001-12-23 16:44:18 +00:00
rfcmsg.c Fixed mbnews for empty headerlines 2002-04-11 19:37:32 +00:00
semafore.c Initial revision 2001-08-17 05:46:24 +00:00
signame.c Initial revision 2001-08-17 05:46:24 +00:00
smtp.c Updates for splitting structures 2002-01-07 19:16:03 +00:00
strcasestr.c Initial revision 2001-08-17 05:46:24 +00:00
structs.h Changed structure for node records, added structure for routing 2002-06-15 14:04:57 +00:00
strutil.c Added OS and CPU nameing functions 2002-02-10 15:57:05 +00:00
term.c Updates for splitting structures 2002-01-07 19:16:03 +00:00
test.c Initial revision 2001-08-17 05:46:24 +00:00
unpacker.c Fixed lharc recognition code to LHA 2002-03-12 19:41:41 +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.