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
2001-11-27 22:55:00 +00:00
..
ansi.h Initial revision 2001-08-17 05:46:24 +00:00
attach.c Initial revision 2001-08-17 05:46:24 +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 Initial revision 2001-08-17 05:46:24 +00:00
charset.c Initial revision 2001-08-17 05:46:24 +00:00
clcomm.c Initial revision 2001-08-17 05:46:24 +00:00
clcomm.h Initial revision 2001-08-17 05:46:24 +00:00
client.c Made mbsebbs non setuid, added program mbnewusr 2001-11-10 17:14:16 +00:00
common.h Implemented name DOS 8.3 name mangling 2001-11-27 22:55:00 +00:00
crc.c Initial revision 2001-08-17 05:46:24 +00:00
dbcfg.c Initial revision 2001-08-17 05:46:24 +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 Initial revision 2001-08-17 05:46:24 +00:00
dbftn.h Initial revision 2001-08-17 05:46:24 +00:00
dbmsgs.c Initial revision 2001-08-17 05:46:24 +00:00
dbmsgs.h Initial revision 2001-08-17 05:46:24 +00:00
dbnode.c Initial revision 2001-08-17 05:46:24 +00:00
dbnode.h Initial revision 2001-08-17 05:46:24 +00:00
dbtic.c Initial revision 2001-08-17 05:46:24 +00:00
dbtic.h Initial revision 2001-08-17 05:46:24 +00:00
dbuser.c Initial revision 2001-08-17 05:46:24 +00:00
dbuser.h Initial revision 2001-08-17 05:46:24 +00:00
dostran.c Initial revision 2001-08-17 05:46:24 +00:00
execute.c Initial revision 2001-08-17 05:46:24 +00:00
expipe.c Initial revision 2001-08-17 05:46:24 +00:00
faddr.c Initial revision 2001-08-17 05:46:24 +00:00
falists.c Upgrade CVS to 0.33.18 current 2001-08-25 19:53:11 +00:00
FAQ Initial revision 2001-08-17 05:46:24 +00:00
ftn.c Initial revision 2001-08-17 05:46:24 +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 Initial revision 2001-08-17 05:46:24 +00:00
gmtoffset.c Initial revision 2001-08-17 05:46:24 +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 datafile security modes 2001-11-14 21:37:58 +00:00
jammsg.h Initial revision 2001-08-17 05:46:24 +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 more updates to mangle code 2001-11-26 22:38:52 +00:00
mangle.c Implemented name DOS 8.3 name mangling 2001-11-27 22:55:00 +00:00
mbfile.c Fixed FreeBSD filesystem usage 2001-10-29 13:53:06 +00:00
mbinet.h Initial revision 2001-08-17 05:46:24 +00:00
mbse.h a lot of mbsebbs cleanups 2001-11-12 21:42:17 +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 Initial revision 2001-08-17 05:46:24 +00:00
msg.c Initial revision 2001-08-17 05:46:24 +00:00
msg.h Initial revision 2001-08-17 05:46:24 +00:00
msgflags.c Fixes for killsent flag 2001-11-16 20:07:42 +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 Initial revision 2001-08-17 05:46:24 +00:00
nodelist.c Initial revision 2001-08-17 05:46:24 +00:00
nodelock.c Initial revision 2001-08-17 05:46:24 +00:00
noderecord.c Initial revision 2001-08-17 05:46:24 +00:00
packet.c Initial revision 2001-08-17 05:46:24 +00:00
parsedate.c Upgrade CVS to 0.33.18 current 2001-08-25 19:53:11 +00:00
pktname.c Initial revision 2001-08-17 05:46:24 +00:00
pop3.c Initial revision 2001-08-17 05:46:24 +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.memwatch Initial revision 2001-08-17 05:46:24 +00:00
records.h Initial revision 2001-08-17 05:46:24 +00:00
rfcaddr.c Initial revision 2001-08-17 05:46:24 +00:00
rfcdate.c Initial revision 2001-08-17 05:46:24 +00:00
rfcmsg.c Initial revision 2001-08-17 05:46:24 +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 Initial revision 2001-08-17 05:46:24 +00:00
strcasestr.c Initial revision 2001-08-17 05:46:24 +00:00
structs.h a lot of mbsebbs cleanups 2001-11-12 21:42:17 +00:00
strutil.c Initial revision 2001-08-17 05:46:24 +00:00
term.c Initial revision 2001-08-17 05:46:24 +00:00
test.c Initial revision 2001-08-17 05:46:24 +00:00
unpacker.c Initial revision 2001-08-17 05:46:24 +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.