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-01-20 20:43:40 +00:00
..
ansi.h Initial revision 2001-08-17 05:46:24 +00:00
attach.c added mode parameter to mkdirs 2002-01-19 11:54:34 +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 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 added mode parameter to mkdirs 2002-01-19 11:54:34 +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 Updates for splitting structures 2002-01-07 19:16:03 +00:00
dbnode.h Initial revision 2001-08-17 05:46:24 +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
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 Initial revision 2001-08-17 05:46:24 +00:00
falists.c Now storing 3d addresses instead of 2d addresses for seenby lists 2001-12-12 22:10:38 +00:00
FAQ Initial revision 2001-08-17 05:46:24 +00:00
ftn.c Updates for splitting structures 2002-01-07 19:16:03 +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 Updates for splitting structures 2002-01-07 19:16:03 +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 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 Added users.h to lib/Makefile 2002-01-07 20:26:12 +00:00
mangle.c Fixed mbsetup '%' output 2002-01-15 21:32:07 +00:00
mbfile.c Script updates for Mandrake 2002-01-20 20:43:40 +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 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 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 Updates for splitting structures 2002-01-07 19:16:03 +00:00
nodelock.c added mode parameter to mkdirs 2002-01-19 11:54:34 +00:00
noderecord.c Updates for splitting structures 2002-01-07 19:16:03 +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.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 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 Updates for splitting structures 2002-01-07 19:16:03 +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 Added max articles in structure 2002-01-14 16:44:47 +00:00
strutil.c Sparc systems fixes 2001-12-23 16:44:18 +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 Updates for splitting structures 2002-01-07 19:16:03 +00:00
users.h Separated users structure form global structure 2002-01-06 14:23:34 +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.